Building an AI agent with n8n: the building blocks, and the safeguards.

Bonbay Updated on 13 November 2026 2 min read

What an agent is, and what it isn’t.

A conventional workflow always follows the same path: if A, then B. An agent receives a request in everyday language, such as “find this customer’s order and tell me its status”, and works out which actions to chain together to answer it.

An agent is still a language model that has been given an instruction and a few tools, without an employee’s judgement. It can misunderstand, pick the wrong tool or make up an answer: design it with these flaws in mind.

The building blocks to assemble in n8n.

n8n offers an agent node to which you connect the other elements. You choose the language model – from OpenAI, Anthropic, Mistral, Google or another provider – write the instructions, then plug in the tools.

A tool is an action the agent is allowed to run: search a spreadsheet, read a record, send a message. Each tool has a short description, which the model reads to know when to use it.

  • The model: the engine that understands the request and reasons
  • Instructions: the agent’s role, what it must do and must never do
  • Tools: the permitted actions, each described in one sentence
  • Memory: what the agent retains from the current conversation

Safeguards before going live.

The safest rule: give the agent reading tools before writing tools. An agent that looks up an order cannot do much harm. An agent that can send an e-mail to a client or edit a record needs human approval before acting.

Then test the agent on a set of real requests, including off-topic or ambiguous ones, and review what it did. Any personal data it processes falls under the GDPR: the CNIL publishes recommendations on AI systems.

Bonbay. Updated 13 November 2026.

Your questions.

Do I need to master n8n before building an agent?

Yes. You need to be able to build and troubleshoot a standard workflow, because the agent's tools are themselves workflows.

Which AI model should you choose for an agent?

The one that gives reliable results on your requests, with data-processing terms you find acceptable. Compare the models on the same set of tests.

Can an agent act without human oversight?

Technically, yes. We advise against it for any action that commits the company: sending something to a customer, changing data, making a payment.

How does it differ from a chatbot?

A chatbot answers. An agent can also act in your software, thanks to the tools it has been given.

Is an agent expensive to run?

Each request uses calls to the model, billed by its vendor. The cost depends on volume and is measured during testing.