> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/sending/overview-of-other-methods-for-sending/chat-with-meta-ai.md).

# Chat with Meta AI

Meta AI can answer questions, provide recommendations, help with ideas, and support interactive conversations directly inside WhatsApp.

This feature is useful when you want to test or automate communication with AI assistants available in your WhatsApp account.

### Important notes

* Meta AI availability depends on WhatsApp and may vary by country or account.
* Meta AI is currently available only for personal WhatsApp accounts, not WhatsApp Business accounts.
* AI-generated responses may be inaccurate or incomplete.
* To receive bot replies programmatically, you need to configure webhooks.

You can read more about receiving messages here: [Webhooks documentation](https://support.whapi.cloud/help-desk/receiving/webhooks)

### Get available AI bots

First, request the [list of bots](https://whapi.readme.io/reference/getbotlist) available for your connected WhatsApp account.

Use: `GET https://gate.whapi.cloud/bots`

Example request:

```bash
curl --request GET \
  --url https://gate.whapi.cloud/bots \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <CHANNEL_TOKEN>'
```

Example response:

```json
{
  "bots": [
    {
      "id": "13135550002@s.whatsapp.net",
      "persona_id": "867051315767696$1516093456410924"
    }
  ],
  "count": 1
}
```

The `id` value is the Bot ID. You will use it to send messages to this AI bot.

### Send a message to an AI bot

{% embed url="<https://whapi.readme.io/reference/sendbotmessage>" %}

Use: `POST https://gate.whapi.cloud/bots/{BotID}/messages`

Replace `{BotID}` with the bot ID from the previous response.

Example request:

```bash
curl --request POST \
  --url https://gate.whapi.cloud/bots/13135550002%40s.whatsapp.net/messages \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <CHANNEL_TOKEN>' \
  --header 'content-type: application/json' \
  --data '{
    "body": "Hello! What can you help me with?"
  }'
```

In the URL, the `@` character can be encoded as `%40`.

### Request body

* `body` — the text message you want to send to the AI bot.

Example:

```json
{
  "body": "Suggest three ideas for a weekend trip."
}
```

### Receive AI responses

The bot reply is received like other incoming WhatsApp messages.

To process responses automatically, configure a [webhook for incoming messages](/help-desk/receiving/webhooks/incoming-webhooks-format.md) in your channel settings.

Recommended flow:

1. Call `GET /bots` to get available AI bots.
2. Select the required bot ID.
3. Send a message using `POST /bots/{BotID}/messages`.
4. Receive the AI response through your configured webhook.
5. Process the response in your application, CRM, bot, or automation workflow.

### How to start a Meta AI chat manually

You can also start a conversation with Meta AI directly from the WhatsApp app first.

{% embed url="<https://faq.whatsapp.com/666767195111959/?cms_platform=web>" %}

After the AI bot becomes available in your WhatsApp account, you can retrieve it through `GET /bots` and continue working with it via Whapi.Cloud API.
