To get consistent results from AI on a task you repeat, stop retyping the request and build it once: fixed sections, inputs marked off with delimiters, an exact output format, and a short check at the end. The answers will still vary a little in wording, but the shape and quality will hold. This guide walks through building one, step by step.
Every Friday, Siobhan, a facilities coordinator for a college in Lisburn, turns a week of maintenance tickets into a summary for the estates manager. Some weeks the AI draft is perfect. Other weeks it drops the overdue jobs, invents a heading, or comes back as a wall of prose. She's typing roughly the same request each time, and that's the problem: roughly. A repeated task deserves a prompt built like a form, not a fresh message.
How to get consistent results from AI: the method in brief
To get consistent results from AI, fix everything that shouldn't change and leave a labelled gap for what does. In practice that means five steps:
- Write down what the finished output must contain.
- Split the prompt into fixed sections.
- Fence off the weekly input with delimiters.
- Specify the output format exactly, with an example.
- Add a check, and save the prompt as a template.
The steps below follow Siobhan's ticket summary from start to finish.
Step one: describe the finished output first
Before writing a word of prompt, write down what a good result looks like. Siobhan's estates manager wants the same four things every week:
- jobs completed, grouped by building
- jobs overdue, with how many days
- anything safety-related, at the top
- one line on what needs a decision
That list becomes the spine of the prompt. If you can't describe the output, the assistant can't hit it reliably.
Step two: split the prompt into fixed sections
A structured prompt has parts that never change. Labelled sections make each part easy to find and edit later. A common set:
| Section | What goes in it | Changes weekly? |
|---|
| Role and audience | Who you are, who reads the output | No |
| Task | What to do with the input | No |
| Rules | What to include, exclude and never invent | No |
| Output format | Exact headings, order, length, an example | No |
| Input | This week's material | Yes |
| Check | What the assistant must confirm or flag | No |
Keeping the sections in this order also helps you see what's missing when a run goes wrong.
Step three: fence off the input with delimiters
Delimiters are markers that separate your instructions from the material. They stop the assistant from mixing up "summarise these tickets" with a ticket that happens to say "please summarise". Triple quotes, labelled tags such as "TICKETS START" and "TICKETS END", or a line of dashes all work. Use the same ones every time.
Here's Siobhan's prompt, built from the sections above:
ROLE: I'm a facilities coordinator. The reader is our estates manager, who wants a quick weekly view.
TASK: Summarise the maintenance tickets between the markers below.
RULES: Use only information in the tickets. Don't invent dates, buildings or job numbers. If a ticket is unclear, list it under "Needs checking".
FORMAT: Four headings, in this order: Safety, Overdue, Completed by building, Decision needed. Bullet points only. Overdue items show the job number and days overdue. Under 250 words.
TICKETS START
[paste this week's tickets]
TICKETS END
CHECK: After the summary, state how many tickets you received and how many appear in the summary.
The last line is a cheap and useful check. If the counts don't match, something was dropped.
Step four: pin the format with an example
Describing a format helps; showing one helps more. Add a short example of a finished section with invented content, and say it's an example. Assistants copy shape well from examples. That's the idea behind few-shot prompting, and it's a big part of why outputs stop drifting.
If the result goes into a spreadsheet, ask for a strict layout, such as a table with named columns, so each week's output pastes into the same place. That's a simple form of structured output.
Step five: check each run, then save the template
Consistency in shape isn't the same as accuracy. These tools pick words with some randomness (non-determinism), so wording will differ week to week. More importantly, a well-formatted summary can still be wrong. Each week, Siobhan:
- compares the ticket count in the check line with her own export
- opens two or three tickets at random and checks the summary matches
- reads the Safety section against the source every time
Then she saves the prompt with a date. When the estates manager asks for a change, she edits the template, not her memory of it. Our guide to prompt templates for recurring tasks covers organising several, and why AI answers differ each time explains the variation you can't remove.
When a structured prompt is overkill
A one-off question doesn't need sections and delimiters; a plain, clear request is faster. Structure pays off on tasks you repeat, share with colleagues, or need to look the same each time. It also won't rescue a task the tool can't do well, such as one that needs live data it can't see.
Where Teach me AI teaches this
Teach me AI covers structured prompting in the Practitioner module Prompting well, and checking the result in Checking AI's work. The worked example and the practice task inside each lesson are written for your kind of work, so the weekly report you practise on resembles your own.
The toolkit keeps prompts you've saved, to copy, edit or delete, which suits a template like Siobhan's. Pro includes the Lab, where you write a prompt and an AI coach gives feedback on it; Lab work is deleted after 24 hours, so copy what you want to keep. The Resources page has a free prompt template library, and you can try the lesson format in the sample lesson first.
Your weekly template, as a checklist
- Output described before the prompt is written
- Role, task, rules, format, input and check in labelled sections
- Input fenced with the same delimiters every week
- A short example of the format
- A count or cross-check line at the end
- Saved with a date, edited in one place