Every agent, no matter how simple or sophisticated, is built from the same 4 parts. Once you can name them and say what each one does, you can evaluate any AI tool someone tries to sell you, and you can describe what you need without requiring an engineer in the room. This chapter walks through all 4 parts using Mia's Beans and Books inbox agent as the thread.
The four parts, in one picture
The easiest way to understand the 4 parts is to think of the agent as a person doing a job. A person doing a job well has a brain to think with, a set of instructions that tells them the goal and the rules, hands they can use to interact with the world, and a notebook where they write things down so they do not have to remember everything from scratch each time. An AI agent has exactly the same 4 components, with different names: the model, the instructions, the tools, and the memory.
None of the 4 parts does much on its own. The model is a brain with no instructions, so it will think about whatever you point it at but will not know what Mia's shop cares about. The instructions have a goal but no ability to act. The tools are connections to real systems that do nothing until something calls them. Memory is a notebook that has to be written to before it can be read from. They work because they are connected. The model reads the instructions, uses the tools to act, and writes to memory so the next run can build on what happened before.
Part 1: The model (the brain)
The model is the AI reasoning engine at the center of the agent. It is what reads an email in Mia's inbox, figures out what the customer is asking, and decides what the right response looks like. When people talk about "ChatGPT," "Claude," or "GPT-4," they are usually talking about a model.
A model does not come with knowledge about Mia's shop built in. It comes with a general ability to read and reason, the way a new hire arrives with literacy and common sense but without knowing the menu, the regulars, or the supplier relationships. Those specifics get loaded in through the instructions. The model just supplies the intelligence that can apply those specifics to each new situation.
Different models have different strengths. Some are faster and cheaper. Some are better at following long, detailed instructions without drifting. Some are better at very precise reasoning about numbers. For most small-business agent work, the practical differences between the top-tier options are smaller than you might expect. The quality of the instructions you give the model matters more than which model you pick.
Part 2: The instructions (the playbook)
The instructions are the playbook you hand to the agent before it starts. They tell the model what goal it is working toward, what rules it must follow, what tone to use when communicating, and which situations require it to hand off to a human instead of acting on its own. Without good instructions, even a powerful model produces generic, off-brand, or just wrong results.
For Mia's inbox agent, the instructions might read something like this: your job is to read incoming customer emails for Beans and Books and draft a reply for each one. Use a warm, personal tone. If an email is a complaint or mentions a refund, do not send the reply automatically; flag it for Mia to review first. If a wholesale inquiry comes in, forward it to the manager inbox and send the sender a brief acknowledgment.
Notice that those instructions do not try to cover every possible type of email. They set the goal ("draft a reply for each one"), a few firm rules ("don't auto-send complaints"), and the escalation path ("flag for Mia"). Then they trust the model to apply judgment to everything else. That is exactly the point of using an agent instead of a plain automation. A plain automation needs a rule for every case. An agent needs a clear goal and a clear boundary.
- The goal: what the agent is trying to accomplish.
- The constraints: what it is not allowed to do on its own.
- The voice and persona: how it should communicate on your behalf.
- The escalation path: when to stop and hand off to a human.
- Any business context it needs to do the job: your hours, key contacts, policies, pricing.
Part 3: The tools (the hands)
Tools are the connections that let the agent interact with real systems. Without tools, the model is thinking in a box. It can reason about what Mia's inbox needs all day, but it cannot actually read the emails, draft a reply into Gmail, or send a Slack message to Mia when something needs her attention. Tools are what translate reasoning into action.
For Mia's inbox agent, the tools are: Gmail (to read incoming emails and send or draft replies), an order history spreadsheet (to look up context if a customer references a past order), and Slack (to ping Mia directly when an email needs her review). That is a short list. The agent does not need access to everything in the business, just the tools required to do the specific job it was given.
A detail worth noting: the agent only calls a tool when the job actually requires it. If an email is a simple question about hours, the agent reads it, writes the reply, and sends it. It does not check the order log (there is no order to look up) and it does not ping Slack (nothing needs Mia's attention). The tools are available; the agent decides when to use them based on what the email calls for.
Part 4: The memory (the notebook)
Memory is what lets the agent build on what it has already encountered instead of starting from zero every time it runs. There are 2 kinds that are worth understanding for a small-business context.
The first is in-context memory, which is the agent's working memory during a single job. When Mia's inbox agent is processing one email, it holds the text of that email, the instructions, and any information it looked up all at once in its working space. When the job is done and the email is handled, this working space clears. The agent does not automatically remember anything from one email to the next unless something is written to persistent memory.
The second is persistent memory, which is a record the agent can write to and read from across multiple runs. For Mia's shop, this might mean the agent keeps a note that a particular customer submitted a complaint last month, so that when they write again the agent can acknowledge the prior interaction and flag the email for Mia. Or it might mean the agent tracks which topics keep coming up in customer emails, so Mia can see at a weekly glance what her customers are asking about most.
Persistent memory is more powerful but also more complex to set up well and to keep accurate. Most small-business agents start without it. You run the core task reliably first, build confidence in the agent's basic judgment, and add persistent memory as a second step once the foundation is solid.
- Every agent has 4 parts: a model (the brain), instructions (the playbook), tools (the hands), and memory (the notebook).
- The model provides reasoning ability but needs instructions to know what your business cares about.
- Good instructions set a goal, clear rules, a voice, and an escalation path; they do not try to cover every possible case.
- Tools are the connections that let the agent read from and write to real systems like Gmail and Slack.
- Give the agent the smallest set of tool access the job requires; expand only after building trust.
- In-context memory lasts for one job; persistent memory carries knowledge across multiple runs.
- Start without persistent memory, get the core task running reliably, and add it as a second step.

