WhatsApp isn't just a messaging app anymore. It's the highest-engagement channel most businesses are completely under-using. Open rates above 90%, responses within minutes, no spam filters, no ad budget required. And yet most businesses are handling WhatsApp messages manually, one at a time.
That changes when you connect the WhatsApp Business API to n8n. You get a proper automation layer: inbound message parsing, AI classification, CRM sync, conditional routing, and outbound templates — all wired together without a developer on retainer.
This guide covers the setup and five production workflows we've built for clients ranging from e-commerce brands to professional services firms.
Prerequisites: WhatsApp Business API Access
The WhatsApp Business API (now called the Cloud API, hosted by Meta) requires an approved Meta Business account. This is different from the regular WhatsApp Business app. Here's what you need before touching n8n:
- Meta Business Manager account — verified with a business phone number
- WhatsApp Business Account (WABA) — created inside Business Manager
- Phone number — must not be registered on regular WhatsApp; a fresh SIM or VoIP number works
- System User access token — permanent token for API calls (not the user token that expires)
- Approved message templates — for outbound messages to users who haven't messaged you first
Meta's review process takes 1–3 business days for most accounts. Plan for this lead time. Once approved, you get a phone number ID and WABA ID that you'll use in every n8n node.
Setting Up the Webhook in n8n
WhatsApp delivers inbound messages via webhook. Every time a user messages your number, Meta POSTs a JSON payload to your webhook URL. n8n handles this natively:
The most common mistake: not responding immediately. Meta retries the webhook if you don't return 200 within 5 seconds. Always add a Respond to Webhook node right after the trigger, before any slow operations like LLM calls or CRM lookups.
Understanding the Inbound Payload
Before building workflows, understand what Meta actually sends. The payload structure is deeply nested and slightly inconsistent across message types:
Add a Code node right after the webhook to extract the essentials: sender number, message text, message type, contact name. This normalised object is what flows through the rest of your workflow.
Workflow 1: Order Status Bot
This is the highest-ROI WhatsApp workflow for e-commerce. Customers message "Where is my order?" and get an instant, accurate reply — without a human touching it.
The Shopify lookup uses the customer's WhatsApp number (usually matching their phone number) to pull recent orders. Format the response clearly — delivery date, status, tracking link if available. Customers want three things: what they ordered, where it is, when it arrives.
- Order status queries handled automatically: 73% (up from 0%)
- First-response time: 45 minutes → under 10 seconds
- Support agent time freed: ~2.5 hours/day
- Customer satisfaction score on WhatsApp channel: 4.6/5
Workflow 2: AI-Powered Support Triage
Not every message has a template answer. For open-ended support, an OpenAI-backed triage layer classifies intent and either answers from a knowledge base or escalates to a human agent.
The RAG lookup for product questions connects to your vector store — the same pattern as our n8n RAG pipeline guide. Embed your product docs and FAQs; the bot answers from real data, not hallucinated generalities.
For complaints and escalations, don't try to automate the human touch. The right move is to capture the issue in your CRM (HubSpot, Pipedrive), notify the right person in Slack, and send the customer a holding message promising a real human response within a specific timeframe.
Workflow 3: Outbound Order Confirmations & Shipping Updates
This workflow is triggered by your e-commerce platform, not by inbound messages. Every time an order is placed, shipped, or delivered, n8n sends a WhatsApp template message to the customer.
Template messages require pre-approval from Meta — submit them through the WhatsApp Manager with the expected variable placeholders. Approval typically takes 30 minutes to 24 hours. You need a separate approved template for each message type: order confirmation, shipping update, delivery confirmation, return processed.
Workflow 4: Lead Qualification Bot
For B2B or high-ticket B2C, WhatsApp is increasingly the channel where interested prospects make first contact. A qualification bot captures intent, budget, and timeline before routing to sales.
The conversation state management is the tricky part. You need to track where each user is in the conversation flow — question 1, question 2, or awaiting booking. Store state in a Google Sheet or Airtable keyed by the sender's phone number. Check state on every inbound message before deciding what to send next.
Workflow 5: Appointment Reminders
For service businesses — clinics, consultants, agencies — appointment no-shows are expensive. WhatsApp reminders outperform email and SMS by a significant margin.
The key metric: no-show rate drops from 15–25% (industry average for email-only reminder) to under 5% with WhatsApp reminders sent 24h and 2h before the appointment. Two reminders, with confirmation capture, is the sweet spot.
Sending Messages via the WhatsApp Cloud API
Every outbound message in n8n uses an HTTP Request node pointing to Meta's Cloud API. The base configuration:
Store your System User Token and Phone Number ID as n8n credentials or environment variables — never hardcode them. The System User Token (not the temporary user token) doesn't expire, which is what you want for a production automation.
Gotchas and Rate Limits
- 24-hour window rule: You can send free-form text messages only within 24 hours of the customer's last message. After that, you must use an approved template. This is Meta's anti-spam protection — design your flows around it.
- Phone number format: Always use E.164 format (country code + number, no spaces, no +). Strip formatting from user inputs before making API calls.
- Rate limits: WhatsApp Cloud API allows up to 80 messages per second for standard accounts. For bulk sends (newsletters, campaigns), use the official Broadcasts feature, not individual message API calls.
- Opt-in requirement: Users must explicitly opt in before you can send them template messages. Capture opt-in during checkout, form completion, or appointment booking.
- Webhook deduplication: Meta occasionally delivers the same webhook twice. Store processed message IDs in a data store and skip duplicates.
Testing Without Real Users
Meta's Test Phone Number (available in the WhatsApp Manager) lets you send messages to up to 5 whitelisted numbers for free during development. Use this to test all your templates and inbound flows before going live. Test every message type: text, image, document, interactive (buttons and lists).
- Apply for WhatsApp Cloud API access (do this first — takes 1–3 days)
- Build the inbound webhook + message extractor (Workflow foundation)
- Deploy the order status bot for your top support query
- Submit your first 3 outbound templates for approval
- Add AI triage once the rule-based flows are stable
- Track: first-response time, automation rate, escalation rate
WhatsApp automation isn't complex — but it does require careful setup to stay inside Meta's policy guardrails. The businesses that get it right turn the highest-engagement channel in their stack into a fully automated customer touchpoint that runs without anyone watching it.
If you'd rather skip the setup and get straight to working automations, get in touch — WhatsApp automation builds are one of our most common client requests.