Explainer
Prompt template
A prompt with fixed wording and named blanks, filled with new material for each request.
Try it first: take a request you send often and underline the words that change each time. The rest is your template; compare it with this one.
Figure 1 · Illustration · A reply template
Reply to a visitor to the repair club in three short lines.
Give the hours for the visitor's date, the item limit and the entry fee.
If the visitor asks about something the notices do not cover, say which detail is missing.
Notices:
[NOTICES]
Visitor's message:
[MESSAGE]
A template is only as good as what fills it. Illustration: [NOTICES] was filled from an old saved copy that holds only the March notice, and the visitor asked “Can I bring my iron on Saturday 1 May?” The reply:
Yes, bring your iron as your one item.
Saturday 1 May: 10 am to noon.
Entry is free.
The hours are wrong for May, yet the template never changed. Read the full text sent, not only the template, and number each version so a test result points to one wording. OpenAI's prompting guide (checked 21 November 2026) says “Treat prompts as application code.”
A prompt template is not a chat template, the model's own recipe for turning a list of messages into the text it reads. Fixed text first and blanks last also helps cost, because a provider can reuse work on an unchanged start (prompt caching).
Going deeper
OpenAI's guide gives the layout rule: “Put examples and reference material you reuse before the user's changing input.” Hosted templates can vanish: OpenAI's deprecations page lists its saved “reusable prompt objects” for shutdown on 30 November 2026, advising “Move prompt content into your application code.” Keep your own copy of every version.
In the long read: Did the change help?. Then try Test your prompt on five cases.
Read next: Run it more than once