How to Integrate an AI Agent

WhatsApp Business chat window showing AI agent conversation with customer on mobile phone

WhatsApp has over 2 billion active users globally. For businesses serving customers in the UK, Europe, Southeast Asia, Latin America, India, or the Middle East, it’s often the primary way customers want to communicate. Yet most businesses still manage WhatsApp manually — one message at a time, during business hours, from a single phone.

Integrating an AI chatbot with WhatsApp changes this entirely. You can handle hundreds of conversations simultaneously, respond instantly at 2 AM, and automate the repetitive enquiries that consume your team’s time — while keeping human agents available for conversations that genuinely need them.

This guide walks you through exactly how to do it in 2026.


Understanding the WhatsApp Business Ecosystem

Before diving into setup, understand the three layers:

1. WhatsApp (Consumer)

The standard app most people use. Not suitable for business automation — violates WhatsApp terms of service if used for automated messaging at scale.

2. WhatsApp Business App

A free mobile app designed for small businesses. Allows basic automation (away messages, quick replies) but does not support AI chatbot integration. Limited to one device/number.

3. WhatsApp Business API (Cloud API)

Meta’s official API for medium and large businesses. Enables full chatbot integration, multi-agent access, automated messaging, and integration with third-party platforms. This is what you need for AI chatbot integration.

The rest of this guide focuses on the WhatsApp Business API (Cloud API).


Requirements Before You Start

Business requirements:

  • A legitimate business (Meta verifies this)
  • A business Facebook page or Meta Business account
  • A phone number not currently registered on WhatsApp (or willing to migrate)
  • A website with a privacy policy

Technical requirements:

  • A WhatsApp Business API-compatible chatbot platform (Chatloop, Twilio, or similar)
  • A Meta Business Manager account (free)

Time requirements:

  • Meta verification: 1–5 business days
  • Technical setup: 2–4 hours once approved

Option 1: Using a No-Code Platform (Recommended)

The simplest route to WhatsApp chatbot integration is through a platform that handles the API complexity for you. Chatloop, for example, provides native WhatsApp Business API integration — you don’t touch the API directly.

Advantages:

  • No API development required
  • Single dashboard for web chat and WhatsApp
  • Same AI agent, multiple channels
  • Meta verification support included

The steps below cover this approach.


Option 2: Direct API Integration

If you have development resources and want maximum control, you can integrate directly with Meta’s WhatsApp Cloud API. This requires:

  • A Meta developer account
  • A registered app in Meta Developer Portal
  • Webhook development to receive and send messages
  • Your own AI/chatbot logic or connection to an AI model

This approach offers more customisation but requires significant development time. For most businesses, Option 1 delivers 95% of the value in a fraction of the time.


Step-by-Step: WhatsApp Chatbot Integration via No-Code Platform

Step 1: Set Up Meta Business Manager

  1. Go to business.facebook.com and create a Business account (or log in if you have one)
  2. Navigate to Business Settings → Accounts → WhatsApp Accounts
  3. Click AddCreate a WhatsApp Business Account
  4. Enter your business details and agree to WhatsApp’s terms

Important: Use your real business name and details. Meta verifies this information and rejects accounts that appear fraudulent.


Step 2: Add Your Phone Number

  1. Within your WhatsApp Business Account, click Phone NumbersAdd phone number
  2. Enter the phone number you want to use
  3. Choose your verification method: SMS or voice call
  4. Enter the verification code sent to that number

Number requirements:

  • Must be able to receive SMS or calls
  • Must NOT already be registered on any WhatsApp account
  • If your number is on WhatsApp: back up your chats, then delete the WhatsApp account before proceeding

Step 3: Connect to Your Chatbot Platform

In your chatbot platform (e.g., Chatloop):

  1. Navigate to Integrations → WhatsApp
  2. Click Connect WhatsApp Business Account
  3. You’ll be redirected to Meta’s OAuth flow — log in and authorise the connection
  4. Select your WhatsApp Business Account and phone number
  5. Return to your dashboard — the connection should show as active

Test the connection: Send a test message from a personal WhatsApp account to your business number. The message should appear in your dashboard.


Step 4: Configure Your AI Agent for WhatsApp

WhatsApp conversations have slightly different dynamics than website chat. Configure accordingly:

Message format differences:

  • WhatsApp doesn’t render HTML — use plain text responses
  • Emojis work well and feel natural on WhatsApp
  • Keep responses concise — long paragraphs are harder to read on mobile
  • Use numbered lists for multi-step instructions

WhatsApp-specific configuration:

  • Welcome message: Sent when a customer first contacts you (or after a 24-hour gap)
  • Away message: Auto-response outside business hours
  • Quick reply buttons: WhatsApp supports up to 3 quick reply buttons per message — use these for common query types

Sample welcome message for WhatsApp:
“Hi! 👋 Welcome to [Business Name]. I’m your AI assistant and can help with:
1️⃣ Orders & delivery
2️⃣ Returns & refunds
3️⃣ Product questions

What can I help you with today?”


