WhatsApp Chatbot n8n: Build Your Own Automation in 2026

7 min read1 views

A WhatsApp chatbot built with n8n is an automated conversation system in which incoming WhatsApp messages trigger visual workflows that reply, search your tools, and update records without manual intervention.

n8n WhatsApp chatbot workflow canvas with trigger and send nodes
  • n8n offers a free self-hosted Community Edition, so the software licence itself costs nothing for WhatsApp chatbot projects.
  • WhatsApp charges per-conversation fees for business-initiated chats and requires an approved message template before any proactive message can be sent.
  • Unofficial WhatsApp libraries do not comply with Meta's terms of service and can leave a business number permanently banned.
  • The UK GDPR requires documentation of sub-processors, including Meta and any hosting provider, when businesses store chat data through the WhatsApp Business Platform.

For more, see our open-source WhatsApp chatbot code samples page.

What Is a WhatsApp Chatbot Built with n8n?

An n8n-powered WhatsApp chatbot is a set of automated workflows that receive incoming messages, decide what the customer needs, and send back instant replies using nodes you connect visually.

At its core, n8n is an open-source automation platform that connects apps and services through reusable workflow nodes. You build a chatbot by dragging a WhatsApp trigger node onto the canvas, adding logic such as AI classification or keyword matching, and finishing with a WhatsApp send node. The whole flow runs automatically every time a customer messages you.

Unlike simple autoresponders, this setup can look up order details, create tickets, update spreadsheets, or call a large language model for natural replies. Because everything lives in one visual workflow, non-developers can understand and adjust the bot without reading code.

Why Use n8n Instead of a Chatbot Builder?

Businesses choose n8n over dedicated chatbot builders because it offers full control over data, lower ongoing costs, and the freedom to connect any tool already used by the team.

Dedicated platforms such as Tidio and Landbot charge per chat or per contact, which gets expensive as volume grows. n8n, especially when self-hosted, removes those recurring costs. You also keep data inside your own infrastructure, which matters for GDPR-sensitive UK companies. The trade-off is that you must build and maintain workflows yourself, though no coding is required.

If you want ready-made ideas, the open-source community shares open-source WhatsApp chatbot code samples that you can adapt for your own n8n instance. You can also study free WhatsApp automation options to decide whether a full n8n setup is justified for your first project.

How to Connect WhatsApp to n8n: Your Options

You can connect WhatsApp to n8n through the official WhatsApp Business Cloud API, a Meta-approved business solution provider, or an unofficial library for testing only.

The official route uses Meta's WhatsApp Business Platform. You need a verified business account, a phone number not already used in WhatsApp, and approval from a business solution provider if you want advanced features. n8n has built-in nodes for the Cloud API, so credentials are entered once and reused across workflows.

For testing and small personal projects, developers sometimes use unofficial libraries. These connect without Meta approval but violate WhatsApp's terms of service and can break without warning. A safer middle ground is to test with Meta's free sandbox number before switching to your real business number.

Step by Step: Build Your First n8n WhatsApp Workflow

A complete n8n WhatsApp bot workflow has five stages: message trigger, customer lookup, intent detection, action execution, and reply delivery.

Start by creating a new workflow and adding the WhatsApp Business Cloud trigger node. Connect it to an HTTP request node that fetches the customer record from your CRM, Google Sheets, or database. Then add an AI agent node or a switch node with keywords to detect intent such as pricing, opening hours, or order status.

After the intent is detected, run the relevant action. For example, query a product table for pricing questions, or create a ticket for support questions. Finish with the WhatsApp send node, formatting the reply in plain text or using interactive list messages. Test the full flow with the sandbox number before publishing.

You can combine this with appointment reminders and follow-up messages after the conversation window, which keeps your operations automated end to end.

UK businesses must collect explicit consent, store chat data securely, and offer a clear opt-out before any WhatsApp automation sends marketing messages.

The UK GDPR applies to personal data sent through WhatsApp, including phone numbers, message content, and metadata. You should state in your privacy policy that you use a chatbot, name the processor (Meta, your hosting provider, and any connector service), and delete inactive chat records after a defined period.

PECR adds further rules for marketing messages. Promotional WhatsApp messages require prior consent, while service messages such as order updates are allowed without it. Always include an opt-out word or button in the first message. This aligns with WhatsApp's own limit on unsolicited contact.

Real-World Use Cases for UK Companies

UK companies use n8n WhatsApp chatbots for booking appointments, answering FAQs, sharing delivery updates, and capturing leads from Facebook and Google ads.

Service businesses like dry cleaners, pest control, and electricians use WhatsApp ordering flows to capture job details and availability in one thread. One example in our blog shows a full dry cleaning WhatsApp order system that could be automated further with n8n.

Retailers combine n8n with ecommerce platforms to send order confirmations, shipping updates, and return instructions automatically. Clinics and beauty salons handle bookings, cancellations, and reminders directly in the chat, which reduces no-shows and frees staff time.

Limitations and Costs to Expect

The main limitations of an n8n WhatsApp chatbot are setup complexity, WhatsApp message-templating rules, and per-conversation fees that only apply outside the 24-hour service window.

n8n itself is inexpensive. The self-hosted Community Edition is free, and cloud plans start at around £20 per month in 2026 for low-volume automation. WhatsApp adds per-conversation charges for chats initiated by the business, plus per-message fees for templates. Costs stay near zero for contact-initiated replies within the 24-hour window.

Your real cost is maintenance. Meta changes API endpoints and template approval rules regularly, so workflows need occasional updates. Factor in at least a few hours per month for testing, monitoring, and keeping the integration healthy.

You can explore WpAsis WhatsApp automation tools.

Frequently Asked Questions

Do I need the WhatsApp Business API to run an n8n chatbot?

Yes, for any production chatbot you need access to the WhatsApp Business Cloud API. Unofficial libraries work in tests but risk a permanent ban because they do not comply with Meta's terms.

Is n8n free for WhatsApp chatbots?

The self-hosted Community Edition of n8n is free, so your main costs are server hosting, WhatsApp per-conversation fees, and any paid connector you use. Cloud plans are optional but simplify updates and backups.

How long does it take to build a basic chatbot?

With the official n8n WhatsApp nodes and clear message flows, a basic FAQ bot can be live in two to three days. AI-powered conversations with custom knowledge bases take one to two weeks.

Can an n8n chatbot fully replace human agents?

No. It can handle repetitive requests and pre-qualify leads, but complex complaints and sensitive data requests should route to a human agent through an escalation workflow.

Is an n8n WhatsApp chatbot GDPR compliant?

It can be, provided you self-host or choose a UK/EU region, document WhatsApp as a sub-processor, limit retained data, and allow users to opt out of marketing messages.

This site uses cookies and similar technologies to improve service quality and ensure your security. See our Cookie Policy and Privacy Notice for details.