All articlesArtificial Intelligence

WhatsApp AI Agent With n8n: How It Works, Limits and Cost

CT
CreativeIn Tek Team
· 13 min read
WhatsApp AI Agent With n8n: How It Works, Limits and Cost

A WhatsApp AI agent with n8n is a workflow in which an incoming WhatsApp message starts an n8n execution, an AI Agent node reads the message with the help of a language model, a memory and a set of tools, and a final step sends the reply back to the customer. The idea is simple, but the details decide whether it works in daily use: which WhatsApp connection is used, where the conversation memory is stored, what the agent is allowed to do, how a person takes over and what each reply costs. This guide explains how the pieces fit together, the limits that n8n's and Meta's own pages describe, and the running costs, using documentation and pricing pages read on 4 December 2026. It quotes no build prices, because none are published.

Last updated: 4 December 2026.

Key takeaways

  • The workflow has four parts: a trigger that receives the message, an AI Agent node with a chat model, memory and tools, a reply step, and supporting steps for hand-off, logging and errors.
  • n8n's own WhatsApp nodes use Meta's WhatsApp Business Cloud API. A QR-linked connection is a different, unofficial route that n8n's built-in nodes do not provide.
  • n8n's documentation says the Simple Memory node does not work in an active production workflow when the instance runs in queue mode, so a database-backed memory is the safer choice for real customers.
  • Meta's pricing page says free-form replies can only be sent inside a 24-hour customer service window, and that 1,000 service messages per business phone number per month are free, with charges after that.
  • Running costs are the n8n plan or server, model tokens and Meta's message fees. In the worked example below, the model bill is about USD 2 or about USD 40 a month depending on the model chosen.

How a WhatsApp AI agent with n8n works, step by step

Every incoming message follows the same path through the workflow. Each step is a node on the n8n canvas, and each one can be inspected in the execution log afterwards.

  • Trigger: the WhatsApp Trigger node starts the workflow when Meta sends an event to n8n's webhook address. n8n's documentation lists the events the node can listen for, including Messages, Message Template Status Update and Phone Number Quality Update.
  • Filter and prepare: ordinary nodes check that the event is a text message from a customer, pick out the sender's number and the text, and decide what to do with voice notes, images or unsupported content.
  • AI Agent node: the agent receives the text, the conversation history from its memory and the list of tools it may call, and it decides whether to answer directly or call a tool first.
  • Reply: the WhatsApp Business Cloud node sends the agent's answer to the customer's number with its Send operation.
  • Record: further nodes write the question, the answer and any tool calls to a spreadsheet, CRM or database, so that staff can review what the agent said.

The WhatsApp side: the official Cloud API or a QR-linked connection

There are two very different ways to connect a workflow to WhatsApp, and a business should know which one a proposal uses.

The official route: Meta's WhatsApp Business Cloud API

n8n's WhatsApp Trigger node and WhatsApp Business Cloud node both work with Meta's Cloud API and need WhatsApp Business Cloud credentials from a Meta app. The Cloud node's documented operations are Send, Send and Wait for Response and Send Template for messages, and Upload, Download and Delete for media. For anything else, the documentation suggests the HTTP Request node with the same credential. Meta's pricing page, read on 4 December 2026, says non-template messages can only be sent inside an open customer service window, which lasts 24 hours from the customer's last message, and that template messages can be sent at any time. An agent on this route can therefore answer freely while the window is open, and needs a template for anything sent later.

The unofficial route: a QR-linked connection

The other route links software to an ordinary WhatsApp number by scanning a QR code, as a linked device. n8n's built-in WhatsApp nodes do not do this, so workflows of this kind rely on a separate gateway that passes messages to n8n through a webhook. It avoids Meta's per-message fees and template rules, but it is not a route that Meta's documentation describes as supported, and a number can be restricted. No provider can promise otherwise. The guide to the WhatsApp Business API versus a QR-linked AI agent compares the two routes in detail.

Inside the AI Agent node: model, memory and tools

n8n calls the AI Agent a root node, and the model, memory and tools attach to it as sub-nodes. n8n's documentation says that all AI Agent nodes now work as a Tools Agent, and that at least one tool sub-node must be connected.

The chat model

