AutomationMart
Home/Browse/Handle WhatsApp customer inquiries with AI and intent routing
n8n

Handle WhatsApp customer inquiries with AI and intent routing

n8nn8n14 modulesv1.0
HubSpotSlackAirtableGoogle SheetsSalesforceWhatsAppOpenAITwilioZendeskIntercomFacebookGemini

Handle WhatsApp customer inquiries with AI and intent routing (Whatsapp Chatbot) An intelligent, fully customizable WhatsApp customer support chatbot template that works for ANY business - whether you sell fashion, electronics, food, furniture, cosmetics, or anything else. This workflow combines pre-built responses for common queries with AI for complex questions, creating a cost-effective 24/7 customer support solution that adapts to your specific products and services. Who it's for

At a glance

Handle WhatsApp customer inquiries with AI and intent routing is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects HubSpot, Slack, Airtable, Google Sheets. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
HubSpot, Slack, Airtable, Google Sheets, Salesforce, WhatsApp
Modules
14
Price
Free
Version
v1.0
Handle WhatsApp customer inquiries with AI and intent routing workflow diagram

About this workflow

Handle WhatsApp customer inquiries with AI and intent routing (Whatsapp Chatbot) An intelligent, fully customizable WhatsApp customer support chatbot template that works for ANY business - whether you sell fashion, electronics, food, furniture, cosmetics, or anything else. This workflow combines pre-built responses for common queries with AI for complex questions, creating a cost-effective 24/7 customer support solution that adapts to your specific products and services. Who it's for This universal template works for ANY business type: - E-commerce stores (fashion, electronics, home goods, beauty, etc.) - Local retail shops (boutiques, grocery stores, bookshops, etc.) - Service businesses (salons, repair services, consultancies, etc.) - Restaurants & cafes (food delivery, reservations, menu inquiries) - Any business using WhatsApp Business API for customer communication What it does This is a UNIVERSAL template - it works for ANY business by simply updating the product categories, company information, and response templates. No coding knowledge required for basic customization! The workflow automates WhatsApp customer support through intelligent routing and AI assistance: 1. Receives WhatsApp messages via WhatsApp Business API webhook trigger 2. Parses message data extracting user info, chat ID, and message text 3. Classifies intent using pattern matching to determine what the customer wants (product inquiry, contact info, support, greeting, etc.) 4. Routes intelligently to the most appropriate response handler: - Product inquiries → Pre-built catalog responses with pricing and links - Contact information → Static company details (address, phone, hours) - Complex queries → AI agent with full company context 5. Maintains conversation context using memory to remember previous messages 6. Sends formatted responses back to the customer via WhatsApp with markdown formatting The hybrid approach (pre-built responses + AI) balances speed, cost, and intelligence - common questions get instant answers while complex queries receive personalized AI assistance. How to set up Requirements You'll need: - WhatsApp Business API access (via Twilio, 360Dialog, Meta Cloud API, or other providers) - Google Gemini API key (for AI responses) - Get API key - Google Docs (optional - for product catalog reference) - n8n instance with WhatsApp nodes installed Setup Steps 1. Configure WhatsApp Business API - Sign up with a WhatsApp Business API provider (Twilio, 360Dialog, or Meta) - Get your API credentials (phone number ID, access token, webhook verify token) - Add credentials to n8n's WhatsApp node - Copy the webhook URL from n8n and configure it in your provider's dashboard 2. Customize Company Information - Open the "Build AI System Prompt" node - Replace all placeholder text with your actual company details: - Company name - Address and phone numbers - Email and website - Product categories and brands - Policies (COD, warranty, returns, delivery) - Store hours 3. Configure Product Responses - Edit the "Generate Product Response" node - Replace the sample products with your actual catalog: - Product names and specifications - Prices (update currency if not using INR) - Product URLs from your website - Add/remove product categories as needed 4. Update Contact Details - Edit the "Generate Contact Info Response" node - Add your complete contact information - Update store hours and addresses 5. Set Up AI Credentials - Add your Google Gemini API key to the credential manager - (Optional) Connect Google Docs if you want to use a product catalog document 6. Activate and Test - Activate the workflow in n8n - Send test messages to your WhatsApp Business number - Test different intents: greetings, product questions, contact requests - Verify responses are accurate and timely WhatsApp Business API Providers Option 1: Meta Cloud API (Official, free for moderate usage) - Sign up at: - Requires Facebook Business account - Best for: Small to medium businesses Option 2: Twilio (Reliable, paid service) - Sign up at: - Pay-per-message pricing - Best for: Businesses needing high reliability Option 3: 360Dialog (WhatsApp-focused) - Sign up at: - Competitive pricing - Best for: WhatsApp-heavy businesses Option 4: MessageBird, Vonage, others - Various pricing and features - Research and compare based on your needs How it works Intent Classification System The workflow uses keyword pattern matching to classify user intent into these categories: Priority 1: Contact Information (highest priority) - Triggers: "where is store", "address", "contact", "phone number" - Response: Static contact details - Why first: Users asking for contact info need immediate, accurate answers Priority 2: Greetings - Triggers: "hi", "hello", "hey", "good morning" - Response: Friendly welcome with menu options - Helps: Sets a positive tone for the conversation Priority 3: Product Inquiries - Triggers: Category keywords (monitor, processor, GPU, RAM, etc.) - Response: Pre-built catalog with products, prices, and links - Categories: Customizable based on your products Priority 4: AI Fallback - Triggers: Everything else (comparisons, complex questions, multi-step queries) - Response: Google Gemini AI with company knowledge - Features: Conversation memory, personalized recommendations Response Architecture Pre-Built Responses (Fast & Cost-Effective) - Instant answers (no API calls) - Handles 70-80% of queries - Consistent, accurate information - No ongoing costs - Used for: Product lists, contact info, FAQs AI Agent (Intelligent & Flexible) - Handles complex questions - Maintains conversation context - Provides personalized recommendations - Adapts to different query styles - Used for: Comparisons, custom builds, technical questions Conversation Memory The workflow uses buffer window memory to remember recent conversation: - Stores last 10 messages per user - Enables multi-turn conversations - AI can reference previous questions - Creates more natural interactions - Memory is user-specific (isolated by user ID) Message Flow Example User: "Hi" → Intent: greeting → Response: Welcome message with menu User: "Show me monitors" → Intent: productinquiry (monitors) → Response: Pre-built list of monitors with prices User: "Which one is best for gaming?" → Intent: generalinquiry (complex) → Response: AI analyzes previous context (monitors) and recommends gaming-focused option User: "What's your address?" → Intent: contactinfo → Response: Complete contact details How to customize the workflow STEP 1: Customize Product Categories The workflow comes with example categories for multiple business types. Replace them with YOUR categories: For a Fashion Store: For a Grocery Store: For a Beauty/Cosmetics Store: For a Home Furniture Store: For a Restaurant: --- STEP 2: Customize Product Responses Update the "Generate Product Response" node with YOUR actual products: Example for Fashion Store: Example for Grocery Store: Example for Restaurant: --- STEP 3: Update Company Information Edit the "Build AI System Prompt" node: For a Boutique: For a Tech Store: For a Bakery: --- Additional Customization Options Change AI Model Replace Google Gemini with other LLM providers: - OpenAI GPT-4: Best for nuanced understanding - Anthropic Claude: Strong at following instructions - Llama (self-hosted): Cost-effective for high volume Simply swap the "Google Gemini Chat Model" node with your preferred model. Add More Intents Extend the intent classification in the "Classify User Intent" node: Then add corresponding response nodes in the routing switch. Integrate with CRM Connect to HubSpot: - Add HubSpot node after intent classification - Log every conversation as a ticket - Create contacts automatically - Track customer journey Connect to Salesforce: - Use Salesforce node to create leads - Update opportunity stages based on intent - Log interactions in Activity History Connect to Airtable: - Store conversations in Airtable database - Analyze common questions - Build knowledge base from real conversations Add Multi-Language Support Method 1: Google Translate API - Detect message language - Translate to English for processing - Translate response back to user's language Method 2: Multilingual AI - Add language preference to AI prompt - Train AI on multilingual responses - Support major languages natively Rich Media Responses Send images: Send documents: - Product catalogs (PDF) - Warranty cards - Invoice copies - Installation guides Send location pins: - Store locations - Delivery tracking - Service centers Human Handoff Logic Add escalation for complex issues: Integrate with: - Intercom for live chat handoff - Slack for agent notifications - Zendesk for ticket creation Connect to Inventory Real-time stock checking: - Query your database for availability - Show "In Stock" / "Out of Stock" status - Suggest alternatives for unavailable products - Notify customers when items are restocked Dynamic pricing: - Pull current prices from database - Apply promotional discounts automatically - Show time-sensitive offers Add Analytics Track metrics: - Messages per day/week/month - Most common intents - AI usage vs. pre-built responses - Average response time - Customer satisfaction scores Integration options: - Google Analytics for website tracking - Mixpanel for event tracking - Custom dashboard in Grafana - Google Sheets for simple logging Business Hours Management Add business hours logic: A/B Testing Responses Test different response styles: - Formal vs. casual tone - With/without emojis - Short vs. detailed answers - Different CTAs Track which versions lead to more sales/conversions. Tips for best results 1. Start Simple - Begin with 3-5 main intents - Add more as you see common patterns - Don't over-complicate the initial setup 2. Monitor and Iterate - Review conversations weekly - Identify missed intents - Refine pattern matching - Update product information regularly 3. Balance Pre-Built vs. AI - Use pre-built for: FAQs, product lists, contact info (fast, cheap) - Use AI for: Comparisons, complex queries, personalization (slower, costs money) - Aim for 70-80% pre-built, 20-30% AI 4. Optimize Response Times - Pre-built responses are instant - AI responses take 2-5 seconds - Set user expectations ("Let me check that for you...") 5. Test Different Scenarios - Happy path (normal inquiries) - Edge cases (misspellings, slang) - Multi-turn conversations - Multiple topics in one message 6. Keep Responses Concise - WhatsApp users prefer short messages - Use formatting (bold, bullets) for readability - Break long responses into multiple messages 7. Maintain Brand Voice - Customize AI system prompt with your brand personality - Use consistent tone across all responses - Include brand-appropriate emojis 8. Handle Failures Gracefully - Add error handling for API failures - Have fallback responses ready - Always offer human contact option 9. Respect Privacy - Don't store sensitive information - Comply with GDPR/local privacy laws - Allow users to delete their data 10. Monitor Costs - Track Gemini API usage - Set spending alerts - Optimize prompt length to reduce token usage Common use cases across industries Fashion & Apparel Store - Answer size and fit questions - Share new collection arrivals - Check stock availability by size/color - Process exchange requests - Share styling tips Electronics & Tech Store - Provide product specifications - Compare different models - Check warranty information - Share installation guides - Handle technical support queries Grocery & Food Store - Check product availability - Share daily fresh stock updates - Take bulk orders - Provide recipe suggestions - Handle delivery slot bookings Beauty & Cosmetics - Recommend products for skin types - Share ingredient information - Explain usage instructions - Handle shade/color queries - Process return for wrong products Home Furniture Store - Share dimensions and specifications - Check delivery timelines - Provide assembly instructions - Schedule store visits - Custom furniture inquiries Restaurant & Cafe - Share menu and prices - Take table reservations - Handle takeaway orders - Answer dietary restriction questions - Share daily specials Jewelry Store - Share designs and prices - Book appointments for trials - Check customization options - Verify metal purity/certifications - Handle repair inquiries Bookstore - Check book availability - Take pre-orders for new releases - Recommend books by genre - Share reading lists - Handle exchange requests --- Important Notes: - This workflow requires WhatsApp Business API (not regular WhatsApp Business app) - WhatsApp Business API typically requires business verification - Message rates and limits vary by provider - Test thoroughly before deploying to customers - Always provide a way to reach human support Getting Started Tip: Start with just contact info and product inquiries. Once that works smoothly, add AI responses for complex queries. Gradually expand based on actual customer needs you observe in conversations.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Find covert collaborations on Instagram with Paid Post Detective