Step 5: Set Up Your Knowledge Base for WhatsApp Queries

WhatsApp queries have different patterns than website chat. Common WhatsApp-specific questions include:

  • “Is this the right number for [business name]?” — Confirm identity clearly
  • “Can I WhatsApp you photos of the issue?” — Set expectations about media handling
  • After-hours queries — Ensure away messages and next-day follow-up are configured
  • Mobile-first queries — Customers expect quick, thumb-friendly responses

Review your existing FAQ and add WhatsApp-specific scenarios your team commonly encounters.


Step 6: Configure Escalation for WhatsApp

When AI can’t resolve a WhatsApp conversation, you have several escalation options:

Option A: Human takeover in same chat
A human agent receives the conversation in the same inbox and continues the conversation. The customer sees a seamless handoff — the chat window doesn’t change.

Option B: Redirect to phone/email
“This question needs a specialist. Our team can call you back — can I take your best number?”

Option C: Ticket creation
Raise a support ticket automatically and send the ticket reference to the customer via WhatsApp.

Option A is the best customer experience if your platform supports it. Chatloop’s team inbox supports this natively.


Step 7: Understand WhatsApp’s Messaging Windows

WhatsApp has important rules about when and how businesses can message customers:

Customer-initiated conversations (24-hour window):
When a customer messages you, you can reply freely for 24 hours. Your AI agent can respond to all incoming messages within this window.

Business-initiated messages (outside 24-hour window):
To re-engage customers after 24 hours, you must use Message Templates — pre-approved messages submitted to Meta. These have strict format requirements.

For chatbot automation, focus on the 24-hour response window. Template messaging (for outbound campaigns) is a separate topic and requires additional Meta approval.


Step 8: Test Thoroughly Before Going Live

Testing checklist:

  • Send a test message — does it appear in your dashboard?
  • Does your AI agent respond within 5 seconds?
  • Are responses formatted correctly (no HTML, readable on mobile)?
  • Does the escalation trigger work?
  • Does the away message activate outside business hours?
  • Does the welcome message send for new conversations?
  • Test on both Android and iOS (WhatsApp can display differently)

Step 9: Promote Your WhatsApp Number

Once live, let customers know they can reach you on WhatsApp:

  • Add a “Chat with us on WhatsApp” button on your website
  • Include your WhatsApp number in email signatures
  • Add a WhatsApp link in your Google Business Profile
  • Use WhatsApp’s official “Click to Chat” link format: https://wa.me/[country code][number]

WhatsApp QR code: Generate a QR code from your WhatsApp Business account that customers can scan to start a conversation instantly — useful for physical locations, packaging, and print materials.


WhatsApp Chatbot Best Practices

Do:

  • Respond within seconds (this is the whole point of automation)
  • Use the customer’s name if you have it from the conversation
  • Offer clear options rather than open-ended questions where possible
  • Set accurate expectations for human response times when escalating
  • Respect WhatsApp’s 24-hour messaging window rules

Don’t:

  • Send unsolicited messages to people who haven’t contacted you
  • Use WhatsApp for bulk marketing without proper template approval
  • Let conversations go unanswered for hours after escalation
  • Use formal, corporate language — WhatsApp is a conversational, mobile-first channel
  • Violate Meta’s commerce and business policies (can result in number bans)

FAQ

Q: Can I use the same AI agent on my website and WhatsApp?
A: Yes — with a platform like Chatloop, you deploy one AI agent across multiple channels. The knowledge base is shared; only the presentation layer differs.

Q: How long does Meta verification take?
A: Typically 1–5 business days. Ensure your business details are accurate and match your website.

Q: Can I use my existing WhatsApp Business number?
A: If you’re currently using the WhatsApp Business App (not the API), you’ll need to migrate your number to the API. This requires deleting the existing WhatsApp Business App account for that number first.

Q: Is WhatsApp Business API free?
A: Meta charges per conversation (24-hour window). Rates vary by country but are typically low (pennies per conversation). The first 1,000 conversations per month from customers are currently free.

Q: What if my industry has compliance requirements (healthcare, financial services)?
A: WhatsApp has specific policies for regulated industries. Consult a compliance specialist before deploying automated messaging in these sectors.

Q: Can the chatbot send images or documents on WhatsApp?
A: Yes. The WhatsApp Business API supports sending images, PDFs, and other media. This can be configured in your chatbot platform for use cases like sending product brochures or invoices.


Conclusion

Integrating an AI chatbot with WhatsApp is one of the most high-impact customer support investments a business can make — particularly for companies with international customers or audiences that prefer messaging over traditional channels.

The technical barrier to entry is lower than most businesses expect. With a no-code platform like Chatloop, you can be live on WhatsApp with a fully functional AI agent in a single working day (plus the Meta verification wait time).

The businesses that integrate WhatsApp now — before it becomes standard practice — will have a meaningful head start in customer experience, response times, and operational efficiency.

Get started with Chatloop‘s native WhatsApp integration and be live in hours, not weeks.

Leave a Reply

Your email address will not be published. Required fields are marked *