Skip to contentTalk to us
AI fundamentals

Build an AI WhatsApp bot for your business

How to build an AI WhatsApp bot that answers customers in Arabic and English, tracks orders, takes bookings and hands off to staff. Setup, Meta rules, pitfalls.

Fanann Team10 min read
WhatsApp
Quick answer

An AI WhatsApp bot receives customer messages through the WhatsApp Business Platform, understands them with a language model and replies from your own data: prices, slots, order status and policies. To build one you need a WhatsApp Business number on Meta's official platform, directly or through an approved provider, an app that receives messages via webhook and connects to your database, a reliable knowledge source, and a smooth handoff to a human. Follow Meta's rules: customer opt-in, approved templates outside the 24-hour window, and a bot that serves your business rather than acting as a general assistant.

People look for this as
  • how to build an ai whatsapp bot
  • whatsapp chatbot for small business
  • connect chatgpt to whatsapp business
  • whatsapp business api chatbot arabic
  • whatsapp ai auto reply for orders

What is an AI WhatsApp bot, and what can it do for your business?

An AI WhatsApp bot answers customer messages automatically, but not with the old press 1 for prices menus. It understands what the customer writes in Arabic, English or their own dialect, and replies from your data: opening hours, prices, items in stock, order status, available slots. When a question is beyond it, or the customer is upset, it hands the chat to a staff member with a summary of what happened.

In the Gulf, WhatsApp is where many customers start: a price question, a delivery order, a salon booking, a shipment query. The problem is that messages pile up after hours, in Ramadan and during peak seasons, and a late reply means a customer gone to a competitor. A good bot answers routine questions instantly and leaves your team what needs a human.

JobExample customer messageWhat the bot does
Common questionsWhat are your Ramadan hours?Replies from the saved seasonal hours
Order statusWhere is my order?Asks for the order number or recognizes the phone number and replies with status
BookingsI want a haircut tomorrow afternoonShows open slots and confirms the booking
Ordering and paymentI want 2 kg of Ethiopian coffeeBuilds the cart and sends a mada or Apple Pay payment link
Handoff to staffThis is the third time my order is late!Apologizes and transfers to staff with a summary

What do you need to build a WhatsApp bot?

There is an important difference between the free WhatsApp Business app on your phone and the WhatsApp Business Platform (often called the API). The app supports simple auto-replies and a greeting message. An AI bot connected to your systems needs the official platform.

  • A verified Meta Business account and a phone number dedicated to the platform. A number registered on the platform generally cannot be used in the regular WhatsApp app at the same time.
  • Platform access: either directly through Meta's Cloud API, or through an approved Business Solution Provider (BSP) that simplifies setup and billing.
  • A backend app that receives messages through a webhook, sends them to the model and runs actions in your database.
  • A knowledge source: FAQs, menu, policies and product information, in a structured form.
  • A staff inbox where your team sees handed-off chats and replies.
  • Approved message templates for messages you initiate, such as order confirmations and appointment reminders.

How does the bot work under the hood?

Follow one message from the customer to the reply:

  1. 1
    The message arrives

    The customer sends text or a voice note. Your app receives it from the platform through a webhook.

  2. 2
    Context is loaded

    The system recognizes the customer by phone number and fetches recent orders and conversations, if any.

  3. 3
    Your knowledge is searched

    It retrieves the relevant parts of your FAQs, menu and policies. This is called RAG, and it keeps the model from inventing answers.

  4. 4
    An action runs when needed

    Through tool calling it checks an order's status, books a slot or creates a payment link.

  5. 5
    It replies or hands off

    It writes the reply in the customer's language, or transfers to staff if handoff conditions are met.

  6. 6
    Everything is logged

    Conversations and actions are saved so you can review them and improve answers.

Design the bot's voice and limits in Arabic

The most important thing you write for a bot is not code; it is the instructions that set what it says and what it never says. These live in the system prompt, where you define:

  • Tone: warm and brief, matching the customer's dialect if they use one, and plain standard Arabic otherwise.
  • Scope: it answers about your business only and politely declines anything else.
  • Numbers: it never quotes a price, time or discount unless it comes from your data, and never promises what does not exist.
  • Handoff: complaints, refund requests, medical or legal questions, angry customers, or anyone asking for a person.
  • Privacy: it never asks for card numbers in the chat; payment happens only through a secure link.
Weak reply
  • Dear customer, thank you for contacting us, we will reply soon.
  • Invents a price that does not exist
  • Answers a casual Gulf-dialect question in stiff formal Arabic
  • Repeats the same reply when the question repeats
