AI Adopt
← All cases
Case · For small business owners

n8n vs Claude Code: how to set up an AI agent for your business

I built the same AI agent, one that books restaurant tables, three different ways. Here's what an agent actually is, how each way went, and which one I'd pick for a small business.

By Pavel Bely ·

Short answer: build it with Claude Code, run it in n8n. n8n is where the agent lives, and your team can see every step it takes. Claude Code is the fastest way to build that workflow and to change it later.

n8nClaude Code
What it isA visual workflow tool that runs 24/7An AI assistant that writes and sets things up for you
Use it toRun the agent and see what it didBuild the workflow and change it
Who can follow itAnyone on your team, after a short introSomeone comfortable with a terminal

What's inside:

  1. What is an AI agent?
  2. Step zero: get the bookings out of the notepad
  3. The agent in action
  4. Three ways to build it
  5. So which one should you use?
  6. Where to start

1. What is an AI agent?

A chatbot tells you what to do. An agent does it for you. If you ask Claude a question and then do what it says yourself, that's a chatbot. If you ask it to archive your unimportant emails and it does, that's an agent.

And it's not just for developers. A few things a small business can hand to an agent today:

Every agent, no matter how impressive the demo, is made of the same four pieces:

  1. The trigger. What starts it. Here, a guest sends a message to the restaurant.
  2. The brain. An AI model plus instructions in plain language: opening hours, the biggest group you accept online, how to handle allergies, the tone you want.
  3. The tools. What it's allowed to do. Here, look up free tables and save a booking once it's approved.
  4. The human checkpoint. Nothing reaches the guest until someone on your team has looked at it and tapped approve.

The fourth one is the piece people skip, and it's the one that lets you sleep at night. Keep it in mind, because the three ways of building below handle it very differently.

2. Step zero: get the bookings out of the notepad

A lot of restaurants still take bookings in a paper notepad. AI can't read a notepad. Before any agent, you need one place in the cloud where bookings live, and it has to be the same place for the host on the phone and for the agent on WhatsApp.

So I built a simple web app on n8n that runs on a tablet at the host stand. It shows tonight's bookings by time and how many seats are still free in each slot, and that number updates by itself. The host marks guests as arrived or as no-shows, and a cancellation frees the slot. No App Store, no IT department.

3. The agent in action

A guest messages the restaurant on Telegram: a table for six, Saturday at 8. The agent checks the booking table, sees 8 is full and offers 7:30 or 9. She picks 7:30. The agent asks the manager to approve, the manager taps approve, the booking is saved and the guest gets a confirmation. The whole thing takes about 15 seconds.

Because the agent and the host's tablet use the same booking table, the new booking shows up on the tablet right away.

4. Three ways to build it

n8n, by handn8n “Build with AI”Claude Code builds the n8n workflow
How it worksYou add each step yourselfYou describe the agent, n8n's assistant builds itYou describe it, Claude Code builds the workflow and the Telegram bot
EffortHighLowLow
ControlFull, every step is visibleLess, one “agent” blockFull, a real step-by-step workflow
Manager approvalA real stepOnly a line in the promptA real step
Good forLearning how it worksA quick prototypeSomething you'll actually run

By hand is too tedious to do from scratch every time, but it's worth doing once. You'll understand what each piece does and know how to fix it later.

n8n's Build with AI surprised me. It's a much simpler setup and pretty decent. The catch is the approval: it sits in the prompt, so it's a promise the agent makes, not a rule it can't break.

Claude Code is how I build these now. It created the workflow, the Telegram bot and the booking table for me, and the approval is a real step the agent can't skip.

5. So which one should you use?

It's not really n8n or Claude Code. They do different jobs.

n8n is where the agent lives. It runs 24/7, your team can open it and see every step, and when something goes wrong on a Saturday night you can see exactly where. A non-developer can follow it.

Claude Code is how you build and change it. It's fast at the tedious parts: connecting accounts, wiring steps together, writing the instructions. You don't want Claude Code itself running your bookings, but it gets the n8n workflow built in an afternoon instead of a week.

One more reason to keep it all in n8n: the booking app and the agent share one tool, so there's one thing to maintain. Small teams don't have time to babysit five tools that sync with each other.

Where to start

Pick one task your team does many times a week by message or email, like bookings, quote requests or order updates. Write down the four pieces for it: what triggers it, what the agent should know, what it's allowed to do, and who approves. If you can't fill in all four, the task isn't ready for an agent yet, and that's useful to know too.

Want an agent like this in your business?

Book a free 15-minute AI audit. We'll look at how your team works today and pick the first task worth handing to an agent.

Book a free AI audit →