WhatsApp Bot Live in 30 Min

WhatsApp-Bot in 30 Minuten live

🇬🇧 English

This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

Build a WhatsApp Chatbot in 30 Minutes with n8n

WhatsApp has over 2 billion active users. If your business isn't engaging them automatically, you're leaving response time, leads, and revenue on the table. The good news? You can build a fully functional WhatsApp chatbot using n8n — without writing a single line of code — in under 30 minutes.

This guide walks you through the exact steps to connect WhatsApp to n8n, add AI responses, and deploy a chatbot that works around the clock. Whether you want to qualify leads, answer FAQs, or send automated follow-ups, n8n makes it surprisingly simple.

Why Use n8n for WhatsApp Automation?

n8n is an open-source workflow automation tool that connects hundreds of apps and APIs through a visual node-based editor. Unlike many SaaS tools, n8n can be self-hosted, giving you full control over your data. It's perfect for building messaging bots because:

  • No coding required — drag-and-drop workflow builder
  • AI-ready — native integrations with OpenAI, Anthropic, and more
  • Highly flexible — connect WhatsApp to CRMs, spreadsheets, email, and databases
  • Cost-effective — self-host for free or use n8n Cloud

Alternatively, if you prefer a dedicated messaging platform, manychat is another excellent option — especially for marketers who want visual flow builders built specifically for WhatsApp and Instagram. But for developers and power users who want full flexibility, n8n is the winner.

What You'll Need Before Starting

  • A Meta Business Account with WhatsApp Business API access (via Meta Developers)
  • A phone number approved for WhatsApp Business API
  • An n8n account (Cloud or self-hosted)
  • An OpenAI API key (optional, for AI-powered replies)

Setting up the WhatsApp Business API via Meta is the most time-consuming part — expect 10–15 minutes for that alone. Once done, connecting it to n8n takes just a few clicks.

Step 1: Set Up Your WhatsApp Webhook in n8n

In your n8n workspace, create a new workflow and add a Webhook node as the trigger. This webhook URL is what Meta will call every time someone messages your WhatsApp number.

  • Set the HTTP method to POST
  • Copy the generated webhook URL
  • Go to your Meta Developer Dashboard → WhatsApp → Configuration
  • Paste the n8n webhook URL into the Callback URL field
  • Set a Verify Token (any string you choose) and match it in n8n

Once Meta verifies the webhook, your n8n workflow will receive every incoming WhatsApp message in real time.

Step 2: Parse the Incoming Message

WhatsApp messages arrive as JSON payloads. Add a Function node (or Code node) in n8n to extract the key data:

  • Sender's phone number
  • Message text
  • Message ID (for threading)
  • Timestamp

This step ensures your n8n workflow knows who sent the message and what they wrote — essential before you generate a reply.

Step 3: Add AI-Powered Responses with OpenAI

This is where the magic happens. Add an OpenAI node in n8n and connect your API key. Use the Chat Completion endpoint and write a system prompt that defines your bot's personality and purpose. For example:

"You are a friendly customer support assistant for [Your Business]. Answer questions about our products, opening hours, and pricing. If you don't know, ask the user to contact support@yourbusiness.com."

Pass the incoming WhatsApp message as the user input. n8n sends it to OpenAI and returns a generated response — all in under 2 seconds.

Step 4: Send the Reply Back via WhatsApp

Add an HTTP Request node in n8n to call the WhatsApp Business API and send the AI-generated reply back to the user. Configure it as follows:

  • Method: POST
  • URL: https://graph.facebook.com/v18.0/{phone-number-id}/messages
  • Headers: Authorization: Bearer {your_access_token}
  • Body: JSON with recipient number, message type, and the AI reply text

The n8n workflow now forms a complete loop: receive message → parse → generate AI reply → send back. Test it by messaging your WhatsApp number.

Step 5: Add Logic, Routing, and CRM Integration

A basic chatbot is just the beginning. With n8n you can add powerful logic flows:

  • Keyword routing — if message contains "price", trigger a pricing node
  • Lead capture — save sender data to Google Sheets, Airtable, or HubSpot
  • Escalation — if the AI is unsure, notify a human agent via Slack or email
  • Follow-up sequences — use n8n's scheduling nodes to send follow-ups automatically

If you're looking for pre-built conversation flows and marketing-focused features, manychat offers a great visual interface for WhatsApp campaigns. However, for custom logic and deep integrations, n8n gives you unmatched flexibility.

Pro Tips for a Better WhatsApp Chatbot

  • Keep responses short — WhatsApp users expect concise, conversational replies
  • Use emojis sparingly — they humanise the bot without feeling spammy
  • Always offer an exit — let users type "human" to reach a real person
  • Log conversations — use n8n to store chats in a database for review
  • Test edge cases — send unexpected inputs and refine your AI system prompt

Go Live and Monitor

