Menu

One "Send to AI" Button, Four Chatbots, Four Different Workarounds
📰

One "Send to AI" Button, Four Chatbots, Four Different Workarounds

DEV Community: frontend·Yuriy Stasyuk·15 days ago
#o7u50yca
#devtofrontend#devto#dev#intent#prompt
Reading 0:00
15s threshold

On paper this is a tiny feature. Put the prompt in a URL, open a new tab, done.

In practice each chatbot needed its own handling.

The app is Cover Styles ( https://covers.yuriystasyuk.com ), a free library of book cover styles where each reference cover comes with a prompt. You pick a cover, hit ChatGPT or Gemini or Grok or Meta AI, and the idea is that you land in that chatbot with the prompt ready and the cover image available as a style reference. Getting text across was easy. Getting the image across is where it got weird.

The easy half: prompts in the URL

Three of the four take a query parameter, and one of them names it differently:

var AIS = [ { k : " chatgpt " , n : " ChatGPT " , u : q => " https://chatgpt.com/?q= " + q + " &hints=image " }, { k : " gemini " , n : " Gemini " , u : q => " https://gemini.google.com/app?q= " + q }, { k : " grok " , n : " Grok " , u : q => " https://grok.com/?q= " + q }, { k : " meta " , n : " Meta AI " , u : q => " https://www.meta.ai/?prompt= " + q } ];

Enter…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.