-5

ChatGPT can receive a prompt like so:

https://www.chatgpt.com/?q=capital%20of%20france%20

Is there a way to pass a prompt to Claude via the URL?

(this would be handy for integration with other tooling)

2
  • Havent used it, but the documentation provides an API, docs.anthropic.com/en/api/getting-started. Would that not suffice for integration? Commented Dec 31, 2024 at 8:27
  • @Zxeenu I'm using macOS's 'Alfred' which lets you do a google search by pressing command + space then typing g <search term>. I got it to give a chatgpt prompt by adding command + space then chat <prompt> and it works great (loads ChatGPT website wth the prompt already entered). Example: chatgpt.com/?q=capital%20of%20france%20 But I can't find a way to do it with claude, since I need to be able to put the promtp into a url. I guess I could use the APi but it's less pretty and wouldn't allow me to easily follow up the conversation as a form in the regular web UI does Commented Dec 31, 2024 at 8:36

1 Answer 1

4

I just tested this. https://claude.ai/new?q={PLACE_HOLDER}, it works.

Sign up to request clarification or add additional context in comments.

5 Comments

It stopped working some time ago. I was able to find the URL parameter for every other major LLM provider, but I haven't been able to figure out Claude's new one. Any ideas?
Do you have one for Gemini? I will post here, if I find another one for Claude.
Sorry, I don't know about Gemini. If you asked me about any of Grok, ChatGPT, or Perplexity, I could tell you, but I don't know about Gemini. Sorry. If you figure it out please post it here.
Sadly, this stopped working about a day ago. Hopefully Anthropic bring it back.
@retrovertigo I've made a user script that allows to use ?q= in url. You need tampermonkey extension first. Here is the link: gist.github.com/Far-Se/565b4668886732fec16b8b41afdd3048

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.