Once your n8n workflow is tested and activated, set it to production mode. Monitor execution logs inside n8n to catch errors early. Set up error notifications via email or Slack so you're always informed if something breaks.

Your WhatsApp chatbot is now live — handling enquiries, capturing leads, and delivering instant replies 24/7. What took enterprise teams months to build, you just shipped in 30 minutes with n8n.

Final Thoughts

Building a WhatsApp chatbot no longer requires a development team or a hefty budget. With n8n, you get a powerful, flexible automation engine that connects WhatsApp to AI and your entire tool stack. Start simple, iterate fast, and let your bot do the heavy lifting.

Ready to go further? Explore the n8n template library for pre-built WhatsApp automation workflows and launch even faster.

This post was created with tools we use and recommend: n8n for workflow automation, Turbotic as an AI-native automation alternative, ElevenLabs for AI voiceover, Placid for visual content creation, and Hostinger for reliable VPS hosting. Some links are affiliate links.

🇩🇪 Deutsch

Dieser Artikel enthält Affiliate-Links (Werbung). Kaufst du darüber, erhalten wir ggf. eine Provision – für dich ohne Mehrkosten.

Einen WhatsApp-Chatbot in 30 Minuten mit n8n bauen

WhatsApp hat über 2 Milliarden aktive Nutzer. Wer sein Unternehmen dort nicht automatisch präsentiert, verschenkt Reaktionszeit, Leads und Umsatz. Die gute Nachricht: Mit n8n kannst du einen vollständig funktionsfähigen WhatsApp-Chatbot aufbauen – ohne eine einzige Zeile Code zu schreiben – und das in unter 30 Minuten.

Diese Anleitung führt dich Schritt für Schritt durch die Verbindung von WhatsApp mit n8n, die Integration von KI-Antworten und den Einsatz eines Chatbots, der rund um die Uhr arbeitet. Egal ob du Leads qualifizieren, häufige Fragen beantworten oder automatische Follow-ups versenden möchtest – n8n macht es überraschend einfach.

Warum n8n für WhatsApp-Automatisierung?

n8n ist ein Open-Source-Workflow-Automatisierungstool, das Hunderte von Apps und APIs über einen visuellen, node-basierten Editor verbindet. Im Gegensatz zu vielen SaaS-Tools kann n8n selbst gehostet werden, wodurch du die volle Kontrolle über deine Daten behältst. Es ist ideal für den Aufbau von Messaging-Bots, weil:

  • Kein Code erforderlich — Drag-and-Drop-Workflow-Builder
  • KI-bereit — native Integrationen mit OpenAI, Anthropic und mehr
  • Hochflexibel — WhatsApp mit CRMs, Tabellen, E-Mail und Datenbanken verbinden
  • Kostengünstig — selbst hosten für 0 € oder n8n Cloud nutzen

Wer eine dedizierte Messaging-Plattform bevorzugt, findet in manychat eine ausgezeichnete Alternative – besonders für Marketer, die visuelle Flow-Builder speziell für WhatsApp und Instagram suchen. Für Entwickler und Power-User, die maximale Flexibilität wollen, ist n8n jedoch die erste Wahl.

Was du vor dem Start brauchst

  • Ein Meta Business-Konto mit Zugang zur WhatsApp Business API (über Meta Developers)
  • Eine Telefonnummer, die für die WhatsApp Business API freigegeben ist
  • Ein n8n-Konto (Cloud oder selbst gehostet)
  • Einen OpenAI API-Schlüssel (optional, für KI-gestützte Antworten)

Die Einrichtung der WhatsApp Business API über Meta ist der zeitaufwändigste Teil – rechne allein dafür mit 10–15 Minuten. Danach dauert die Verbindung mit n8n nur wenige Klicks.

Schritt 1: WhatsApp-Webhook in n8n einrichten

Erstelle in deinem n8n-Workspace einen neuen Workflow und füge einen Webhook-Node als Trigger hinzu. Diese Webhook-URL ruft Meta jedes Mal auf, wenn jemand deine WhatsApp-Nummer anschreibt.

  • HTTP-Methode auf POST setzen
  • Die generierte Webhook-URL kopieren
  • Im Meta Developer-Dashboard → WhatsApp → Konfiguration die n8n-Webhook-URL in das Feld Callback-URL einfügen
  • Einen Verify Token festlegen und in n8n hinterlegen

Sobald Meta den Webhook verifiziert hat, empfängt dein n8n-Workflow jede eingehende WhatsApp-Nachricht in Echtzeit.

Schritt 2: Die eingehende Nachricht analysieren

WhatsApp-Nachrichten kommen als JSON-Payloads an. Füge in n8n einen Function-Node (oder Code-Node) hinzu, um die wichtigsten Daten zu extrahieren:

  • Telefonnummer des Absenders
  • Nachrichtentext
  • Nachrichten-ID (für Threading)
  • Zeitstempel