The chat model sub-node is the language model that reads and writes. It is billed by the model vendor, not by n8n, and the business should hold the account and the API key in its own name. A smaller, cheaper model is often enough for routine questions, and the cost section below shows how large the difference can be.

Memory

Memory lets the agent see earlier messages in the same conversation. For WhatsApp, the session key is normally the customer's phone number, so each customer has a separate history. n8n's Simple Memory node keeps a set number of previous interactions in the workflow data, and its documentation warns that it does not work in an active production workflow if the n8n instance uses queue mode, because n8n cannot guarantee that every call goes to the same worker. A memory sub-node backed by a database, such as Postgres or Redis, avoids that problem and survives a restart. The amount of history kept also matters for cost, because every stored message is sent to the model again with each new question.

Tools

Tools are what turn a chatbot into an agent, a difference explained in the guide to AI agents versus chatbots. Typical tools for a WhatsApp agent look up opening hours and prices in a document or database, check free slots in a calendar, create a booking, save a lead in a CRM or search a knowledge base. Each tool should do one narrow job with the least access it needs. A tool that can read a price list is low risk. A tool that can issue refunds or delete records should not be given to an agent without a person approving the action.

Hand-off to a person

An agent needs a clear way to stop and pass the conversation to staff. In n8n this is usually built from three things: a rule in the agent's instructions about when to hand over (complaints, payments, medical or legal questions, an angry customer, or a request for a person), a tool that flags the conversation and alerts staff, and a switch that keeps the agent silent for that customer while a person is replying. n8n's documentation also says the WhatsApp Business Cloud node can be used as a human review step for AI Agent tool calls, so that the agent pauses and waits for a person's approval before running a tool that needs oversight. The Send and Wait for Response operation supports approval, free text and custom form responses, with an optional time limit.

Logging and error handling

A workflow that fails silently is the most common practical problem. n8n's error handling documentation describes an error workflow that is set in a workflow's settings, starts with the Error Trigger node and runs when an execution fails. It receives details such as the execution ID, the error message, the last node executed and the workflow name, and the same error workflow can serve several workflows. A sensible setup sends that alert to a staff channel and also sends the customer a short holding message when the model or a tool is unavailable. Separately, every conversation should be logged outside n8n's execution history, because execution data is not a customer record and may be pruned.

Limits to know before building

  • One webhook per Meta app: n8n's documentation says WhatsApp only allows a single webhook to be registered per app, so switching between n8n's test and production addresses overwrites the registration, and only one of them receives events. Testing on a live number can therefore interrupt real traffic.
  • Silent failure when the app is not subscribed: the same page says publishing a workflow registers the webhook but does not subscribe the Meta app to the WhatsApp Business Account. If the app is not subscribed, messages never reach n8n and no failed execution appears.
  • The 24-hour window: Meta's pricing page says free-form replies are only possible inside the customer service window. Follow-ups after that need a template.
  • Meta's rules for AI providers: earlier guides on this site, read against Meta's terms on 6 November and 30 November 2026, describe restrictions on providers whose main product is a general-purpose AI assistant on the WhatsApp Business Platform. A business answering questions about its own services is a different case, but the current terms should be checked on Meta's own pages before a build. The guide to Meta Business Agent versus a custom WhatsApp AI agent covers this.
  • Executions are counted: n8n's hosted plans include a set number of workflow executions, so a busy number can outgrow a small plan.
  • Models make mistakes: an agent can misread a question or state something wrong with confidence. Narrow instructions, tools that return facts from the business's own data and a quick hand-off reduce the risk but do not remove it.

What a WhatsApp AI agent built on n8n costs to run

The running cost has three parts, plus the time staff spend reviewing conversations.

  • n8n: the pricing page, read on 4 December 2026, lists Starter at EUR 20 a month with 2,500 workflow executions and Pro at EUR 50 a month with 10,000, both billed annually and hosted by n8n. Business is EUR 667 a month billed annually with 40,000 executions and is self-hosted only. The page also describes a self-hosted Community Edition available on GitHub, for which the business pays for and maintains its own server. The guide to n8n for small business covers the plans.
  • Model tokens: Anthropic's pricing page, read the same day, lists Claude Haiku 5.5 at USD 0.10 per million input tokens and USD 0.50 per million output tokens for prompts up to 100,000 tokens, and Claude Sonnet 5.5 at USD 2 and USD 10. Other vendors publish their own prices.
  • Meta's message fees (official route only): Meta's pricing page says it charges per delivered message by category and recipient market, does not charge for messages from customers, and gives every business phone number a free tier of 1,000 service messages per month, with charges resuming beyond that from 1 October 2026. The rates are in downloadable rate cards that were not read for this guide, so no per-message rate is quoted.

