Diego MurilloCDMX
← Resources
TemplateNovember 20, 2026Guide · Agents

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.

Comment ARMARCame from my video? Here’s what I promised.
The full guide

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.

1 · What it isStart here

An agent, in one sentence

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 botAn 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.
2 · The pieces

Three pieces, no more

  1. 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.

  2. 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.

  3. 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.

3 · The information

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
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
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
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:

  1. Look it up.

    It reads the catalog and the calendar.

  2. Act.

    It quotes and, if the customer accepts, books.

  3. Record.

    It writes the order into the calendar.

  4. 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.

4 · Test it

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.

MessageGood answerBad 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.
If an answer comes out bad, fix the information or the permission, not the test message. Then send all five again.
5 · Example

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.

The bakery’s information
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.

The conversation
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:

The calendar after booking
CALENDAR, AFTER BOOKING
Saturday morning: full · booked: [POR CONFIRMAR] cake for 25 people
Saturday afternoon: open · [POR CONFIRMAR] · orders: [POR CONFIRMAR] · booked: [POR CONFIRMAR]
Another customer, later
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.

6 · Putting it to work

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.

Want to build it with us?

Book 30 minutes and we’ll work out how to build your business’s agent, with your information and your number.

Book a call →
Want it in your inbox?

I’ll send it so you don’t lose it.

More resources
See all →
By email
Checklist · App design

13 signs your app looks vibecoded

The checklist for going over your app before you show it: what looks wrong, why it costs you the trust of whoever uses it and what to do in each case, plus two extra signs that give away the AI. Four pages to keep next to you while you go through it.

Comment PREMIUMSee→
By email
Before you code

Your product on paper

The template I fill out before writing any code: Who is it for? What does it do? How does it do it? What doesn't it do? Plus a sheet that takes you from those answers to your app's data. Made to print and fill in by hand.

Comment PAPELSee→
Free
Prompts · Before you launch

Does this go in your first version?

Prompts so your coding agent runs your list through the cut question and leaves you the table of what ships and what waits in the PRIMERA-VERSION.md file.

Comment PRIMERASee→