Most disappointing results from an AI agent trace back to the same cause: a vague brief. If you hired a capable assistant and told them only to deal with the customer emails, you would not be surprised when they did something you did not expect. Agents are no different, except that they will act quickly, take you literally and rarely stop to ask what you meant.
The good news is that writing a strong instruction is a learnable skill, and it looks a lot like delegating well to a person. Here is a simple structure you can reuse for almost any task.
The seven parts of a good instruction
You do not need a long document. A few short paragraphs covering these points will outperform a single line every time:
- Goal. What outcome do you want, and why does it matter?
- Context. What does the agent need to know about your business, customers and tools?
- Constraints. What limits apply, such as budget, tone, deadlines or systems it may use?
- Examples. What does good look like, and what does bad look like?
- Definition of done. How will the agent, and you, know the job is finished?
- Escalation rules. When should it stop and ask a human?
- Never-do list. What is strictly off limits?
Let’s take each in turn.
Goal: describe the outcome, not just the activity
Compare two instructions. Handle the support inbox describes an activity. Make sure every customer gets a useful first reply within two hours during working hours describes an outcome. The second lets the agent make better decisions when something unusual comes up, because it knows what you are actually trying to achieve.
Include the reason where you can. Telling an agent that you want fast replies because slow responses are the main cause of lost sales helps it prioritise sensibly.
Context: share what a new hire would need
Agents do not know your business unless you tell them. Imagine briefing a capable temp on their first morning. You would explain who your customers are, what you sell, how you like to sound, which products are popular and where the common mistakes happen. Write that down.
Useful context includes your tone of voice, standard policies such as returns or opening hours, names of key tools and what each is used for, and any jargon specific to your industry. Keep it factual and current. If a policy has changed, update the brief; outdated context produces confident but wrong answers.
Constraints: set the boundaries
Constraints stop good intentions from turning into expensive surprises. Say what the agent may and may not touch, how much it can spend, how long it should take, and what format you expect the output in. For example: use only the shared support mailbox, keep replies under 150 words, write in a warm but professional tone, and do not offer discounts.
Be specific with numbers wherever possible. Quickly and short are open to interpretation. Within one working day and under 150 words are not.
Examples: show, do not just tell
One or two examples teach more than a page of description. Provide a sample of a reply you consider excellent, and ideally one you consider poor with a note on why. This calibrates tone, length and level of detail far better than adjectives like friendly or concise.
Use real examples from your own business, with personal details removed. They carry your natural voice, which generic samples cannot.
Definition of done, escalation and never-do rules
These three are the most often skipped and the most valuable.
A definition of done prevents both half-finished work and endless over-polishing. For example: the task is complete when every new enquiry has a drafted reply saved, tagged by topic, and a one-line summary is added to the daily list.
An escalation rule tells the agent when to hand back to a person. Good triggers include a customer who is angry or mentions legal action, any request involving a refund over a set amount, anything the agent is less than confident about, and any situation your instructions do not cover. Make it explicit that asking is better than guessing.
A never-do list is your safety net. Typical entries are never delete anything, never send a message to a customer without approval, never share personal data outside the approved tools, and never make commitments about price or delivery dates.
A before-and-after example
Here is a typical weak instruction, written in the way people naturally type it: Deal with the new enquiries from the website and get back to people.
The agent has to guess who counts as an enquiry, how fast to respond, what to say, whether to send or draft, and what to do with spam or complaints. It may well produce something plausible, which is the dangerous part.
Now the improved version, in plain prose. Your goal is to make sure every new website enquiry receives a helpful first response within two working hours, so that we do not lose people to slower competitors. We are a small web and digital services business and our tone is friendly, clear and jargon-free. For each new enquiry in the shared mailbox, draft a reply of under 150 words that thanks them by name, answers any direct question using only the information in our service guide, and suggests a short call. Here is an example of a reply we like. Do not quote prices and do not promise delivery dates. Save each draft for a person to review rather than sending it. If the enquiry is a complaint, mentions legal action, comes from an existing client or is something you are unsure about, flag it for a human and do not draft a reply. You are finished when every new enquiry has a saved draft or a flag and the day’s list is updated.
That version is only a few sentences longer, yet it answers almost every question the agent would otherwise have to guess.
Test, then refine
Your first instruction will not be perfect, and that is fine. Run the agent on a small batch, read the results critically, and note where it drifted. Then fix the instruction rather than correcting the output by hand each time. Over a few rounds, the brief becomes a reusable asset that captures how your business works.
Keep your instructions in a shared document, date them, and review them when your policies or tools change. If you would rather not work out the structure alone, an experienced digital team can help you draft, test and tighten briefs so your agents are reliable from the first day.