How to build an agent for your business
What an agent is, the three pieces it needs, how to write your business information so it doesn’t make things up, and how to test it with five messages. With a bakery as the example.
Build your agent in five parts
For an agent to be useful to your business, it needs three things: a goal, your information and permission to use it. Here’s how to put each one together and how to test it before it starts answering.
An agent, in one sentence
An agent looks up your business information and acts on it.
A bot repeats what someone wrote for it. If the customer asks something that isn’t in its script, it gets stuck or gives the same answer as always.
It’s easier to see with a real message. A customer writes: “Do you have a cake for 25 people on Saturday morning?” Here’s what each one does:
| A bot | An agent | |
|---|---|---|
| What does it answer? | “We have chocolate, vanilla and strawberry cakes.” The same thing it tells everyone. | “Saturday morning still has openings. For 25 people I have two options. Which one should I book for you?” |
| Where did the answer come from? | A text someone wrote beforehand. | Your catalog and your calendar, read right then. |
| What can it do besides answer? | Nothing. It repeats its text. | Quotes, checks what’s left and books the order. |
| What if they ask for something you didn’t expect? | Gives the usual answer or gets stuck. | Looks it up in your information and, if it isn’t there, says so. |
Three pieces, no more
- A goal.
What your business wants out of each conversation. For example: the customer leaves with their order. With a clear goal, the agent knows where to take each message.
- Your business information.
Your catalog and your calendar, and nothing else. Anything extra you give it is something it can mix up or bring up where it doesn’t belong.
- Permission to act on it.
Read, quote, book and record what it booked. Write it just like that, spelled out. If it isn’t on that list, it doesn’t do it.
If a piece is missing, you notice fast. Without a goal, it answers but closes nothing. Without information, it makes things up. Without permission, it only gives information, and the customer has to message you again to book.
Write it so it doesn’t make things up
The agent makes things up when it’s missing a piece of data or when the data is written in a confusing way. Write your information in three lists and keep them somewhere the agent can read them and also update them. A document only you edit by hand goes stale as soon as the first order comes in.
- Products and prices, one per line.
If a product costs different amounts by size, use one line per size. A “from” forces it to guess the rest.
- Hours and availability by day.
Each day with its hours and how many orders you can handle. “Weekends fill up” doesn’t help it; a number per day does. You don’t fill in the bookings: when the agent books, it records the order in the calendar, and the next lookup, its own or for another customer, already sees that change.
- What you don’t offer.
Separately, in its own list. Without it, when someone asks for something off the menu, it can offer the closest thing as if it existed.
CATALOG
Product: [name]
Size: [how many people it serves]
Price: [price with currency]
(one entry per product and per size, no “from” and no “approximately”)[ ] Replace what is in brackets before you paste it.
CALENDAR
Monday: [open or closed] · [hours] · orders per day: [number] · booked: [the agent records them]
Tuesday: [open or closed] · [hours] · orders per day: [number] · booked: [the agent records them]
Wednesday: [open or closed] · [hours] · orders per day: [number] · booked: [the agent records them]
Thursday: [open or closed] · [hours] · orders per day: [number] · booked: [the agent records them]
Friday: [open or closed] · [hours] · orders per day: [number] · booked: [the agent records them]
Saturday: [open or closed] · [hours] · orders per day: [number] · booked: [the agent records them]
Sunday: [open or closed] · [hours] · orders per day: [number] · booked: [the agent records them][ ] Replace what is in brackets before you paste it.
WHAT WE DON’T OFFER
- [product or service you don’t make]
- [size you don’t do]
- [days or times with no delivery]
If someone asks for something on this list: say so clearly and offer the closest thing in the catalog.[ ] Replace what is in brackets before you paste it.
With the information in that place, the agent works in a loop that repeats with every message:
- Look it up.
It reads the catalog and the calendar.
- Act.
It quotes and, if the customer accepts, books.
- Record.
It writes the order into the calendar.
- Look it up again.
Before answering the next time, it reads again. It never answers from what it remembers of the last conversation.
Where you test it. In Claude or ChatGPT. Create a project, put the goal and the permission in its instructions, and the three lists as text or a file in the project. Then open a chat inside that project and send the five test messages.
It’s only for testing. Once the five answers come out right, move those same instructions and lists to the tool you’ll use with your customers, for example WhatsApp. That’s where the agent actually answers.
Careful with the register step: a test chat doesn’t update your calendar on its own. While you test, write the order into the list yourself.
Five messages before you let it loose
Before it answers a customer, send it these five. The fourth one asks for something off the menu on purpose.
| Message | Good answer | Bad answer |
|---|---|---|
| The price of something that is in your catalog. | The exact price from your list, with its size. | An approximate price, or one that isn’t on your list. |
| Availability for a specific day. | What your calendar says for that day. | A “sure, we have room” without checking, or a day you’re closed. |
| A full order: product, size and day. | Quotes, says what’s left and offers to book it. | Gives the price and stops there. |
| Something that isn’t on your menu. | Says you don’t do it and offers the closest thing in your catalog. | Quotes it as if it existed. |
| An incomplete message, like “how much is a cake?”. | Asks for what’s missing (size and day) before giving a price. | Picks a product on its own and gives a price. |
A bakery, start to finish
This is what it looks like with the three pieces in place. Replace what is in brackets with your business’s data.
GOAL
The customer leaves with their order booked.
CATALOG
[POR CONFIRMAR] cake · 25 people · $[POR CONFIRMAR]
[POR CONFIRMAR] cake · 25 people · $[POR CONFIRMAR]
CALENDAR (the agent reads it and updates it)
Saturday morning: open · [POR CONFIRMAR] · orders: [POR CONFIRMAR] · booked: [the agent records them]
Saturday afternoon: open · [POR CONFIRMAR] · orders: [POR CONFIRMAR] · booked: [the agent records them]
WHAT WE DON’T OFFER
- [POR CONFIRMAR]
PERMISSION
Read the catalog and the calendar. Quote. Book and record the order in the calendar.[ ] Replace what is in brackets before you paste it.
- 1Hi, do you have a cake for 25 people for Saturday morning?
- It looked up Saturday on the calendar and quoted only with what’s in the catalog.
- For Saturday morning I still have [POR CONFIRMAR] spots left. For 25 people I have two: [POR CONFIRMAR] at $[POR CONFIRMAR] and [POR CONFIRMAR] at $[POR CONFIRMAR]. Which one should I book for you?
- 2The first one, please.
- It acted with its permission to book and recorded the order in the calendar. Goal met: the customer leaves with their order.
- Done, the [POR CONFIRMAR] cake for 25 people is booked for you on Saturday morning, for $[POR CONFIRMAR].
With that order, Saturday morning hit its limit. This is how the calendar was left:
CALENDAR, AFTER BOOKING
Saturday morning: full · booked: [POR CONFIRMAR] cake for 25 people
Saturday afternoon: open · [POR CONFIRMAR] · orders: [POR CONFIRMAR] · booked: [POR CONFIRMAR]- 1Hi, can you make me a cake for Saturday morning?
- It looked things up again before answering and already saw the first customer’s order. It didn’t offer the morning.
- Saturday morning is already full. In the afternoon I still have [POR CONFIRMAR] spots left. Does the afternoon work for you? Tell me how many people and I’ll give you a quote.
Everything it said came from the catalog and the calendar, read right then. That’s why it never books the same spot twice.
From the test to real customers
So far you’ve built the agent’s design: its goal, the information it reads and what it can do. Claude or ChatGPT are good for checking that it works, but a chat only answers when you write to it. For it to answer your customers’ messages, it has to be connected to the place where they write to you, for example WhatsApp.
That’s done with the WhatsApp Business API, the door Meta offers so a program can answer from your number. There are two ways to use it:
- With the API only.
Your number is connected to the API and the agent answers through it. The connection is made with a provider authorized by Meta.
- With coexistence.
Your same number keeps working in the WhatsApp Business app on your phone and, at the same time, the agent answers through the API. It fits if you answer from the app today and want to keep doing so.
This part involves technical work: choosing a provider and connecting the number. The instructions and the three lists you tested are the base of what gets connected.
Book 30 minutes and we’ll work out how to build your business’s agent, with your information and your number.
Book a call →I’ll send it so you don’t lose it.