n8n WhatsApp Automation: Build WhatsApp Bots and Business Flows
WhatsApp is the world's most used messaging platform, with over 2 billion active users. Automating WhatsApp with n8n lets you build customer support bots, sales outreach sequences, appointment reminders, and AI-powered messaging — at scale and without the limitations of manual messaging. This guide covers every method for integrating WhatsApp with n8n.
WhatsApp Integration Options
There are two ways to connect WhatsApp to n8n:
Twilio for WhatsApp: Twilio provides an official WhatsApp Business API integration. Messages send through Twilio's infrastructure. Easy to set up; per-message pricing. Best for most businesses.
WhatsApp Business API (direct): Requires Meta Business verification and a Business Solution Provider (BSP). More control, lower per-message costs at scale, required for large-scale deployments.
Meta Cloud API: Meta's own API for WhatsApp Business. Direct integration; requires Meta Business Manager account.
For most businesses starting out, Twilio is the fastest path to a working WhatsApp automation in n8n.
Setting Up Twilio WhatsApp in n8n
Prerequisites:
- Twilio account with WhatsApp enabled
- WhatsApp Business number (Twilio sandbox for testing, production number for launch)
- n8n with Twilio credential configured
Twilio credential in n8n: Settings → Credentials → New → Twilio
- Account SID: from Twilio console
- Auth Token: from Twilio console
Receiving WhatsApp messages (webhook):
- n8n: Webhook trigger node → copy webhook URL
- Twilio Console → Messaging → WhatsApp → Sandbox Settings
- Set "When a message comes in" to your n8n webhook URL
Now n8n fires when a WhatsApp message is received.
Sending WhatsApp messages: Add Twilio node → Operation: Send Message:
- To:
whatsapp:+1234567890 - From:
whatsapp:+your-twilio-number - Message: your message text
Building a WhatsApp Support Bot
Combine n8n + WhatsApp + Claude for an AI-powered support bot:
Workflow:
- Webhook trigger: inbound WhatsApp message
- Code node: extract sender phone, message text
- Function node: look up conversation history from storage
- HTTP Request: Claude API with conversation history + system prompt
- Code node: extract Claude's response
- Twilio: send response to WhatsApp
- Database: save updated conversation history
System prompt for support bot:
Conversation History
WhatsApp is a conversational medium. Claude needs conversation history to give coherent responses:
Store history in n8n's static data:
After Claude responds, save the assistant message:
WhatsApp Appointment Reminders
Automated appointment reminders are a simple, high-value WhatsApp automation:
Workflow:
- Schedule trigger: every hour
- Database: get appointments starting in next 24h
- Loop: for each appointment
- Claude (optional): personalise reminder message
- Twilio: send WhatsApp reminder
- Database: mark reminder sent
Message template:
Add a response handler workflow to process YES/NO replies and update your booking system.
Sales Outreach via WhatsApp
WhatsApp has 5-10x higher open rates than email. For B2C businesses:
Lead capture → WhatsApp follow-up:
- Form submit webhook
- Claude: generate personalised first message based on lead's industry/role
- Wait: 5 minutes (not too immediate)
- Twilio: send first WhatsApp message
- Track: if no reply in 24h → send follow-up
Note: Only message people who have opted in to WhatsApp communications. Check WhatsApp Business policy requirements.
Recommended Tools
- n8n — Automation platform for WhatsApp workflows
- Twilio — WhatsApp Business API provider
- Claude API — AI for intelligent WhatsApp responses
- Airtable — Store conversation history and contact data
- Make.com — Alternative automation platform with Twilio integration
Related articles
n8n vs Make.com vs Zapier: a 2026 honest comparison
No affiliate fluff — where each tool wins, where it breaks, and what we actually run.
Self-hosting n8n: a production-grade setup guide
Queue mode, workers, backups, and the security defaults you should never skip.
Complete n8n Guide: Everything You Need to Build Powerful Automations
The definitive n8n guide — nodes, credentials, triggers, and production-grade patterns.