Platform → Dashboard → Chat → Create
How can you declare variables when creating a new prompt in the OpenAI Platform?
Although the new awful interface menu shows the side menu as “chat” with a header named “chat”, giving you a ChatGPT-like input box only, it does not show whether you have selected the “Responses” endpoint or “Chat Completions”.
You must leave that and get the expected interface by (nonsensically) pressing “create”, or follow this link: https://platform.openai.com/chat/edit?models=gpt-4.1
You must use this sub-menu, which remembers a selection between uses of the site:
In Chat Completions mode, you have to ignore that you still have a stupid “evaluate” button that tells you to make a variable-based prompt.
Then switch it to “Responses” to see the input area that becomes “prompts”, (instead of what you’d want out of the site: to test and receive messages and test usage patterns to qualify models, and to demonstrate them to others).
There is no URL rewriting or bookmarking to show or link to just one endpoint.
Then the page title preposterously switches with a title from “Prompts” on Chat Completions (which does not support the “prompts” method of saving some settings) to “New Prompt”.
You will then see the field for variables, where use of saved prompts or variables will lock your application code into only being compatible with the OpenAI platform.
I cannot overstate how poor this new UI and the entire pattern of “prompts” for some of the API call settings is…