How to build a WhatsApp chatbot in 2026: The complete guide

Learn how to build a WhatsApp chatbot step by step, from API setup to AI agents. Includes real business examples, pricing, and platform tips.

Skip to table of contents

Your customers are already on WhatsApp, and they expect to interact with your business there. The question isn’t whether to meet them on the channel, but how to do it at scale without hiring an army of agents. That’s where chatbots come in.

This guide walks you through everything: what WhatsApp chatbots are, how to build one step by step, what the shift to AI agents means for your business, and how to choose the right WhatsApp Business platform. Whether you’re starting from scratch or upgrading an existing bot, you’ll find practical advice, real examples, and the technical details you need.

What is a WhatsApp chatbot?

A WhatsApp chatbot is automated software that holds conversations with customers inside WhatsApp. It answers questions, processes orders, qualifies leads, and resolves support tickets without human intervention.

The scale of opportunity is hard to overstate. WhatsApp has over 33 billion monthly active users, making it the world’s most popular messaging channel. For businesses, that means their customers are already there, and they expect to interact with brands in the same place they message friends and family.

The global chatbot market reflects this shift. Valued at $15.6 billion in 2026, it’s being driven by businesses that want to meet customers on messaging channels rather than forcing them into email queues or phone trees. WhatsApp sits at the center of that trend.

What’s changed recently is the technology behind these bots. A few years ago, most WhatsApp chatbots followed rigid scripts. If a customer said X, the bot replied Y. Today, AI-powered chatbots understand context, learn from conversations, and handle complex multi-step interactions. The most advanced have evolved into AI agents that reason, access knowledge bases, and make decisions autonomously.

Why WhatsApp is the leading channel for chatbots

Not all messaging channels are equal when it comes to chatbot performance. WhatsApp stands out for a combination of reach, engagement, and conversion rates that no other channel matches.

The numbers speak for themselves:

  • WhatsApp messages have a 98% open rate, compared to roughly 20% for email
  • Businesses report 45–60% conversion rates through WhatsApp conversations, versus 2–5% for traditional email and SMS campaigns
  • AI-powered chatbots save an estimated 2.6 billion business hours annually across industries
  • Over 90% of Infobip’s chatbot deployments run on WhatsApp, a clear signal of where businesses see the most impact

These engagement rates exist because WhatsApp is personal. Customers check it dozens of times a day, messages feel like conversations rather than campaigns, and the rich media capabilities (images, videos, buttons, carousels) create interactive experiences that email can’t replicate.

Here’s how businesses are using WhatsApp chatbots across the customer journey:

  • Customer support. Automate routine inquiries, reduce contact center load, and route complex issues to human agents. WhatsApp is becoming the default support channel for businesses that want faster resolution times.
  • Sales and lead generation. Qualify leads through conversation, share product catalogs, and generate leads through WhatsApp. Use the channel for WhatsApp sales conversations where immediacy means leads stay warm.
  • Marketing campaigns. Run promotions, quizzes, and interactive campaigns with open rates that dwarf email. A solid WhatsApp marketing strategy can transform campaign ROI.
  • Commerce. Let customers browse catalogs, recover abandoned carts, track orders, and complete purchases without leaving the chat. The full WhatsApp ecommerce journey happens in one thread.
  • Onboarding. Guide new customers through signup flows, document collection, and KYC verification with structured conversation paths

WhatsApp’s combination of massive reach, high engagement, and rich interactivity makes it the default channel for any business investing in conversational automation.

Types of WhatsApp chatbot

Not every WhatsApp chatbot works the same way. The right type depends on your use case complexity, budget, and how much flexibility you need. Here are the four main categories:

Rule-based chatbots (scripted flows)

These are menu-driven bots that follow predefined scripts. A customer taps a button or types a keyword, and the bot responds with the matching answer. Think of them as interactive decision trees: structured, predictable, and easy to maintain.

Rule-based chatbots work best for structured interactions: FAQs, appointment booking, order tracking, and routing customers to the right department. They’re affordable to build, fast to deploy, and require no training data. The trade-off is rigidity. If a customer asks something outside the script, the bot can’t improvise.

AI-powered chatbots

These bots use natural language processing (NLP) and intent recognition to understand what a customer means, not just what they type. They can handle varied phrasing, follow conversation context, and provide relevant responses even when questions don’t match predefined patterns.

