What This Workflow Does
This intelligent WhatsApp chatbot template automates customer support by combining pre-built responses with AI-powered intent routing. It transforms your WhatsApp Business account into a 24/7 customer service channel that instantly handles common inquiries while intelligently routing complex questions to an AI assistant.
The system automatically classifies incoming messages into categories like product inquiries, contact requests, greetings, or support issues, then delivers the most appropriate response. For e-commerce businesses, it can showcase products with prices and links; for service businesses, it provides scheduling information; and for all businesses, it handles basic FAQs without human intervention.
By balancing instant pre-built answers with AI for nuanced questions, this workflow reduces response times from hours to seconds while cutting support costs by 60-80%. It's fully customizable for any industry—simply update the product categories and company information to match your business.
How It Works
1. Message Reception & Parsing
The workflow triggers when a customer sends a WhatsApp message to your business number. It extracts the message text, user information, and chat ID from the WhatsApp Business API webhook, preparing the data for intelligent processing.
2. Intent Classification
Using pattern matching and keyword analysis, the system categorizes the user's intent into predefined categories: greetings, product inquiries, contact information requests, or general questions. This routing happens instantly without API calls, ensuring fast responses for common queries.
3. Intelligent Response Routing
Based on the classified intent, the message routes to the appropriate response handler. Product inquiries go to pre-built catalog responses, contact requests trigger static company details, while complex questions are forwarded to the AI agent with full conversation context.
4. Hybrid Response Generation
Simple queries receive instant pre-built answers (fast and cost-free). Complex questions engage the AI agent which maintains conversation memory and provides personalized recommendations based on your company's specific products, policies, and information.
5. Formatted Delivery
Responses are formatted with WhatsApp markdown (bold, bullets, links) for better readability and sent back to the customer through the WhatsApp Business API, creating a seamless conversational experience.
Who This Is For
This universal template works for any business using WhatsApp for customer communication. E-commerce stores can showcase products and handle order inquiries. Restaurants can share menus and take reservations. Service businesses can provide pricing and booking information. Local retailers can share store hours and product availability.
Ideal for businesses receiving 20+ daily WhatsApp inquiries, teams wanting to provide 24/7 support without staffing overnight, companies looking to reduce customer support costs, and organizations wanting to improve response times and customer satisfaction metrics. It's particularly valuable for businesses in regions where WhatsApp is the primary customer communication channel.
What You'll Need
- WhatsApp Business API access through providers like Meta Cloud API, Twilio, or 360Dialog
- Google Gemini API key for AI responses (free tier available)
- n8n instance (cloud or self-hosted) with WhatsApp nodes installed
- Your company information including products, prices, contact details, and policies
- Basic understanding of your common customer inquiry types
Pro tip: Start with just 3-5 main intent categories (greetings, products, contact) and expand as you analyze actual customer conversations. This gradual approach ensures a smooth implementation without overwhelming complexity.
Quick Setup Guide
- Configure WhatsApp Business API: Sign up with a provider, get your API credentials, and add them to n8n's WhatsApp node. Set up the webhook URL in your provider's dashboard.
- Customize Company Information: Open the "Build AI System Prompt" node and replace all placeholder text with your actual business details—name, address, products, policies, and hours.
- Update Product Responses: Edit the "Generate Product Response" node with your actual catalog, including product names, specifications, prices, and website links.
- Add AI Credentials: Input your Google Gemini API key in n8n's credential manager. The free tier typically handles hundreds of daily conversations.
- Test Thoroughly: Activate the workflow and send test messages from different numbers. Verify all intent classifications work correctly and responses are accurate.
- Go Live: Once testing is complete, promote your WhatsApp number as a customer support channel and monitor the first few days of conversations for fine-tuning.
Key Benefits
24/7 customer support without additional staffing costs. Customers get instant answers at any time, improving satisfaction and reducing abandonment rates for time-sensitive inquiries.
60-80% reduction in support costs by automating routine inquiries. Your team focuses on complex issues while the bot handles repetitive questions, increasing overall efficiency.
Response times under 2 seconds for common questions compared to hours or days for human responses. This competitive advantage can significantly impact conversion rates and customer loyalty.
Consistent, accurate information delivery every time. Unlike human agents who might provide varying answers, the chatbot delivers standardized responses based on your approved company information.
Scalable solution that handles unlimited concurrent conversations. Whether you receive 10 or 1,000 daily messages, the system scales automatically without additional resources.