How It's Built · 8 min read

How Do I Build an AI Agent for a Business? Step by Step

Walid Allouani builds each AI agent in six steps: the brain, the chat model, connections, a checker, an approval app and a live page. Here is each one.

Walid AllouaniWalid Allouani ·
How It's Built

Six steps from an idea to an agent that does real work

In this guide · 10 sections
  1. What are the six steps, at a glance?
  2. Step 1: Why does every agent start with a brain?
  3. Step 2: Which chat model does the thinking?
  4. Step 3: How does the agent connect to the business?
  5. Step 4: Why does every agent need a checker?
  6. Step 5: Where does the owner say yes?
  7. Step 6: What does "live" mean?
  8. What rules do I follow at every step?
  9. Which steps change for a client build?
  10. Do you need to build this yourself?
The short answer

I build an AI agent for a business in six steps: a company brain, a chat model that does the thinking, connections to the tools the business already uses, a checker, an approval app and a live page where the results show up. Each step has one job, and the agent isn't done until it works on a real task from start to finish.

That's the short answer. The steps matter, but the rules around them matter more. So below you get both: what each step does, and the rules I follow at every step.

I'm Walid Allouani, founder of Output Firm. We build and run teams of AI agents for businesses. Everything here is how I build for my own company first.

Walid Allouani working on his laptop, where he builds and checks his AI agents

01What are the six steps, at a glance?

1

Step 1: Build the brain (what the business knows)

2

Step 2: Pick the chat model (who does the thinking)

3

Step 3: Connect the tools (where the work happens)

4

Step 4: Add the checker (a second reader)

5

Step 5: Set up the approval app (where the owner says yes)

6

Step 6: Put it live (a page that shows the results)

Fig. 01 How Walid Allouani builds an AI agent, step by step.

02Step 1: Why does every agent start with a brain?

Because an agent that doesn't know your business is clever and useless, like a smart person on their first day.

The brain is one organized place with everything the business knows: its offers, rules, clients, voice and past decisions. Mine is plain text files in folders. Nothing fancy.

Plain files have three big pluses. I can read them myself. Any AI can read them. And they don't lock me into one company's product. I can browse them like a private wiki.

The brain also holds skills. A skill is a written set of instructions an agent loads for one kind of job, like a short training manual. For example, one skill checks every outreach email before it goes out. It looks at the person, the facts, the address and the copy, and gives one answer: send, hold or skip.

Skills are where my know-how lives. When an agent gets something wrong, I fix the skill, and the fix sticks. That's what I mean by "correct it once."

03Step 2: Which chat model does the thinking?

The chat model is the AI that reads, thinks and writes. It's the part most people already know from the chat apps on their phone.

I don't use one model for everything. I pick the model for the job, the same way you wouldn't send your most senior person to file paperwork.

This keeps quality high where it matters and cost sensible where it doesn't.

I'm not a developer, and I say that openly. The engineering and security on every build are done by Budeli Majidi, our Head of Engineering & Security. I don't write code line by line. I describe what I want in plain words, an AI building tool turns it into a working agent, and I test it on real work. My job is to know exactly what the agent should do, explain it clearly, and refuse to call it done until it works.

04Step 3: How does the agent connect to the business?

Through connections to the tools the team already uses: email, calendar, the customer list, the team chat and the phone.

This step is what turns a chat into a worker. A chat waits for you to type. A connected agent notices the new email, reads the customer record and drafts the reply where it needs to go.

The rule here is simple: go where people already are. Owners don't want a new app to learn. They want to send a quick message from their phone and get the work done. So in my company, my chief of staff sends alerts to my phone, and my client agent answers clients in the team chat they already use.

For client builds, Budeli Majidi, our Head of Engineering & Security, builds these connections and checks the security of each agent before it goes live. Each agent gets only the access its one job needs. You can read about him in who is on the Output Firm team.

05Step 4: Why does every agent need a checker?

