# How to answer WhatsApp customers with an AI agent

> Create an AI agent from a template, teach it your prices and policies, connect your WhatsApp Business number through Meta's official API and test it.

An AI agent on WhatsApp reads each customer message and answers from what you taught it: your hours, prices, delivery areas, policies. When a conversation needs a person, your team picks it up in the inbox.

This guide uses Ñomongeta and WhatsApp's official Cloud API. It takes four steps: create the agent, teach it, connect the number, test.

## Before you start

- A Facebook account with a business portfolio in Meta.
- A phone number that can receive a text or a call with Meta's code: one that isn't on WhatsApp yet, or the number of your WhatsApp Business app, which you can keep using on your phone.
- A payment method in Meta, for the template messages WhatsApp charges for.
- A Ñomongeta workspace. [Start one from the Ñomongeta page](https://www.zenhalab.com/www/nomongeta/en).

## 1. Create the agent

1. Open **Agents** and press **New agent**.
2. Choose **Template** and pick the WhatsApp concierge. It writes short replies like a person texting, answers from your knowledge, and offers a person when it doesn't know.

Prefer to write it yourself? **Describe it** drafts the agent from a sentence or two. The [first agent guide](https://www.zenhalab.com/www/nomongeta/en/docs/getting-started/first-agent) compares the three ways.

## 2. Teach it your business

1. In **Configure**, say in plain words who the agent is, who it talks to and what it may not do. Hard rules, such as never promising a refund, go in **Guardrails**.
2. In **Knowledge**, press **Add document** and paste your FAQ, price list or policies, or upload a file (.txt, .md, .csv, .json, .pdf or .docx).
3. Press **Save changes**. Each save is a version you can go back to.

How the agent finds the right document is in [Knowledge base](https://www.zenhalab.com/www/nomongeta/en/docs/concepts/knowledge-base).

## 3. Connect your WhatsApp number

1. Go to **Channels** → **Add channel** → **WhatsApp Business (Cloud API)**.
2. Under **Which number?**, choose **A number for the API**, or **My WhatsApp Business app number** to keep the number in the Business app too.
3. Pick your agent under **Answers with**.
4. Press **Continue with Facebook**. In Meta's window, choose your business portfolio and your number; Meta sends it a code.
5. Back in Ñomongeta, confirm an API number with its 6-digit PIN and press **Register number**. A number kept in the Business app skips this step.

When the number shows **Live**, the agent is answering.

> [!NOTE]
> Meta bills WhatsApp conversations to your WhatsApp Business account, not through Ñomongeta. More than 24 hours after a customer's last message, WhatsApp only delivers templates Meta approved. Both are explained in [WhatsApp Business (Cloud API)](https://www.zenhalab.com/www/nomongeta/en/docs/channels/whatsapp-cloud-api).

## 4. Test it

Before you tell customers, write to the number from another phone and ask what they would ask. You can also talk to the agent in the playground beside its tabs (**Test** on a phone). Adjust the instructions, save, try again.

## When a person should answer

Anyone on your team can open the conversation in the inbox and press **Take over**; the agent stays quiet until they press **Return to bot**. The WhatsApp concierge can also hand over by itself: when it can't help, or the customer asks for a person, it can move the conversation to your team's queue. Agents made another way get the same from the handoff tool in **Skills & tools**, or from a **Hand to a person** step in a flow. See [Conversations and inbox](https://www.zenhalab.com/www/nomongeta/en/docs/concepts/conversations-and-inbox).

## Related

- [Add an AI chat to your website](https://www.zenhalab.com/www/zenhalab/en/guides/ai-agents/website-ai-chat)
- [Ñomongeta for WhatsApp](https://www.zenhalab.com/www/nomongeta/en/use-cases/whatsapp)
