Respos·ai← Back to journal
§ Docs · WhatsApp

WhatsApp Cloud API.

Connect your agent to WhatsApp Business so it answers customer messages automatically.

Prerequisites

  • A Resposai paid plan (Growth or Studio).
  • A Meta Business account.
  • A WhatsApp Business phone number (or a test number from the Meta Developer Console).

Step 1 — Enable WhatsApp on your agent

Open the agent’s Configure tab. Under Channels, toggle WhatsApp enabled on. Save.

Step 2 — Get your webhook URL

Open the Deploy tab. Under WhatsApp, copy the webhook URL — it looks like:

https://resposai.com/api/whatsapp/YOUR_TOKEN

Step 3 — Configure Meta webhook

  1. In the Meta Developer Console, open your app and go to WhatsApp → Configuration.
  2. Under Webhook, click Edit. Paste your Resposai webhook URL.
  3. Set the Verify token to the same value as your WHATSAPP_VERIFY_TOKEN environment variable.
  4. Click Verify and Save.
  5. Subscribe to the messages webhook field.

Step 4 — Add environment variables

Set these in your hosting environment (e.g. Vercel dashboard):

WHATSAPP_PHONE_NUMBER_ID=your_number_id
WHATSAPP_ACCESS_TOKEN=your_permanent_token
WHATSAPP_VERIFY_TOKEN=any_random_string_you_choose

Step 5 — Test

Send a WhatsApp message to your business number. Resposai will receive it, generate a reply using your agent’s knowledge base, and send it back within a few seconds.


Replies are stored as conversations tagged whatsapp. You can read transcripts in the dashboard under Conversations.