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.
- 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.
| Job | Example customer message | What the bot does |
|---|---|---|
| Common questions | What are your Ramadan hours? | Replies from the saved seasonal hours |
| Order status | Where is my order? | Asks for the order number or recognizes the phone number and replies with status |
| Bookings | I want a haircut tomorrow afternoon | Shows open slots and confirms the booking |
| Ordering and payment | I want 2 kg of Ethiopian coffee | Builds the cart and sends a mada or Apple Pay payment link |
| Handoff to staff | This 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:
- 1The message arrives
The customer sends text or a voice note. Your app receives it from the platform through a webhook.
- 2Context is loaded
The system recognizes the customer by phone number and fetches recent orders and conversations, if any.
- 3Your 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.
- 4An action runs when needed
Through tool calling it checks an order's status, books a slot or creates a payment link.
- 5It replies or hands off
It writes the reply in the customer's language, or transfers to staff if handoff conditions are met.
- 6Everything 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.
- 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
- 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.
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 FanannKey rules: opt-in, templates and the 24-hour window
| Rule | What it means in practice |
|---|---|
| Customer service window | After the customer's last message you have 24 hours to reply freely |
| Approved templates | Any message you start outside the window must be a Meta-approved template |
| Template categories | Marketing, utility such as order confirmations, or authentication such as OTP codes |
| Opt-in | Get the customer's consent before messaging, and offer an easy way to stop |
| Number quality | Many 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
- A bot that knows everything: too wide a scope means more mistakes. Start with three jobs.
- No human exit: a customer who cannot reach a person leaves angry. Make the word agent trigger an instant handoff.
- Stale data: Ramadan prices or Eid hours not updated, so the bot confidently gives wrong information.
- Bulk sending without consent: leads to reports and a restricted number.
- Never reviewing chats: read a sample every week and fix knowledge and instructions.
| Metric | Why |
|---|---|
| Share of chats resolved without handoff | The bot's real capability |
| Time to first reply | The bot's main advantage over waiting |
| Bookings and orders from WhatsApp | Its effect on revenue |
| Customer rating after the chat | Are 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?
Is the regular WhatsApp Business app enough?
How much does a WhatsApp bot cost?
Does the bot understand Saudi and Gulf dialects?
Can the bot take payments inside WhatsApp?
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.