beereau

How to write instructions for AI agents: a clear role, goals and do/don't lists

How to write instructions for AI agents with a clear role, goals, do and don't lists and examples, plus a copy-ready template for support agents.

By the beereau team. Published . 5 min read.

Short answer: Good AI agent instructions state a clear role, the goal of the task, the facts to rely on, a short do list and don't list, when to hand over to a person and one or two examples of a good result. Keep them specific and short, update them when policies change and enforce high-stakes rules in the system, not only in the text.

Instructions are the written brief an AI agent works from: who it is, what it is for, how it should behave. They are the main lever you control. An agent acts on whatever it is given, so the quality of the brief sets the ceiling on the quality of the work. Vague instructions produce vague work, the way a vague brief does with a new employee.

What are the parts of a good instruction?

Part Purpose Weak version Strong version
Role Who the agent is "You are helpful." "You answer shipping questions for a candle shop."
Goal What success looks like "Help customers." "Give the customer their order status and next step in under 120 words."
Facts What to rely on (nothing) "Use only the shipping policy and order record below."
Do Required behavior "Be nice." "Greet by first name; confirm the order number."
Don't Limits (nothing) "Never promise a delivery date."
Hand over When to ask a human (nothing) "If the customer mentions a refund, a lawyer or anger, stop and escalate."
Examples Show the standard (nothing) Two sample replies

How should I define the role and goal?

State both in two sentences. The role sets scope; the goal sets the finish line.

Role: You are the order-status agent for Wick & Tallow, a small online candle shop. Goal: For each customer email asking about an order, look up the order and write a short, friendly reply that states the current status and what happens next.

(Wick & Tallow is a made-up example.) Narrow roles work better than broad ones. If you find yourself writing "and also...", you probably want a second agent. See AI agent team roles.

How do I write the do and don't lists?

Use short, testable lines.

Do:

  • Confirm the order number before giving details.
  • Use the customer's first name.
  • Keep replies under 120 words.
  • End with one clear next step.

Don't:

  • Never state a delivery date unless the carrier tracking shows one.
  • Never offer a discount, credit or refund.
  • Never give legal, medical or financial advice.
  • Never mention another customer.

Each line should be something you could check by reading a reply. "Be professional" cannot be checked; "no exclamation marks" can. Write "never" rules paired with a positive action: "Never promise a date; say 'tracking shows an estimate of X'."

When should the agent hand over to a person?

List triggers explicitly. Agents do not infer your comfort level.

  • The customer asks for a refund, exception or compensation
  • The message mentions a lawyer, a chargeback, the press or a safety issue
  • The customer has written three or more times about the same issue
  • The agent cannot find the order or the policy does not cover the case
  • The agent is unsure

The last trigger is the most valuable. Give the agent permission, even an instruction, to say "I'm not sure" and escalate. It cuts invented answers sharply; see AI support hallucinations.

What does a complete template look like?

Copy and edit this for a support agent.

ROLE
You are the [task] agent for [company], which sells [products] to [customers].

GOAL
For each [type of request], [what to produce] in under [N] words that
[what it must achieve].

FACTS TO USE
Only use: the customer's message, the order record, and the policies below.
If the answer is not there, escalate. Do not guess.

POLICIES
[Paste returns, shipping, refund policies with exact numbers and dates.]

TONE
[Three adjectives]. Example sentence: "[sample]".

DO
- [4 to 6 short, checkable lines]

DON'T
- [4 to 6 short, checkable lines; include "never offer discounts"]

HAND OVER TO THE OWNER WHEN
- [list of triggers]
- You are unsure about anything.

EXAMPLES
Typical case: [customer message] -> [ideal reply]
Tricky case:  [customer message] -> [ideal reply]
Hand-over case: [customer message] -> [note to owner]

Why do examples matter so much?

A rule says what you want; an example shows it. Tone, length and structure are far easier to convey with two sample replies than with a paragraph of adjectives. Choose examples from real replies you were happy with. Include one case where the right move is to escalate, so the agent sees that stopping is an acceptable outcome.

Why might an agent ignore my instructions?

Symptom Likely cause Fix
Ignores a rule Buried among many rules Shorten; move key rules to the top
Contradicts itself Two rules conflict Remove the conflict
Invents facts No source given Add the facts; require escalation
Wrong tone No examples Add examples
Overpromises No "never" rule Add one with a positive alternative

Keep a log of each fix and the reason; it feeds the feedback loop.

Which rules belong in the instructions and which in the system?

Instructions guide judgment, but a text rule can be overridden by odd input, and hidden instructions in an email can try. Anything with real consequences, such as spending, who can approve what, and access to data, should be enforced by the system. See AI agent guardrails. A related walkthrough of the first-week process is in how to onboard an AI agent.

How does beereau help with instructions?

You brief beereau's office by sharing your company website. The team's Head reads it and drafts what your company sells, who it serves and how it talks, and you check it, so you start from a draft instead of a blank page. By default every decision waits for your approval.

Next step

Copy the template, fill it in for your single most repetitive task and read it aloud. Remove every line you could not check by reading a reply, then test it on five real emails.

Frequently asked questions

How do I write good instructions for an AI agent?

State its role, the goal of the task, the facts it should rely on, a short list of what to do and not do, when to hand over to a person and one or two examples of a good result. Keep it specific and short.

How long should AI agent instructions be?

Long enough to cover the role, rules and examples, short enough that you can read it in a few minutes. If it grows past a page or two, split the job between agents.

Should I tell an AI agent what not to do?

Yes. Clear 'never' rules, such as no discounts outside policy and no legal or medical advice, prevent the most costly mistakes. Pair each with what to do instead.

Do examples help AI agents?

Yes, examples are often more effective than long explanations for teaching tone and format. Include a typical case, a tricky one and a hand-over case.

Why does my AI agent ignore my instructions?

Common causes are vague wording, conflicting rules, too many instructions, or missing information that forces it to guess. Simplify, remove contradictions and add an example.

Should I put rules in the instructions or enforce them elsewhere?

Both. Instructions guide judgment, but rules with real consequences, like spending limits and approvals, should be enforced by the system so they cannot be talked around.

How often should I update agent instructions?

Whenever policies change and after each weekly review reveals a pattern of mistakes. Treat the instructions like a living document with dates.