AI-powered chatbots are more flexible than scripted flows but require training data and tuning. They’re ideal when customer queries are diverse and unpredictable: product recommendations, troubleshooting, or conversational AI experiences that feel natural.

AI agents

This is the frontier. AI agents go beyond understanding language. They reason, access external knowledge bases, and take autonomous actions across multiple steps. An AI agent can look up a customer’s order history, check inventory, apply a discount, and confirm a replacement, all in one conversation, without human involvement.

AI agents are powered by generative AI and large language models, enabling them to handle complex, multi-turn interactions that would overwhelm a scripted bot. They learn from every conversation and improve over time.

Hybrid chatbots

Most real-world deployments combine approaches. Scripted flows handle structured paths (menus, forms, transactions) while AI handles the unpredictable parts (free-text questions, complex queries). When the AI reaches its limits, the conversation escalates to a human agent with full context preserved through a cloud contact center.

From chatbots to agents: the evolution path

The industry is on a clear trajectory: rule-based > intent-driven > knowledge bases + AI = agents.

This doesn’t mean older approaches are obsolete. A rule-based chatbot handling appointment bookings still delivers value. But as customer expectations grow and query volumes increase, the limitations of scripted flows become a bottleneck: too many decision trees to maintain, too many edge cases falling through.

AI agents are a natural progression, a level-up. The question isn’t whether to switch, but when: when your chatbot scripts can’t handle the variety of customer queries, when maintaining decision trees consumes more time than building new features, and when you need personalized responses at scale.

What you need to get started

Before building your WhatsApp chatbot, you need access to the WhatsApp Business API. Here’s what that involves:

1. WhatsApp Business API access

There are two paths: through a Business Solution Provider (BSP) like Infobip, or directly from Meta.

The BSP route is faster and more practical for most businesses. A provider like Infobip handles the infrastructure, offers pre-built integrations, compliance tooling, and support, so you can focus on building the chatbot instead of managing API infrastructure. The direct Meta API gives you full control but requires significantly more engineering work.

2. Meta Business verification

You’ll need a Meta Business Manager account with a verified business. This involves submitting business documentation (registration number, address, website) and getting your display name approved. The process typically takes 2–7 business days.

For a detailed walkthrough, see our guide on how to create a WhatsApp Business account.

3. Understand the pricing model

Meta uses a per-conversation pricing model (updated July 2025):

  • Marketing messages (promotions, offers): $0.025–0.14 per message
  • Utility messages (transaction updates, receipts): $0.004–0.05 per message
  • Service messages (customer-initiated support): Free within the 24-hour window
  • Free tier: 1,000 free service conversations per month

Conversations started through Click-to-WhatsApp ads are free for 72 hours. For full pricing details, see WhatsApp pricing.

4. BSP vs. direct API

BSP (e.g. Infobip) Direct Meta API
Setup speed Fast (managed onboarding) Slower (self-service)
Infrastructure Managed, scalable Self-managed
Integrations Pre-built (CRM, CDP, helpdesk) Build your own
Omnichannel Expand to Viber, SMS, RCS, Messenger WhatsApp only
No-code builder Included Not available
Support 24/7 in 14+ languages Community/documentation

For most businesses, the BSP route through Infobip’s WhatsApp Business Platform is the fastest path from zero to live chatbot. For a deeper comparison, read how to choose the best WhatsApp API.

How to build a WhatsApp chatbot in 6 steps

Once you have API access, building your chatbot follows a straightforward process. Here’s how to go from setup to launch:

Step 1: Set up your WhatsApp Business API account

Choose your path (BSP or direct API) and complete the Meta Business verification process. If you’re using Infobip, the WhatsApp Business API setup guide walks through the entire process. You’ll register your phone number, configure your business profile (logo, description, category), and get your API credentials.

Step 2: Design your conversation flow

Before touching any builder tool, map out your customer journeys. Start with the top 5 questions your customers ask, and design flows that resolve them. Define your intents (what users want), entities (the details they provide), and fallback responses (what happens when the bot doesn’t understand).

Sketch the decision tree: entry points, branching paths, and exit points. Keep it simple. You can always expand later.

Step 3: Build your chatbot

Use Infobip’s AI chatbot builder to bring your conversations to life with a no-code drag-and-drop interface. The builder supports:

  • Messages: text, images, videos, documents, carousels, buttons
  • User inputs: keyword triggers, intent matches, free-text capture
  • Actions: API calls, variable assignments, routing logic, agent handoffs

