Build a WhatsApp AI Assistant With n8n
Founder, ZeeGrowth
Why WhatsApp for business AI?
WhatsApp has over 2 billion users. For businesses in the Middle East, South Asia and Latin America, it is often the primary customer communication channel. Customers do not want to visit your website or download your app — they want to message you on WhatsApp.
An AI assistant on WhatsApp answers common questions instantly, 24 hours a day, in the customer's language. Complex questions get escalated to your team.
What we are building
A workflow that receives WhatsApp messages via the Business API, processes the question through an AI agent with access to your business FAQ, responds with a helpful answer, escalates to a human when it cannot help, and logs every conversation for quality review.
Prerequisites
An n8n instance (self-hosted recommended), WhatsApp Business API access through Meta Business Suite, an OpenAI API key, and your business FAQ and product info in a document.
Step 1: Set up WhatsApp Business API
Go to Meta Business Suite, WhatsApp, Get Started. Register a phone number (must not be on regular WhatsApp), create a Meta App with WhatsApp capabilities, note your Phone Number ID, and generate a Permanent Access Token.
Step 2: Create message templates
WhatsApp requires approved templates for proactive messages. Create a greeting template in Meta Business Suite. For replies within the 24-hour window, you can send free-form text without templates.
Step 3: Import the workflow
Download the Telegram/WhatsApp AI Assistant template and import it into n8n. It handles both Telegram and WhatsApp — disable the Telegram trigger if you only need WhatsApp.
Step 4: Upload your knowledge base
Prepare a document covering products and services, business hours, FAQs, policies, and booking processes. Upload this to n8n's vector store using the included setup sub-workflow. The AI agent searches this knowledge base before answering any question.
Step 5: Configure the AI agent
Customize the system prompt with your business name, what the assistant should do, rules (respond in the customer's language, escalate when unsure, never make up details), and business context (hours, location, booking link).
Step 6: Set up escalation
Configure escalation for low-confidence answers, explicit human requests, and sensitive topics like billing or complaints. Escalated conversations go to Slack or email.
Step 7: Test thoroughly
Test with real questions: ask something from your FAQ, something not in your knowledge base, in a different language, send an image, and ask a multi-part question.
Privacy and data handling
Store conversation logs securely with a retention policy. Include a note that messages are processed by an AI assistant. Comply with local data protection regulations.
Costs
n8n self-hosted costs $5-10/month, OpenAI API $5-15 depending on volume, and WhatsApp conversations start free for the first 1,000 per month. Total: roughly $10-35/month compared to hiring a support rep or subscribing to a commercial chatbot platform.
Real results
Businesses using WhatsApp AI assistants typically see 50-70% of inquiries handled without human intervention, response time dropping from hours to seconds, and staff freed up for complex conversations.
Download the Telegram/WhatsApp AI Assistant template and follow the setup guide. Your AI assistant can be live in under an hour.
Related templates
Telegram/WhatsApp AI Assistant
An AI assistant for your business that responds on Telegram or WhatsApp.
WhatsApp Lead Auto-Reply
Instantly replies to new WhatsApp messages with a personalized greeting and next steps.
AI Customer Support Agent
An AI agent that answers customer questions from your knowledge base via website chat.
Want us to set it up for you?
We install the workflow on your n8n instance, connect credentials, and leave you with a running automation.
Get setup help