Dieser Schritt stellt sicher, dass dein n8n-Workflow weiß, wer die Nachricht gesendet hat und was geschrieben wurde – unerlässlich, bevor eine Antwort generiert werden kann.

Schritt 3: KI-gestützte Antworten mit OpenAI hinzufügen

Hier passiert die eigentliche Magie. Füge in n8n einen OpenAI-Node hinzu und verbinde deinen API-Schlüssel. Nutze den Chat Completion-Endpunkt und formuliere einen System-Prompt, der die Persönlichkeit und den Zweck des Bots definiert. Zum Beispiel:

„Du bist ein freundlicher Kundenservice-Assistent für [Dein Unternehmen]. Beantworte Fragen zu unseren Produkten, Öffnungszeiten und Preisen. Wenn du etwas nicht weißt, bitte den Nutzer, support@deinunternehmen.de zu kontaktieren."

Die eingehende WhatsApp-Nachricht wird als Nutzereingabe übergeben. n8n sendet sie an OpenAI und erhält eine generierte Antwort – in unter 2 Sekunden.

Schritt 4: Antwort über WhatsApp zurücksenden

Füge in n8n einen HTTP-Request-Node hinzu, um die WhatsApp Business API aufzurufen und die KI-generierte Antwort an den Nutzer zu senden. Konfiguriere ihn wie folgt:

  • Methode: POST
  • URL: https://graph.facebook.com/v18.0/{phone-number-id}/messages
  • Header: Authorization: Bearer {dein_access_token}
  • Body: JSON mit Empfängernummer, Nachrichtentyp und KI-Antworttext

Der n8n-Workflow bildet jetzt einen vollständigen Kreislauf: Nachricht empfangen → analysieren → KI-Antwort generieren → zurücksenden. Teste es, indem du deine WhatsApp-Nummer anschreibst.

Schritt 5: Logik, Routing und CRM-Integration hinzufügen

Ein einfacher Chatbot ist erst der Anfang. Mit n8n kannst du leistungsstarke Logikflüsse ergänzen:

  • Keyword-Routing — wenn die Nachricht „Preis" enthält, einen Preis-Node auslösen
  • Lead-Erfassung — Absenderdaten in Google Sheets, Airtable oder HubSpot speichern
  • Eskalation — wenn die KI unsicher ist, einen Menschen per Slack oder E-Mail benachrichtigen
  • Follow-up-Sequenzen — mit den Planungs-Nodes von n8n automatische Nachfassaktionen versenden

Wer vorgefertigte Konversationsflüsse und marketingorientierte Funktionen sucht, findet in manychat eine tolle visuelle Oberfläche für WhatsApp-Kampagnen. Für individuelle Logik und tiefe Integrationen bietet n8n jedoch unübertroffene Flexibilität.

Profi-Tipps für einen besseren WhatsApp-Chatbot

  • Antworten kurz halten — WhatsApp-Nutzer erwarten prägnante, gesprächige Nachrichten
  • Emojis sparsam einsetzen — sie machen den Bot menschlicher, ohne spammig zu wirken
  • Immer einen Ausweg bieten — Nutzer können „Mensch" tippen, um mit einer echten Person zu sprechen
  • Gespräche protokollieren — n8n nutzen, um Chats in einer Datenbank zu speichern
  • Randfälle testen — unerwartete Eingaben senden und den KI-System-Prompt verfeinern

Live schalten und überwachen

Sobald dein n8n-Workflow getestet und aktiviert ist, stelle ihn auf Produktionsmodus. Überwache die Ausführungsprotokolle in n8n, um Fehler frühzeitig zu erkennen. Richte Fehlerbenachrichtigungen per E-Mail oder Slack ein, damit du immer informiert bist, wenn etwas schiefläuft.

Dein WhatsApp-Chatbot ist jetzt live – beantwortet Anfragen, erfasst Leads und liefert sofortige Antworten rund um die Uhr. Was Enterprise-Teams früher Monate gekostet hat, hast du in 30 Minuten mit n8n umgesetzt.

Fazit

Einen WhatsApp-Chatbot zu bauen erfordert heute kein Entwicklerteam und kein großes Budget mehr. Mit n8n erhältst du eine leistungsstarke, flexible Automatisierungs-Engine, die WhatsApp mit KI und deinem gesamten Tool-Stack verbindet. Starte einfach, iteriere schnell und lass deinen Bot die schwere Arbeit erledigen.

Bereit für den nächsten Schritt? Entdecke die Template-Bibliothek von n8n mit vorgefertigten WhatsApp-Automatisierungsworkflows und starte noch schneller durch.

Dieser Beitrag wurde mit Tools erstellt, die wir selbst nutzen und empfehlen: n8n für Workflow-Automatisierung, Turbotic als KI-native Automatisierungsalternative, ElevenLabs für KI-Voiceover, Placid für visuelle Content-Erstellung und netcup für zuverlässiges VPS-Hosting in Deutschland. Einige Links sind Affiliate-Links.