For AI-powered chatbots, connect your knowledge base and configure the AI model’s behavior, tone, and guardrails. For structured tasks like appointment booking, order forms, or surveys, use WhatsApp Flows to create native, app-like experiences directly inside the chat — no back-and-forth messaging required. As a WhatsApp Business Solution Provider, Infobip gives you full access to build and deploy Flows alongside your chatbot.

Step 4: Create your welcome message and menus

First impressions matter. Design a welcome message that tells customers what the bot can do and offers clear options. Use WhatsApp interactive buttons and list menus to guide users instead of asking them to type free-form text.

Set up fallback responses for unrecognized inputs. A simple “I didn’t understand that. Here’s what I can help with…” keeps users on track.

Step 5: Connect to your systems

A chatbot becomes truly useful when it accesses real data. Integrate with your WhatsApp CRM to personalize responses with customer history. Connect to your order management system for tracking updates. Link your customer data platform for context-aware conversations that remember previous interactions.

API connections turn your chatbot from a glorified FAQ into a tool that actually resolves customer needs.

Step 6: Test and launch

Simulate real conversations. Test every flow path, including edge cases and unexpected inputs. Have multiple team members try to break it. They will, and that’s valuable.

Check that fallbacks work, handoffs to human agents are smooth, and response times are acceptable. Monitor the first few days closely: track completion rates, drop-off points, and customer satisfaction scores. Iterate based on real data, not assumptions.

For a more comprehensive look at automating your WhatsApp communications, see the WhatsApp automation guide.

For developers: API integration path

If you prefer code over no-code builders, Infobip’s WhatsApp Business API provides a developer-friendly path to building sophisticated chatbot experiences.

WhatsApp Business API integration. The RESTful API supports sending and receiving messages, managing templates, and handling webhooks for incoming conversations. Infobip’s API layer abstracts much of Meta’s underlying complexity. You work with a unified API that handles delivery, failover, and compliance. For a practical overview, see how to use the WhatsApp Business API.

CRM and CDP connections. Connect your chatbot to Salesforce, HubSpot, or Infobip’s conversational CDP for conversations that are aware of the full customer context: purchase history, support tickets, campaign interactions. This turns a generic bot into a personalized assistant.

Multi-channel deployment. Build your conversational logic once, then deploy across WhatsApp, Viber, Messenger, RCS, and SMS through the same API. This omnichannel approach means you’re not locked into a single channel. Customers get a consistent experience wherever they prefer to message.

Pro-code and agentic workflows. For advanced builders: use Infobip’s APIs with LangChain, LangGraph, or to create agentic workflows where AI agents orchestrate multi-step processes autonomously. See the LangGraph tutorial for a hands-on example of integrating generative AI into a WhatsApp chatbot.

WhatsApp chatbot examples

Customer support: LAQO Insurance

LAQO, a digital-first insurance company, deployed a GenAI-powered chatbot on WhatsApp built on Azure OpenAI and Infobip. The result: 30% of customer queries are handled entirely by the chatbot, with seamless handoff to human agents for complex claims. Resolution times dropped and customer satisfaction improved, without expanding the support team.

Marketing campaigns: Nivea and Unilever

Nivea ran an AI-powered styling campaign on WhatsApp focused on diversity and personalization. The campaign achieved 207% of its reach target, turning a messaging channel into a brand experience.

Unilever launched MadameBot, a conversational campaign that drove 14x higher sales compared to traditional channels.

Lead generation: Nissan Saudi Arabia

Nissan Saudi Arabia replaced web forms with a verified WhatsApp channel offering 24/7 availability. The shift delivered a 138% increase in qualified leads and significantly faster follow-up. Prospects got instant responses instead of waiting for a sales rep to check their inbox.

Commerce and engagement: Flamingo

Flamingo deployed a self-service WhatsApp chatbot for product inquiries, order tracking, and recommendations. The results: 11% conversion rate growth and a 21-point NPS improvement. Customers preferred the speed and convenience of resolving issues in chat over calling or emailing.

Scale operations: CarDekho

CarDekho, India’s leading auto tech company, built an API-integrated WhatsApp bot delivering real-time car pricing and availability. The bot handles 15,000 conversations per day, a volume that would be impossible with a human-only team.

Boosting engagement: WhatsApp features to leverage

Building the chatbot is step one. Getting customers to actually use it (and keep using it) requires leveraging WhatsApp’s native features for discovery and interaction.

