ACADEMY LESSON 4
Write instructions your AI agent follows
The simple rules for writing AI agent instructions that stay on task and produce work you can trust.
AI agents follow instructions best when you give them one job, clear rules, and a defined output. To write instructions that work, name the one job, tell the agent who it speaks for, list what it must never do, define the exact output you want, add a tone rule, set what to do when unsure, test with sample requests, and tighten the rules based on what breaks. Short, plain rules beat long paragraphs every time.
Want us to set this up for you? Get Your AI Team Installed.
Get Your AI Team InstalledStep By Step
1Name the one job in a single sentence
Start every instruction with one clear sentence that names the job. For example, "You draft a friendly follow up email to a lead who has not replied in three days." One sentence keeps the agent focused. If you cannot state the job in one sentence, the job is too big. Split it into two bots or two instructions. A clear first sentence is the single biggest thing you can do to make an agent behave.
Screenshot Placeholder
Screenshot showing: Name the one job in a single sentence
2Tell the agent who it speaks for
Give the agent a role and a voice. Tell it who it represents. For example, "You speak for a small plumbing business in South Florida. You are polite, short, and professional." This shapes how the agent talks and what it assumes. Without a role, the agent guesses, and its guesses can sound wrong for your brand. A clear role keeps the tone steady across every output.
Screenshot Placeholder
Screenshot showing: Tell the agent who it speaks for
3List what the agent must never do
Rules about what not to do are as important as rules about what to do. Write a short list of hard limits. For a follow up bot: never promise a discount, never book an appointment, never share another customer's details, never send the email yourself. Hard limits protect you. Agents test boundaries, so be explicit. A clear never list prevents most of the costly mistakes.
Screenshot Placeholder
Screenshot showing: List what the agent must never do
4Define the exact output you want
Tell the agent the shape of the answer you want back. Do not leave it open. For example, "Return only the email subject line and the email body. No preamble. No explanation." When you define the output, the agent stops adding extra chat around the answer. This makes the output easier to use and easier to check. A defined output also makes it simple to drop the result into your workflow.
Screenshot Placeholder
Screenshot showing: Define the exact output you want
5Add a tone and length rule
State the tone and the length you want. For example, "Friendly but professional. Keep the email under 120 words." Tone and length rules stop the agent from being too formal, too casual, or too long. Short, friendly, and direct works for most small business tasks. If the output feels off, the tone rule is usually the first thing to tighten.
Screenshot Placeholder
Screenshot showing: Add a tone and length rule
6Tell the agent what to do when unsure
Agents make things up when they are unsure. Stop that with a clear rule. For example, "If you are not sure, say you are not sure and ask the user. Do not guess." This single rule prevents the most dangerous agent behavior, which is confident wrong answers. Tell the agent it is allowed to not know. That keeps its output honest and easy to trust.
Screenshot Placeholder
Screenshot showing: Tell the agent what to do when unsure
7Test with five to ten sample requests
Before you trust the instruction, test it. Give the agent five to ten sample requests that look like real ones. Read every reply. Does it stay on job? Does it follow the never list? Is the output the right shape and length? When it drifts, note the request that broke it and tighten that part of the instruction. Testing is how you turn a vague instruction into a reliable one.
Screenshot Placeholder
Screenshot showing: Test with five to ten sample requests
8Tighten the rules based on what breaks
Every time the agent goes off job, fix the instruction. Add a rule that covers the exact failure. If it promised a discount, add "never promise a discount" to the never list. Instructions get better through small fixes, not big rewrites. Keep a short note of what you changed. Over a few weeks your instruction becomes tight, and the agent becomes boring in the best way, which is reliable.
Screenshot Placeholder
Screenshot showing: Tighten the rules based on what breaks
Common Mistakes
- Giving the agent more than one job. One job per instruction keeps it focused and reliable.
- Writing long, vague paragraphs. Short, plain rules are easier for the agent to follow.
- Skipping the never list. Hard limits prevent most costly mistakes.
- Leaving the output format open. Define the exact shape you want back.
- Letting the agent guess when unsure. Tell it to ask instead of making things up.
- Set and forget instructions. Tune the rules every time the agent drifts.
Want this done for you?
We set up your AI agents and train your team. Get Your AI Team Installed.
Frequently Asked Questions
Why does my AI agent ignore my instructions?
Usually the instruction is too long, too vague, or has more than one job. Shorten it to one job, use plain rules, and add a never list. Then test and tighten.
How long should an AI agent instruction be?
Short. A few clear rules beat a long paragraph. Aim for one job sentence, a role, a short never list, and a defined output. That is enough for most tasks.
Should I tell the agent what not to do?
Yes. A never list of hard limits is one of the most important parts of an instruction. It prevents the agent from doing things that could cost you.
What do I do if the agent makes things up?
Add a rule that tells the agent to say it is unsure and ask, instead of guessing. Then test it again to confirm the rule works.
Do these rules work for both Grok bots and Claude Duet?
Yes. Clear instructions help any AI agent. The same plain rules apply whether you are writing for a Grok bot or handing work to Claude Duet.
Keep Learning
Related guides that pair well with this lesson.
Official Documentation Sources
We only state features confirmed on official company documentation.
Written by
Nicolas Polanco Jr. (Nic)
Founder and CEO, LancoTech LLC • CompTIA A+ • Former Security Operations Analyst
Ready to put this to work?
We install and set up your AI team end to end. Book a free discovery call and we map it for your business.