How to Set Up a WhatsApp Chatbot: Step-by-Step Guide
By Dharm (Founder & CEO, WhatsHub) | Published: July 12, 2026 | Updated: July 12, 2026
The Rise of WhatsApp Automation
In a world where customer attention spans are shrinking, responding to inquiries within minutes is no longer optional. A WhatsApp chatbot provides a direct solution by answering customer queries instantly, qualifying sales leads, and handling repetitive FAQs 24/7 without growing your support team. When connected to the WhatsApp Business API, an automated chatbot acts as your digital front-office assistant, providing consistent, immediate customer service on the world's most popular messaging channel.
Prerequisites for Chatbot Integration
Before launching a chatbot, ensure you have the necessary foundations in place:
- Official API Access: Register a number on the Meta Cloud API. You can do this in minutes using the embedded registration panel inside WhatsHub.
- A Conversational Platform: A builder interface (such as WhatsHub's Visual Flow Builder or AI Bot Studio) to design your rules, keywords, and AI prompts.
- A Configured CRM: A centralized database to store customer responses, deal values, and agent assignments.
Planning Your Chatbot Conversations
A common mistake is building a chatbot without designing the user journey. Good conversational design follows these principles:
- Define the Goal: Decide if the bot is qualifying real estate leads, booking clinic appointments, sharing menu cards, or answering basic FAQs.
- Keep Options Simple: Use quick-reply buttons and numbered lists (e.g., "Reply 1 for pricing, 2 for locations") instead of forcing customers to type long paragraphs.
- Introduce the Bot: Set expectations immediately. Let users know they are interacting with an automated assistant and explain how they can request a human agent.
Comparing Rule-Based vs. AI-Powered Chatbots
Choosing the right logic system depends on the complexity of your customer interactions:
| Feature | Rule-Based (Keyword) Chatbots | AI-Powered (NLP) Chatbots |
|---|---|---|
| Flexibility | Rigid. Follows pre-defined conditional trees. | Flexible. Understands conversational intent and typos. |
| Setup Speed | Very Fast. Connect keywords to replies. | Requires prompt tuning and knowledge-base setup. |
| Cost | Included in standard plans. | May incur API processing tokens (e.g., Gemini integration). |
| Best Used For | Qualifying leads, menus, and simple FAQs. | Conversational support, product advice, complex FAQs. |
| Language Support | Requires manual translation for each keyword. | Translates and replies in multiple languages automatically. |
Step-by-Step Chatbot Setup Workflow
Here is how to deploy a chatbot using the WhatsHub ecosystem:
Step 1: Set Up Base Keyword Rules
Start by configuring simple keyword rules. Inside the Auto-Reply tab, map basic customer greetings (such as "Hi", "Hello", "Start") to an onboarding welcome menu. This ensures that every new conversation is greeted instantly.
Step 2: Design Conversational Flows
Using the Visual Flow Builder, drag and drop message cards, options, and conditional gates. Connect them so that when a user clicks a button like "Book Appointment", the bot automatically gathers their name, preferred date, and contact email.
Step 3: Connect the AI Knowledge Base
For open-ended support questions, switch to the AI Bot Studio. Upload your business FAQ list, support documentation, or website URLs. The integrated Gemini AI reads this knowledge base to answer client queries in natural language, ensuring accuracy and brand consistency.
Step 4: Establish Human-Agent Handover
Configure fallback triggers. If the AI is unsure of an answer, or if the customer types "chat with agent", the bot should mark the conversation as "Pending Approval" or "Active Support" and assign it to a team member in the Shared Inbox.
Testing and Launch Checklist
Before sharing your chatbot number with customers, test the system internally using this checklist:
- Check Fallback Triggers: Ensure that typing random letters triggers a polite fallback response (e.g., "I did not catch that. Please select an option from the menu below").
- Validate Data Capture: Confirm that user input (like telephone numbers or emails) is correctly parsed and updated in your CRM contact parameters.
- Verify Mobile Viewports: Test the interactive buttons on different phone screen sizes (iOS and Android) to ensure formatting is correct.
- Monitor Handover Alerts: Confirm that human agent alerts and WhatsApp notification sounds fire instantly when a chat is escalated.
Common Chatbot Mistakes to Avoid
Avoid these design mistakes to keep customer satisfaction high:
- Trapping Users in Loops: Never design a loop without a way out. Always include a menu button or agent option in every step.
- Long Paragraphs: Large blocks of text are hard to read on mobile. Break messages into short, scannable parts.
- Making the Bot Sound Human: Be transparent. Pretending a chatbot is a human sales rep damages customer trust.
Common Inquiries
Q: What is a WhatsApp chatbot?
A: A WhatsApp chatbot is an automated software program that interacts with users on WhatsApp. It replies to client queries instantly using pre-configured keywords (rule-based) or dynamic machine learning prompts (AI-powered like Gemini or GPT).
Q: Can I set up a chatbot on the free WhatsApp Business app?
A: The standard free mobile WhatsApp Business app does not support custom third-party chatbots or API integrations. You can only configure basic away messages or greetings. To build a multi-level automated chatbot, you must use the WhatsApp Business API connected to a builder like WhatsHub.
Q: How does human-agent handover work?
A: Human-agent handover routes the user conversation from the automated chatbot to a live support agent when the bot cannot resolve the query, or when the user explicitly asks for human help. On WhatsHub, the chatbot pauses automatically, and the ticket status is updated in the Shared Inbox, alerting agents.
Q: Is it possible to qualify sales leads using a chatbot?
A: Yes! Chatbots are excellent at asking qualification questions (e.g., location, budget, service required) and storing answers as lead parameters in your CRM database before a sales representative follows up.
Q: What is the difference between keyword-based and AI chatbots?
A: Keyword-based chatbots search for exact match words (e.g., typing "1" for Sales, "2" for Support) and follow rigid button trees. AI chatbots use Natural Language Processing (NLP) to understand intent, meaning they can answer conversational questions in multiple languages without forcing users to follow a specific path.