A worked example with stated assumptions

Suppose, as assumptions and not measurements, that a business receives 3,600 customer messages a month (for example 600 conversations of six messages each), that each message starts one workflow execution, and that each reply sends 4,000 input tokens to the model (instructions, tool descriptions and recent history) and receives 300 output tokens. That is 14.4 million input tokens and 1.08 million output tokens a month.

  • n8n plan: 3,600 executions exceed Starter's 2,500, so the Pro plan at EUR 50 a month fits, or a self-hosted instance.
  • Haiku 5.5: about USD 1.44 for input and USD 0.54 for output, roughly USD 2 a month.
  • Sonnet 5.5: about USD 28.80 for input and USD 10.80 for output, roughly USD 40 a month.
  • Meta: if every reply is a service message, 1,000 are inside the free tier and about 2,600 are charged at the rate for each recipient's market.

These figures are arithmetic on assumed volumes. Real token counts depend on the length of the instructions, the memory window and how often tools are called, so a business should measure a sample of real conversations. The guide to AI agent running costs explains the method.

Build it in n8n or use a ready-made agent

Building in n8n suits a business that wants control over each step, has unusual tools to connect and has someone to maintain the workflow. A ready-made agent suits a business that wants a working product quickly and does not want to manage webhooks, memory and model accounts. Either way, the questions in the guide to hiring an AI automation agency apply: who owns the accounts, where the workflow runs and how costs are billed.

Where CreativeIn Tek fits

CreativeIn Tek builds automation and agent workflows through its AI solutions service, and the route is chosen with the business after its needs for templates and number continuity are clear. Its AI Agent product is a ready-made alternative that answers customers on WhatsApp through a QR-linked connection, not the official WhatsApp Business API, and CreativeIn Tek does not describe that route as approved by Meta or free of the risk of a number being restricted. No build prices are published, so none are quoted here. A business can talk to CreativeIn Tek about which route suits its volume and risk.

Frequently asked questions

Can n8n connect to WhatsApp without the WhatsApp Business API?

n8n's built-in WhatsApp nodes use Meta's WhatsApp Business Cloud API. Connecting an ordinary number by QR code needs a separate, unofficial gateway and carries the risk of the number being restricted.

Does the AI Agent node remember earlier messages?

Only if a memory sub-node is attached. Simple Memory keeps recent interactions in the workflow data, and n8n's documentation says it does not work in active production workflows in queue mode, so a database-backed memory is usually chosen for live use.

Can the agent message customers first?

On the official route, Meta's pricing page says messages outside the 24-hour customer service window must be template messages. An agent's free-form replies are only possible while the window is open.

How many executions does a WhatsApp agent use?

It depends on the design, but a simple WhatsApp AI agent n8n workflow runs once for each incoming message, and an error workflow or a logging sub-workflow can add more. The count should be compared with the plan's limit.

How is a person brought into the conversation?

Through a hand-off rule in the instructions, a tool that alerts staff and a flag that pauses the agent for that customer. n8n also documents a human review step for tool calls using the WhatsApp Business Cloud node.

Last reviewed: 4 December 2026, against n8n's documentation for the WhatsApp Trigger node, the WhatsApp Business Cloud node, the AI Agent node, the Simple Memory node and error handling, the n8n pricing page, Anthropic's pricing page and Meta's WhatsApp Business Platform pricing page. Prices and terms change often. Meta's rate cards and its current terms for AI providers were not re-read for this guide, the token and message volumes in the example are assumptions, and how n8n counts executions for a particular workflow design should be confirmed in the n8n account.

ai

Enjoyed this article?

Subscribe for occasional deep dives on shipping software well.