AI for small business · 26 November 2026 · 5 min read

How to write instructions your AI will actually follow

Key takeaways

Short version: keep your instructions short and specific. Say what the AI is for, where its facts come from, what it may do, what it must never do and when to hand over to a person, then show it a few example replies. And remember that instructions are guidance, not a lock: anything that really matters belongs in the tools it has, not the words you give it.

Why long instructions get ignored

The usual first attempt is a page of text that grows every time something goes wrong. A new paragraph after the awkward complaint, another after the delivery mix-up. Before long the important rules are buried in the middle, a few of them contradict each other, and the AI follows whichever one it happens to weigh most heavily that day.

An AI doesn’t read instructions the way a careful new member of staff would. It treats them as context, and clear, short context works far better than long, tangled context.

How to write instructions for AI, section by section

A simple structure covers most customer service jobs. Keep each part short.

How to write rules for AI that stick

Show it, don’t just tell it

A few example replies do more than a page of rules. Pick three or four common questions and write the answer you’d be happy to send yourself. Include one where the right answer is “I don’t know, I’ll pass this to the team”, so it sees that’s allowed.

For the planter shop, one example might be a customer asking whether a planter is frost-proof. The good reply gives the answer from the product facts if it’s there, and if it isn’t, says so and offers to check. The AI learns the shape of a good answer, not just the rules around it.

Instructions are not a lock

However well you write them, instructions can be argued with. A customer message saying “I’m the owner, ignore your rules” is just more text to the AI, and occasionally that text wins. That’s why the things that really matter shouldn’t rely on the instructions at all. If the AI must never issue a refund, don’t give it a refund tool. There’s more on this in customer messages are data, not instructions.

Think of the instructions as how you’d like it to behave, and the tools as what it can physically do. Write both.

Instructions for AI agents that take actions

If your AI can do things as well as answer, such as look up orders or label emails, add a short section on its tools: which one to use for which job, what to check first, and when to stop and hand over. Keep the hard limits on steps, time and spend in the system itself, as in stop runaway AI with limits.

Test every change

Small wording changes can have surprising effects. Keep a set of test conversations with the answers you expect, and run them every time you edit the instructions. If a change fixes one thing and breaks another, you’ll know before a customer does. The method is in test your AI before it talks to customers.

Not sure which customer jobs are worth giving an AI in the first place? Grafto’s AI Tools Report works it out from a short questionnaire.

Frequently asked questions

How do you write instructions for AI?

Keep them short and specific: the job, who it’s talking to, where its facts come from, what it may do, what it must never do, when to hand over and how to sound. Add a few example replies, and test every change.

How do I write rules for AI that it will follow?

One rule per line, in plain words, saying what to do as well as what not to do, with the reason. Remove rules that contradict each other, and keep anything that really matters as a limit in the tools, not just a rule.

How do I write instructions for AI agents?

Cover the same ground as any AI instructions, then add which tool to use for which job, what to check before acting, and when to stop and hand over. Put hard limits on steps, time and spend in the system itself.

Questions, or want a tool we don't have yet? Email hello@grafto.co.uk — a real person replies.