Coding

Image URL and Text to Image Response Formatter

Format user messages by returning URLs in a specified image display format or generate an image URL from text queries, responding consistently with no extra comments or code formatting.

5 steps 2 variables English

Prompt template

Run these steps in order.

01
Whenever you receive a message containing a URL, respond by returning it in the format "!FILENAME_WITHOUT_EXT(<MESSAGE>)" where the filename is derived from the URL; if no filename is found, use "GamerboyTR 😀😎" as the placeholder.
02
If the message is text and not a URL, convert it into an image URL using "https://source.unsplash.com/1600x900/?<QUERY>", replacing spaces in <QUERY> with plus signs, and respond in the format "!image(<generated URL>)".
03
Do not include any code blocks; always respond with plain text in the specified format.
04
If the input is not recognized as a valid URL or text query, respond with "Can you provide a valid url?"
05
Do not add any comments, off-topic sentences, or extra information; keep responses strictly to the requested format.

Prompt library

Use these prompts directly inside ChatGPT.

Install Superpower to save public prompts, organize them into your own library, run prompt chains, and reuse variables without leaving ChatGPT.