AI & Automation

How to Build a WhatsApp AI Assistant for Your Business (2026 Guide)

Cover image for How to Build a WhatsApp AI Assistant for Your Business (2026 Guide)

To build a WhatsApp AI assistant, register your number on Meta’s WhatsApp Business Platform (Cloud API), connect a webhook to a small server or an n8n workflow, give the AI model your own business information to answer from (retrieval, or “RAG”), and add a handoff to a human. Since January 2026, Meta only allows assistants that support a real business service — not general-purpose chatbots.

This guide explains each step the way I plan these projects for clients: what Meta allows, how the pieces connect, what it costs, and how to test it before customers see it. If you want it built for you, see my AI chatbot and WhatsApp agent service.

What Meta allows in 2026

From 15 January 2026, Meta’s WhatsApp Business Solution terms prohibit general-purpose AI chatbots on the platform — assistants where the AI is the product, such as an open “ask me anything” bot. AI that supports your own business is still allowed. Typical permitted uses:

  • Answering questions about your services, prices, timings and policies
  • Booking appointments and sending reminders
  • Order confirmations, delivery updates and order-status questions
  • Qualifying leads and passing them to a salesperson
  • Admissions and fee questions for schools and institutes

Keep the assistant focused on your business, and always give customers a way to reach a person.

WhatsApp Business App vs WhatsApp Business Platform

WhatsApp Business AppWhatsApp Business Platform (Cloud API)
Who it suitsOne person or a small team replying by handBusinesses that want automation, AI replies or several agents
AutomationGreeting, away messages and quick replies onlyFull automation through webhooks and the API
AI assistantNot possiblePossible (business-specific use only)
CostFree appPer-message charges set by Meta, plus your hosting
Set-upInstall the appMeta Business portfolio, verification, phone number registration

An AI assistant needs the Platform. You can connect directly to Meta’s Cloud API, or through a Business Solution Provider (BSP) such as Twilio or 360dialog, which adds its own dashboard and fees.

How a WhatsApp AI assistant works

  1. A customer sends a message. Meta sends it to your webhook — a URL on your server or n8n instance.
  2. Your server finds the right information. It searches your knowledge base (FAQs, price list, policies) for the passages related to the question.
  3. The AI model writes a reply using only those passages and your instructions: tone, language, what it must never answer.
  4. Tools take actions when needed: check an order in your database, create a booking, save a lead to Google Sheets or your CRM.
  5. Your server sends the reply through the Cloud API.
  6. Handoff: if the question is outside the knowledge base, sensitive, or the customer asks for a person, the bot stops and notifies your team.

Step-by-step: building it

1. Prepare your Meta accounts

Create a Meta Business portfolio, complete business verification, add a WhatsApp Business account and register the phone number you will use. Use a number your business controls long-term — not a personal SIM that might change.

2. Choose where the logic runs

n8n is the fastest route for most small businesses: its WhatsApp trigger and AI Agent nodes handle the webhook, model calls and tools without much code, and it can be self-hosted to avoid per-task fees. A custom Node.js or Next.js server gives more control for high volume or complex integrations.

3. Build the knowledge base

Collect what customers actually ask: your top 30–50 questions from WhatsApp history, service and price lists, delivery or admission policies, timings and location. Write each answer once, clearly. Store it in a vector database such as Supabase pgvector so the assistant can retrieve the relevant parts. This retrieval step — RAG — is what keeps answers specific to your business instead of generic.

4. Write the instructions

Tell the model who it represents, which languages to use (English, Urdu, Roman Urdu), to answer only from the retrieved information, to say “I’ll connect you with our team” when unsure, and never to promise refunds, medical advice or prices that are not in the knowledge base.

5. Respect the 24-hour customer service window

When a customer messages you, a 24-hour customer service window opens and you can reply freely within it. Outside that window, you can only start a conversation with a pre-approved message template (for example, an appointment reminder). Design reminders and follow-ups as templates and submit them for approval early.

6. Add the human handoff

Route escalated chats to a shared inbox or a staff member’s WhatsApp, with the conversation history attached. Pause the bot on that chat until the person marks it resolved.

7. Test before launch

Run at least 50 real past questions through the assistant, including rude, off-topic and Roman Urdu messages. Check every answer against your knowledge base, fix gaps, then launch to a small group first.

What it costs to run

CostHow it is chargedNotes
Meta messagingPer message, by category (marketing, utility, authentication, service) and countryPer-message pricing replaced per-conversation pricing on 1 July 2025. Meta has announced that from 1 October 2026 service replies are also charged; check the current rate card.
AI modelPer token (text processed)For FAQ-style answers this is usually small per conversation; it grows with long documents and long chats.
HostingMonthly server or n8n planSelf-hosted n8n on a VPS is often the cheapest option at volume.
BuildOne-timeDepends on the knowledge base, integrations and languages.

Rates change, so always check Meta’s WhatsApp pricing documentation for your recipients’ country before estimating. Conversations that start from a Click-to-WhatsApp ad or a Facebook Page button open a free entry-point window.

Launch checklist

  • Business-specific purpose (no general-purpose chatbot)
  • Verified Meta Business portfolio and registered number
  • Knowledge base with your real top questions and answers
  • Clear instructions: languages, tone, what never to answer
  • Message templates approved for reminders and follow-ups
  • Human handoff tested end-to-end
  • Conversation logs reviewed weekly for wrong or missing answers

For broader automation — saving leads to sheets, sending order alerts, processing documents — see AI automation services, or read the wider guide to building an AI chatbot or agent.

Frequently Asked Questions

Is it allowed to put an AI chatbot on WhatsApp in 2026?
Yes, if the assistant supports your own business — answering customer questions, taking bookings, tracking orders or qualifying leads. Since 15 January 2026 Meta’s WhatsApp Business Solution terms prohibit general-purpose AI assistants whose main product is the AI itself, such as public ChatGPT-style bots.
Can I use my existing WhatsApp Business number?
Usually yes. The number is registered on the WhatsApp Business Platform during onboarding. Depending on your market and provider, Meta’s coexistence option may let you keep using the WhatsApp Business App on the same number; otherwise the number moves to the platform only. Check this before onboarding.
How much does a WhatsApp AI assistant cost to run?
Three running costs: Meta’s per-message charges (by category and country), AI model usage (a few cents or less per conversation for most FAQ assistants) and hosting for the webhook server or n8n. Check Meta’s current rate card for Pakistan before estimating.
Can the assistant reply in Urdu and Roman Urdu?
Yes. Current models from OpenAI, Anthropic and Google understand and write Urdu and Roman Urdu. Instruct the assistant to reply in the customer’s language and test real messages from your customers.
What happens when the bot cannot answer?
It should say so and hand over to a person: tag the conversation in your inbox, notify a staff member and stop replying automatically until the person closes the case.

Need professional help? Explore my web development and AI services or get in touch to discuss your project.

Related tool: Try our Word Counter Online to complement what you learned in this article.

Share this article
Written By

Khyrat Hussain

Khyrat Hussain builds websites, mobile apps and AI automation for businesses in Pakistan and worldwide, from Ahmadpur East, Bahawalpur.