For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chat with Meta AI

Whapi.Cloud allows you to interact with Meta AI bots available in WhatsApp through API.

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

Get available AI bots

First, request the list of bots available for your connected WhatsApp account.

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

Example request:

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

Example response:

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

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

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

Example request:

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:

Receive AI responses

The bot reply is received like other incoming WhatsApp messages.

To process responses automatically, configure a webhook for incoming messages 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.

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.

Last updated