🕵️‍♀️ Detect hidden paid collaborations on Instagram Use this template to identify covert paid partnerships in Instagram posts by analyzing the post caption and coauthors. It helps uncover sponsored content—even when it’s not explicitly declared. The template checks for: Sponsored language or indicators in the caption Coauthor usernames, filtering out cases where the product creator is a coauthor (e.g., influencer promoting their own brand) Explicit sponsorship tags, like Instagram’s native

Free

Create a Post about a new product in Shopify

When a new product is added in Shopify, a new post with information and picture is created in selected Facebook page.

Free

Update Airtable records based on new Perplexity AI completions

This template updates Airtable records with new Perplexity AI completions. Trigger updates in Airtable with new Perplexity AI generated content, ensuring data accuracy and relevance.

Free

🐋DeepSeek V3 chat & R1 reasoning quick start

This n8n workflow demonstrates multiple ways to harness DeepSeek's AI models in your automation pipeline! 🌟 Core Features Multiple Integration Methods 🔌 - Local deployment using Ollama for DeepSeek-R1 - Direct API integration with DeepSeek Chat V3 - Conversational agent with memory buffer - HTTP request implementation with both raw and JSON formats Model Options 🧠 - DeepSeek Chat V3 for general conversation - DeepSeek-R1 for advanced reasoning - Memory-enabled agent for persistent

