All lessonsHide lessons
The Idea ยท Lesson 2
How to Write Instructions for a Custom AI Assistant: Role, Rules, Output
The three part structure that makes a reusable assistant behave the same way every week, in any tool.
Step 1 of 5: Instructions are the whole assistant
Instructions are the whole assistant
Strip away the branding and a custom assistant is mostly one thing: a block of standing instructions that sits behind every chat. Files help, and so do the tool's extra features, but the instructions decide how it behaves.
OpenAI's guidance for GPT builders put it plainly: instructions define what the assistant should do, how it should respond and what it should avoid, and they apply to every conversation. Google's tips for Gems said much the same in different words: tell it what role to play, what task to do, give it background, and be specific about the structure you want. Two companies, one lesson.
So this lesson works in any tool. Write your instructions in a plain document first, then paste them wherever you build.
In plain English
- Role:
- Who the assistant is pretending to be for this job, and who it is helping. It sets the tone and the level of expertise.
- Rules:
- The standing decisions it must respect every time: what to always do, what to never do, and what to do when unsure.
- Output format:
- The shape of a good answer: headings, length, order, tone, sign off.
- Example:
- A short sample of a good answer, included in the instructions so the assistant can see what you mean rather than guess.
Part one: the role
One or two sentences. Who is it, who is it helping, and what is the job?
Vague roles produce vague work. Compare these two:
- You are a helpful assistant.
- You are the customer service assistant for a small family bakery. You help the owner draft replies to customer emails about orders, allergens and collection times.
The second one already rules out a hundred wrong answers before you have written a single rule.
Part two: the rules
Rules are the decisions you are tired of repeating. Three habits make them work:
Say what to do, not only what to avoid. OpenAI's own advice was to prefer positive, concrete instructions over long lists of prohibitions. Keep replies under 120 words works better than Do not waffle.
Say what to do when unsure. This is the rule most people forget, and it is the one that stops an assistant from inventing things. Tell it to ask, or to flag the gap, rather than guess.
Put steps in order. If the job has stages, number them. OpenAI suggested a simple pattern: when this happens, do that.
Quick check
Which rule is most likely to stop your assistant inventing a delivery date it does not know?
Part three: the output
Describe a good answer as if you were briefing a new colleague. Length, headings, order, tone, and how it ends. Then, if you can, add one short example of a good answer. An example does more work than a paragraph of description, and OpenAI's guidance for GPT builders recommended including them.
Here is a full set of instructions you can adapt. Replace everything in square brackets.
ROLE
You are the [job title] assistant for [business or team]. You help [who] with [the task], [how often].
RULES
- Always write in [British English], in a [warm, plain, professional] tone.
- Use the attached files as your source for [prices, policies, product details]. Do not use outside information for these.
- If a detail you need is missing from the files or the message, say what is missing and ask me. Never guess dates, prices or names.
- When [a common situation], do [the action].
- Do not [the one thing that would cause real trouble, such as promising refunds].
OUTPUT
- Length: [under 150 words]
- Structure: [a one line summary, then the reply, then a list of anything I need to check]
- Sign off: [your usual sign off]
EXAMPLE OF A GOOD ANSWER
[paste one short reply you were happy with]
Stuck on a first draft? Most tools will help you write instructions if you describe the job in a chat first. Google's help centre even suggests letting Gemini rewrite a rough draft. Just read the result carefully: it will sound confident whether or not it understood your job.
I want to set up a reusable AI assistant for this task: [describe the task]. Interview me one question at a time about the role, the rules I always follow, and what a good result looks like. When you have enough, write the instructions in three sections headed ROLE, RULES and OUTPUT, plus one short example of a good answer.
Quick check
Your instructions describe the tone you want in a full paragraph, but replies still feel off. What is the most useful thing to add?
Keep your rules short and few. Ten clear rules beat forty fuzzy ones, partly because long instruction blocks are harder for you to maintain. If you want to go deeper on keeping rules alive in long sessions, Context Engineering covers it.
Checkpoint
Good instructions have three parts: a specific role, a short set of positive rules (including what to do when unsure), and a clear output format with one example. Write them in a plain document first so you can paste them into any tool.
๐ Quiz
Swipe right if this answers the question correctly, left if it does not.
What are the three parts of good assistant instructions in this lesson?
โRole, rules and outputโ
Is this the right answer?