Click-to-WhatsApp ads

Run Facebook and Instagram ads with a “Send Message” button that opens a WhatsApp conversation directly. It’s one of the highest-intent ad formats available. Users who click are ready to engage. Bonus: Meta provides free messaging for conversations initiated through ads for 72 hours. Read more about Click-to-WhatsApp ads.

QR codes

Print QR codes on packaging, receipts, in-store displays, or event materials. Customers scan and land directly in a WhatsApp conversation with your chatbot. No app download, no form to fill out. It’s the lowest-friction entry point for offline-to-online engagement. Make sure you’re collecting WhatsApp opt-ins as part of this flow.

WhatsApp Flows

WhatsApp Flows let you create structured, form-like experiences natively inside WhatsApp. Think appointment booking screens, multi-step surveys, product selection menus, and checkout forms, all rendered with native UI elements (text fields, radio buttons, dropdowns, date pickers) rather than clunky back-and-forth messages.

As a WhatsApp Business Solution Provider, Infobip gives you full access to build and deploy Flows. This is a competitive advantage. Most chatbot platforms can’t offer native WhatsApp form experiences.

WhatsApp Business Calling API and Voice AI

The Calling API bridges chat and voice. Customers can initiate a voice call directly from the chatbot conversation, useful for complex support scenarios where typing isn’t enough. It also works as a call deflection tool: route incoming voice calls to WhatsApp for faster resolution.

The next evolution is Voice AI on WhatsApp, where AI-powered agents handle spoken conversations within the app. This combines the convenience of voice with the rich context of a chat thread, opening up new use cases for accessibility, hands-free support, and customers who prefer speaking over typing.

You can also add a WhatsApp button to your website for another high-visibility entry point.

What to look for in a WhatsApp chatbot platform

With dozens of chatbot platforms available, choosing the right one comes down to seven criteria:

  •  AI capabilities. Does the platform support generative AI, NLP, and intent detection? Can it handle complex, multi-turn conversations, or only scripted menus? Look for platforms that offer both no-code bot building and advanced AI agent capabilities for when your needs grow.
  • Channel coverage. WhatsApp-only platforms lock you in. An omnichannel platform lets you build once and deploy across WhatsApp, Viber, Messenger, SMS, RCS, and more, reaching customers on whatever channel they prefer.
  • Compliance and security. GDPR, data residency requirements, end-to-end encryption, and fraud prevention are non-negotiable, especially for regulated industries like finance, healthcare, and insurance. Check where the platform’s data centers are located and what certifications they hold.
  • Scalability and reliability. Can the platform handle your peak volumes without degradation? What’s the uptime SLA? A chatbot that goes down during a product launch or holiday sale is worse than no chatbot at all.
  • Analytics and optimization. You need visibility into conversation completion rates, drop-off points, intent distribution, customer satisfaction, and ROI. Strong analytics turn your chatbot from a set-and-forget tool into a continuously improving asset.
  • Integration ecosystem. Your chatbot needs to talk to your CRM, CDP, helpdesk, ecommerce platform, and payment systems. Look for open APIs and pre-built connectors rather than closed ecosystems that require custom development for every integration.
  • Getting started. How quickly can you go from signup to live chatbot? Does the platform offer a no-code builder for business users alongside APIs for developers?

Infobip’s AgentOS platform covers all seven criteria: omnichannel reach across 15+ channels, AI agents with generative AI, journey orchestration, a cloud contact centerinsights and analytics, 40+ data centers for global compliance, pre-built integrations with major CRMs and CDPs, and a no-code builder for rapid deployment. See the full WhatsApp Business Platform feature set for details.

FAQ

Start building your WhatsApp chatbot

WhatsApp chatbots have moved far beyond simple FAQ bots. Today, they handle sales, support, marketing, and commerce, powered by AI that understands context and takes action.

Whether you’re building your first rule-based chatbot or deploying AI agents that handle thousands of conversations autonomously, the fastest path is through a platform that gives you the tools, channels, and infrastructure to scale.

Get started with Infobip’s WhatsApp chatbot builder and build your first chatbot in minutes with no-code tools. Or, if you prefer to code, explore the WhatsApp Business API for full customization.

Keep reading:

Get the latest insights and tips to elevate your business

By subscribing, you consent to receive email marketing communications from INFOBIP. You have the right to withdraw your consent at any time using the unsubscribe link provided in all INFOBIP’s email communications. For more information please read our Privacy Notice