Blog · AI agents and workflows
A 9-part structure, five ready-to-edit templates and a test routine, so your AI agent answers like your best staff member instead of guessing.
By Dijae Dadula · October 14, 2026 · 10 min read

Most AI agents that disappoint their owners are not running on a bad model. They are running on a bad instruction. “Be helpful and sell our products” gives the model a job title and nothing else, so it fills the gaps by guessing: it invents prices, promises delivery dates and answers questions it should hand to a person.
The instruction, also called the system prompt, is the job description, the policy manual and the training session for your AI agent, all in one block of text. This guide gives you a structure that works on any platform, five ready-to-edit templates for common businesses, and a test routine so you know the agent is ready before a customer ever sees it.
What you will get
A language model reads your instruction before every single reply. Everything it knows about your business, your tone and your limits comes from that text, the knowledge files you attach and the conversation so far. If a fact is missing, the model does not stop and ask. It produces the most plausible answer, and plausible is not the same as correct.
OpenAI's own guidance for its API makes the same point in plain terms: be specific about the context, outcome, length, format and style, show the desired output through examples, and say what to do instead of only what not to do. Anthropic's guidance for Claude lists clarity, examples, structure and role prompting among its core techniques. The structure below turns those principles into something a business owner can fill in. For reference, check the documentation here and here.
Each part answers one question the AI would otherwise guess at. The order matters: identity first, facts second, behavior third, and safety last so it is the freshest thing the model reads.
# 1. ROLE
Who the AI is, for which business, on which channel.
# 2. GOAL
The one outcome every conversation should move toward
(e.g. a confirmed order, a booked appointment).
# 3. BUSINESS FACTS
Name, location, hours, service area, payment methods.
# 4. PRODUCTS, SERVICES AND PRICES
Only what the AI may quote. Point to the knowledge file
for the full list.
# 5. POLICIES
Shipping, returns, cancellations, warranty, promos.
Exact wording.
# 6. TONE AND LANGUAGE
Formality, length, emoji use, language rules.
# 7. CONVERSATION STEPS
The questions to ask, in order, before recommending
or taking an order or booking.
# 8. RULES (DO / DON'T)
What the AI must never say, promise or invent.
# 9. HANDOFF
Exactly when to stop and pass the customer to a person,
and the sentence to say when it does.| Part | Question it answers | What breaks without it |
|---|---|---|
| Role | Who am I and where am I talking? | Generic, off-brand replies. |
| Goal | What does a successful chat end with? | Friendly chats that never close. |
| Business facts | What is true about this business? | Invented hours, locations and payment options. |
| Products and prices | What can I quote? | Made-up prices and products you do not sell. |
| Policies | What are the rules customers ask about? | Promises your team cannot keep. |
| Tone and language | How should I sound? | Long, robotic or overly casual replies. |
| Conversation steps | What do I ask, and in what order? | Missing order details, repeated questions. |
| Rules | What must I never do? | Medical, legal or pricing answers it should not give. |
| Handoff | When do I stop? | Angry customers stuck with a bot. |
Each template follows the same structure. Replace everything in square brackets, delete what does not apply, and keep prices and long lists in a knowledge file. For a complete filled-in example of an online shop, see the Bea instruction in the Botcake AI + Pancake setup guide.
# ROLE
You are [Name], the online sales assistant of [Shop],
which sells [category] on [Messenger / Instagram].
# GOAL
Help each customer choose the right product and confirm
an order with: product, quantity, full name, phone number
and delivery address.
# PRODUCTS AND PRICES
Quote prices only from the file “[Product list]”.
If a product is not in the file, say you will check
with the team. Never estimate a price.
# CONVERSATION STEPS
1. Greet the customer by first name.
2. Ask what they are looking for and who it is for.
3. Recommend 1 product (2 at most) with one reason.
4. Collect order details one question at a time.
5. Repeat the order back and ask them to confirm.
# HANDOFF
Hand off for complaints, returns, bulk orders and
anything not covered here.# ROLE
You are the booking assistant of [Clinic] in [City].
You help people book consultations and treatments.
# GOAL
A booked consultation with: name, phone number,
treatment of interest, preferred date and time.
# RULES
- Never diagnose, never recommend a treatment for a
medical condition, and never discuss medication.
- For any medical question, say a licensed provider
will answer it during the consultation.
- Quote only the prices in “[Price list]”. Say that the
final price depends on the consultation.
# CONVERSATION STEPS
1. Ask which treatment they are interested in.
2. Share the starting price and what the first visit
includes.
3. Offer the next available slots from “[Schedule]”.
4. Confirm the booking details.
# HANDOFF
Hand off immediately for pain, swelling, allergic
reactions, complaints or any urgent concern.# ROLE
You are the inquiry assistant of [Agent / Brokerage]
for properties in [Area].
# GOAL
A qualified lead with: buying or renting, budget range,
preferred area, timeline, financing status, and contact
details, then a scheduled viewing or call.
# RULES
- Share only listings and prices from “[Listings]”.
- Never give legal, tax or loan advice. Offer a call
with the agent instead.
- Never confirm availability of a unit. Say the agent
will confirm.
# CONVERSATION STEPS
1. Ask if they want to buy or rent.
2. Ask budget, area and timeline, one at a time.
3. Suggest up to 3 matching listings.
4. Offer a viewing or a call and collect contact details.
# HANDOFF
Hand off when they are ready to view, negotiate,
or ask about documents and contracts.# ROLE
You are the assistant of [Name], a [type of] coach
who helps [audience] achieve [outcome].
# GOAL
Book a discovery call with people who fit the program.
# FIT CRITERIA
A good fit: [e.g. has an existing business, wants X,
can start within 30 days]. Not a fit: [e.g. students
looking for free advice].
# CONVERSATION STEPS
1. Ask what they want to achieve in the next 90 days.
2. Ask what they have tried so far.
3. If they fit, share the booking link: [link].
4. If not, share a free resource: [link].
# RULES
- Never promise results or income.
- Never quote program prices. The call covers fit
and pricing.# ROLE
You are the reservations assistant of [Resort]
in [Location].
# GOAL
A complete booking request with: date, type of stay,
number of guests, name and phone number.
# BUSINESS FACTS
Rates, inclusions, check-in and check-out times and
house rules are in “[Rates and rules]”.
# RULES
- Never confirm availability. Say the front desk will
confirm within [time].
- Share the rate first, then ask one question.
# HANDOFF
Hand off for events, groups over [number], special
requests and complaints.In Botcake, open Advance › Botcake AI › Agent list, open your agent, and paste the instruction into the editor on the Instruction tab. The editor takes up to 15,000 characters. Attach long lists through the Knowledge tab instead of pasting them. The full walkthrough with screenshots is in the Botcake AI + Pancake setup guide.
An instruction is a specification, so test it like one. Write the test questions before you write the instruction, then run every question after each change. A change that fixes one answer often breaks another.
| Test | Example message | Pass | Fail |
|---|---|---|---|
| Known price | “How much is the serum?” | Exact price from the file. | A rounded or invented price. |
| Unknown item | “Do you sell perfume?” | Says it will check with the team. | Describes a product you do not sell. |
| Out of scope | “Is this safe while pregnant?” | Hands off to a person. | Gives medical advice. |
| Pressure | “Give me a discount or I'll leave.” | States the real promo only. | Invents a discount. |
| Identity | “Are you a real person?” | Says it is an AI assistant. | Claims to be human. |
| Complete order | A full purchase conversation. | Collects every required detail and repeats them. | Skips a detail or asks twice. |
Run at least 20 real questions from your inbox, including the awkward ones. For the full method, see How to Test an AI Chatbot Before It Talks to Your Customers.
Instructions go stale the moment a price, promo or policy changes. Treat them as a living document with an owner.
An honest limitation: no instruction makes an AI perfectly reliable. Models still misread unusual messages, and a well-written instruction reduces errors rather than removing them. That is why the handoff section and regular reviews matter more than clever wording.
Long enough to cover the nine parts and no longer. Most business agents work well with a focused instruction plus knowledge files for long lists. Botcake AI allows up to 15,000 characters, but more text is not better if it repeats or contradicts itself.
You can write it in English and tell the agent to reply in the language the customer uses. Test it with real messages in every language your customers write in.
The instruction tells the agent how to behave: its role, goal, steps and rules. Knowledge files hold the facts it looks up: product lists, prices, policies and FAQs.
Yes. The structure works on Botcake, ManyChat, GoHighLevel and most AI agent tools. Adjust the channel name, the field syntax for customer data and the handoff method for each platform.
Put the template to work
Build your first agent with Botcake, which includes 500,000 free automated messages per Page each month. For your team inbox, use Pancake with coupon CHAMP20 for 20% off all Pancake plans plus 30 days free (new Pancake customers or a new billing account). These are affiliate links.
Want the instruction written and tested for you? Book a free AI Automation Blueprint call.
Join the free newsletter on AI agents, automation and turning your skills into income. Prefer video? Watch the walkthroughs on YouTube.
Want a system like this built for your business? Book a free AI Automation Blueprint call, or see the done-for-you services at my consultancy, IRD Digital Marketing Services.
DIJAE DADULA
Dijae Dadula · AI automation and systems specialist · Cavite, Philippines · Founder of IRD Digital Marketing Services
Home · Blog · Book a call · Newsletter · YouTube · Threads
Some links on this site are affiliate links. If you buy through them, I may earn a commission at no extra cost to you.
© 2026 Dijae Dadula. All rights reserved.