Skip to content

agent_replied_*

The agent_replied_* events notify your webhook endpoint whenever a reply is sent to a customer in an active WhatsApp conversation. Each event is delivered as a flat JSON object (not wrapped in a Meta whatsapp_business_account envelope). You can subscribe to each of the three events independently on the Webhooks page in cpaas.id:

  • agent_replied_portal — An agent sends a non-private reply from the Portal Inbox (BSP_PORTAL).
  • agent_replied_api — A message is sent via API on an inbox conversation (POST /v1/conversations/{id}/messages or POST /v1/{phone_number_id}/messages with processing_strategy: "inbox"), with interaction_source: "WABA_API".
  • agent_replied_native — A user replies directly from the WhatsApp Business App on a Coexistence number (WA_NATIVE_APP).
POST {your_webhook_url}
{
"event": "agent_replied_portal",
"timestamp": "2026-11-16T08:00:00+00:00",
"message_id": "msg_01933c8a-7f2b-7d10-8a31-91b2c3d4e5f6",
"conversation_id": "7f6e5d4c-3b2a-1908-8765-4321fedcba98",
"channel_type": "whatsapp",
"to": "6281234567890",
"interaction_source": "BSP_PORTAL",
"agent_id": "2c8d4a10-5e1b-4c3a-9f00-112233445566",
"team_id": "8a9b0c1d-2e3f-4a5b-8c9d-0e1f2a3b4c5d",
"message": {
"type": "text",
"text": "Halo, pesanan Anda sedang kami proses."
}
}

On agent_replied_native, the payload additionally includes provider_message_id:

POST {your_webhook_url}
{
"event": "agent_replied_native",
"timestamp": "2026-11-16T08:05:00+00:00",
"message_id": "msg_01933c8f-1a2b-7d10-8a31-91b2c3d4e5f7",
"provider_message_id": "wamid.HBgNNjI4MTIzNDU2Nzg5MBUCABIYFDNBQzA1RjBGMkI3RDEwOEEzMTkxAA==",
"conversation_id": "7f6e5d4c-3b2a-1908-8765-4321fedcba98",
"channel_type": "whatsapp",
"to": "6281234567890",
"interaction_source": "WA_NATIVE_APP",
"agent_id": null,
"team_id": "8a9b0c1d-2e3f-4a5b-8c9d-0e1f2a3b4c5d",
"message": {
"type": "text",
"text": "Baik, kami bantu cek sekarang."
}
}
FieldTypeDescription
eventstring"agent_replied_portal", "agent_replied_api", or "agent_replied_native"
timestampstringEvent timestamp in RFC 3339 format (e.g. "2026-11-16T08:00:00+00:00")
message_idstringPlatform message ID (msg_<uuid>)
provider_message_idstringMeta WhatsApp message ID (wamid....). Present only on agent_replied_native; omitted on agent_replied_portal and agent_replied_api
conversation_idstringInbox conversation UUID
channel_typestringChannel type (e.g. "whatsapp")
tostring | nullRecipient customer phone number, or null if unavailable
interaction_sourcestring"BSP_PORTAL", "WABA_API", or "WA_NATIVE_APP"
agent_idstring | nullUUID of the sending agent (null for agent_replied_api, or for agent_replied_native when the handset is not linked to a portal user)
team_idstring | nullUUID of the inbox team assigned to the conversation (null if unassigned)
messageobjectThe stored message content object, same shape as the inbox message content

When event is agent_replied_api and the reply was sent with POST /v1/{phone_number_id}/messages and processing_strategy: "inbox", message is the stored send request body (messaging_product, to, type and the template / text / … object), not the { type, text } shape shown above.

EventTriggerinteraction_source
agent_replied_portalAn agent sends a text, media, or template reply from the Portal Inbox (excluding internal is_private notes)."BSP_PORTAL"
agent_replied_apiYour integration calls POST /v1/conversations/{id}/messages or POST /v1/{phone_number_id}/messages with "processing_strategy": "inbox"."WABA_API"
agent_replied_nativeSomeone replies from the WhatsApp Business App on a Coexistence number (received via smb_message_echoes)."WA_NATIVE_APP"
  • Meta does not distinguish between the WhatsApp Business mobile app and a linked WhatsApp Web/Desktop session; both are reported as WA_NATIVE_APP.
  • On agent_replied_native, agent_id is populated only when the Coexistence handset is mapped to a portal user; otherwise it is null.
  • On agent_replied_api, agent_id is always null because the message was sent using an API key.