Because the one who wrote the work is the worst one to check it.

The checker is a second agent that reads the work before anyone else sees it. It scores the work against a high bar. If it doesn't pass, it goes back for fixes. In my company, that checker is Vera.

The checker also looks for facts. If a number, date or price can't be found in the business's own records, it gets flagged instead of guessed.

06Step 5: Where does the owner say yes?

In an approval app. Mine is a private app I built, called Output Firm AI. Only I can open it, on my laptop, my tablet or my phone.

Inside it:

The rule behind this step: the agent drafts, a person gives the yes. Anything that touches a customer, like an email, a post or a booking, waits in the approval app until I say so. When I say "draft," the agent drafts. When I say "send," it sends.

The morning brief is read out loud by a voice that runs on my own computer. It costs nothing to run, and the brief never leaves my machine.

You can see how the app fits into a real day in a day running a company with AI agents.

07Step 6: What does "live" mean?

Live means the agent's work shows up somewhere real: a page a person can open, a message a person received, a record that got saved.

For my own websites, the pages sit with a hosting service that keeps them online all day. For agents, live means the agent ran on a real job and the result reached its real end point.

"Built" is not "done." A tool or agent only counts once I've seen it work from start to finish on a real job.

08What rules do I follow at every step?

This is the part I'd want you to steal.

1. Nothing we install may track us. Lots of AI kits and templates send data back to whoever made them. So I don't install outside kits as they are. I rebuild the idea as our own, remove every call to an outside server, and check four times that nothing leaves before I use it. A second reader checks again.

2. Agents never type keys or passwords. Keys and passwords are entered by a person, never pasted into a chat, never typed by an agent. Who can log in and see what always waits for me.

3. Don't use AI where a simple script will do. Simple checks, like "did a call get booked?", run with no AI at all. AI only handles jobs that need judgment, like reading a reply and deciding what it means.

4. Use what the owner already uses. For a client build, the agents connect to the email, calendar, customer list and chat the team already has. We don't make anyone switch tools to fit the AI.

5. Proven on real work, or it isn't done. Every step gets tested with a real request, not a pretend one.

09Which steps change for a client build?

The order stays the same. The brain comes first, built from the owner's own material. Then the model, the connections to the tools the business already runs on, the checker, the approval step and the live result.

We also look after the agents every month after they go live, because an agent nobody looks after drifts. You can read how we keep a client's data safe in how I protect a client's business from AI risk.

10Do you need to build this yourself?

No. You don't need to learn any of this. Your job is to explain how your business runs and approve the work. The building is done for you.

Book a 30-minute call and we'll look at which jobs agents could take off you first, using the tools you already have.

FAQ

How do you build an AI agent for a business?

Walid Allouani uses six steps: build a company brain, pick the chat model for the job, connect the tools the business already uses, add a checker, set up an approval step and put it live. The agent is only done once it works on a real task.

Do you need to code to build AI agents?

Walid isn't a developer. He describes what the agent should do in plain words, an AI building tool turns it into a working agent, and he tests it on real work before calling it done.

What is a skill in AI agents?

A skill is a written set of instructions an agent loads for one kind of job, like a short training manual. When the agent gets something wrong, fixing the skill makes the fix stick.

Why use different AI models for different jobs?

Hard or client-facing work gets the strongest model, routine jobs get a middle model, and quick sorting gets the smallest, fastest one. Quality stays high where it matters and cost stays sensible.

How do you keep AI tools from tracking your business?

Walid doesn't install outside AI kits as they are. He rebuilds each idea as his own, removes every outside call, and checks four times that nothing leaves before using it.

Want agents doing this inside your business?

We learn how your business runs, build the agents, and look after them. Nothing goes to a customer without your yes.

Book a call
Walid Allouani
Walid AllouaniFounder of Output Firm. Runs Output Firm as a two-person team, with AI agents doing the work and builds the same for businesses.LinkedInXInstagramYouTube

Keep reading