Good reply
  • Hi! Order 4821 is out with the driver and arrives today before 9 pm.
  • Says let me check for you and hands off when data is missing
  • Matches the customer's language and tone
  • Suggests a clear next step

Build the bot and its system with Fanann

The bot alone is half the solution. It needs a system behind it: a database for orders and bookings, a staff inbox, payment links and logs. With Fanann, the agent builds all of that from your description, with a managed database, integrations with outside services, and code you own. You connect your number on the WhatsApp Business Platform, and your app handles the rest.

Copy-ready prompt for a salon WhatsApp bot

Build an AI WhatsApp bot system for a women's salon in Jeddah, connected to the WhatsApp Business Cloud API via webhook. The bot replies in Arabic in a friendly Saudi tone, and in English if the customer writes in English. Jobs: answer questions about services, prices and opening hours using the services table only; show available slots and book with the chosen stylist; send a deposit payment link via mada or Apple Pay; cancel or reschedule. Hand the chat to a staff member for complaints, refund requests, or when the customer asks, with a conversation summary. Add a staff dashboard showing handed-off chats and bookings, and message templates for a reminder one day before the appointment. The bot must never quote a price that is not in the data. Show me the plan before you build.

Try it in Fanann

Key rules: opt-in, templates and the 24-hour window

RuleWhat it means in practice
Customer service windowAfter the customer's last message you have 24 hours to reply freely
Approved templatesAny message you start outside the window must be a Meta-approved template
Template categoriesMarketing, utility such as order confirmations, or authentication such as OTP codes
Opt-inGet the customer's consent before messaging, and offer an easy way to stop
Number qualityMany blocks and reports lower your number's rating and can limit sending

For marketing messages and timing, read WhatsApp marketing done right. For service notifications from your app, see send WhatsApp notifications from your app.

Common mistakes, and how to measure your bot

  1. A bot that knows everything: too wide a scope means more mistakes. Start with three jobs.
  2. No human exit: a customer who cannot reach a person leaves angry. Make the word agent trigger an instant handoff.
  3. Stale data: Ramadan prices or Eid hours not updated, so the bot confidently gives wrong information.
  4. Bulk sending without consent: leads to reports and a restricted number.
  5. Never reviewing chats: read a sample every week and fix knowledge and instructions.
MetricWhy
Share of chats resolved without handoffThe bot's real capability
Time to first replyThe bot's main advantage over waiting
Bookings and orders from WhatsAppIts effect on revenue
Customer rating after the chatAre replies actually helpful?

Your next step: collect the last 50 WhatsApp messages you received and sort them. The most common type is where your bot starts. For balancing automation and people, read AI customer service in Arabic.

Key takeaways

  • A smart bot answers from your data (menu, prices, orders), not from the model's general knowledge.
  • You need the official WhatsApp Business Platform; the regular WhatsApp Business app is not enough for an automated AI bot.
  • Outside the 24-hour window after the customer's last message, only send Meta-approved templates.
  • Human handoff is a core part of the design, especially for complaints, money and sensitive cases.
  • Start with three clear jobs: FAQs, order status and bookings, then expand.

Frequently asked questions

How do I build an AI WhatsApp bot that replies automatically?
Connect a number to the WhatsApp Business Platform, directly through Meta or through an approved provider, and build an app that receives messages via webhook and sends them to an AI model that answers from your data, with handoff to staff when needed.
Is the regular WhatsApp Business app enough?
For simple auto-replies and a greeting, yes. An AI bot connected to orders, bookings and your database needs the official WhatsApp Business Platform.
How much does a WhatsApp bot cost?
Costs come from Meta's conversation fees, which vary by message type and country, the cost of running the model, and the cost of building the system. Check Meta's current pricing, and estimate build cost with the app cost calculator.
Does the bot understand Saudi and Gulf dialects?
Modern models usually handle common Gulf dialects well, but test the bot on real messages from your customers and have it ask for clarification instead of guessing.
Can the bot take payments inside WhatsApp?
The safest approach is for the bot to send a secure payment link from your gateway that supports mada and Apple Pay, and never ask for card details in the chat.

Ask your AI assistant about this

Copy this prompt into the AI assistant you use, then add the details of your own case.

I am reading this guide: “Build an AI WhatsApp bot for your business” https://fanann.com/en/blog/whatsapp-ai-bot/ My question: how to build an ai whatsapp bot Use that page as a source and explain the answer step by step for my situation, tell me what to check before I start, and cite the page link.

Terms in this article

Your idea deserves to see the light.

Describe it in Arabic or English and Fanann builds, tests and ships it — no coding knowledge needed. Start free, no credit card.