How to Automate WhatsApp Messages Using n8n (Step-by-Step Tutorial)
WhatsApp is one of the most powerful communication tools today. With n8n and the WhatsApp API (via Twilio), you can automate messages, alerts, and even build chatbot systems.
In this tutorial, you’ll learn how to send WhatsApp messages automatically using n8n.
๐ What You Will Learn
- Connect WhatsApp (Twilio) to n8n
- Send automated WhatsApp messages
- Use webhook triggers
- Build notification and chatbot systems
๐ฒ Step 1: Setup Twilio WhatsApp Sandbox
1. Create a Twilio account
2. Go to Messaging → Try it out → WhatsApp Sandbox
3. Join sandbox using provided code
You will get:
- Account SID
- Auth Token
- Sandbox WhatsApp number
⚙️ Step 2: Create Workflow in n8n
Create workflow:
- Webhook Node (Trigger)
- Twilio Node (Send Message)
๐ Step 3: Add Webhook Trigger
- Method: POST
- Input: name + phone + message
Example input:
{
"name": "Juan",
"phone": "+639XXXXXXXXX",
"message": "Hello!"
}
๐ฉ Step 4: Configure Twilio Node (WhatsApp)
- Operation: Send Message
Important format:
From: whatsapp:+14155238886 (Twilio sandbox number)
To: whatsapp:{{$json["phone"]}}
Message:
Hello {{$json["name"]}} ๐
{{$json["message"]}}
Thank you!
๐งช Step 5: Test the Workflow
Send test request:
POST /webhook-url
{
"name": "Maria",
"phone": "+639XXXXXXXXX",
"message": "Your order is confirmed!"
}
You will receive the message instantly on WhatsApp.
๐ฅ Real-World Use Cases
- ๐ฉ Lead notifications
- ๐ Order confirmations
- ๐ Appointment reminders
- ๐ค WhatsApp chatbot
⚡ Pro Tips
- Always use +63 format for PH numbers
- Move from Sandbox → Production for real use
- Add AI replies (OpenAI / Claude)
- Store conversations in Supabase
- Combine with Gmail + Slack for multi-channel
๐ SEO Keywords
n8n whatsapp tutorial, whatsapp automation, twilio whatsapp api, webhook whatsapp automation, no code chatbot whatsapp
๐ก Tools Used in This Tutorial
Disclosure: This post may contain affiliate links.
๐ฏ Conclusion
n8n and WhatsApp automation allow you to build powerful communication systems for your business.
This can be used for alerts, customer service, and full AI chatbot systems.
๐ Start building your WhatsApp automation today!

No comments:
Post a Comment