Free

AI Telegram bot agent: smart assistant & content summarizer

Create your own intelligent Telegram bot that summarizes articles and processes commands automatically. This powerful workflow turns Telegram into your personal AI assistant, handling /help, /summary <URL>, and /img <prompt> commands with intelligent responses - perfect for teams, content creators, and anyone wanting smart automation in their messaging. 🚀 What It Does Smart Command Processing: Automatically recognizes and routes /help, /summary, and /img co

Free

Categorize SEO keywords & create content strategy with AI and Airtable

Premium n8n Workflow: SMART AI Keyword Categorization & Content Strategy This n8n workflow transforms raw keyword data into actionable content intelligence using advanced AI categorization and clustering. It creates a comprehensive content strategy with ready-to-use titles and descriptions for your blog posts. --- 🚀 Features 🧠 AI-Powered Categorization Automatically sorts keywords into strategic buckets — Quick Wins, Authority Builders, Emerging Topics, Intent Signals, and

Free

Book Cal.com meetings from ElevenLabs voice agent conversations

This is a specific use case. The ElevenLabs guide for Cal.com bookings is comprehensive but I was having trouble with the booking API request. So I built a simple workflow to validate the request and handle the booking creation. Who's this for? You have an ElevenLabs voice agent (or other external service) booking meetings in your Cal.com account and you want more control over the bookmeeting tool called by the vo

Free

Send weekly Databox paid ads performance reports to Slack and email

Stop spending hours manually pulling paid ads data. This workflow connects to Databox via MCP, auto-discovers every connected paid platform, fetches 6 key metrics, and delivers a consolidated weekly report to Slack and email - every Monday at 9 AM, completely hands-free. Who's it for - Performance marketers managing campaigns across multiple platforms - Marketing managers who need a weekly cross-platform overview - Agencies automating paid ads reporting for clients How it wo

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free