Receive
Human handover
AI agents should assist a business's own service, not replace the people behind it. When a person from the business answers a contact, your agent needs to step back. Braidport tells you exactly when that happens.
On this page
The signal: message.sent#
Every outbound message on a channel produces a message.sent event, whoever sent it. Its source says where it came from:
| source | Meaning |
|---|---|
api | Sent through the Braidport API. |
business_app | Sent from the WhatsApp Business app on the client's phone (coexistence). |
page_inbox | Sent from the Facebook Page or Instagram inbox. |
other | Sent by a person from the Braidport dashboard Console, or from anywhere else the provider reports. |
The rule is one line: pause your agent for a conversation when a message.sent arrives with a source other than api.
{ "id": "evt_5syjr0x9a1xe4sfcyptkat45mmss78g2kmj1754se9jt38jtxz30", "type": "message.sent", "api_version": "2026-11-01", "created_at": "2026-11-10T19:24:12.002Z", "test": false, "workspace_id": "ws_01m74e503kmb73kwncxpsgwymm", "channel": { "id": "ch_01m74e503qm4cft8xvtq85g98s", "provider": "whatsapp", "external_account_id": "106540352242922", "display_name": "+39 340 123 4567" }, "data": { "message": { "provider_message_id": "wamid.HBgMMzkzNDAxMjM0NTY3FQIAERgSQjE", "conversation_id": "cnv_djF8Y2hfMDFtNzRlNTAzcW00Y2Z0OHh2dHE4NWc5OHN8SVQuMTM0OTEyMDg2NTUzMDI3NDE5MTh8", "direction": "outbound", "source": "business_app", "client_reference": null, "timestamp": "2026-11-10T19:24:11.000Z", "from": { "id": "106540352242922", "name": null, "username": null, "phone": "+393401234567" }, "type": "text", "text": "Hi Mario, this is Giulia from the front desk. Tuesday at 10:00 works.", "attachments": [], "audio_url": null, "interactive_reply": null, "location": null, "contacts": null, "reaction": null, "share": null, "reply_to": null, "referral": null, "identity_change": null } }}The provider's copy of your own API sends is suppressed, so your agent's messages never look like a human's.
Pausing the agent#
Keep a pause per conversation_id. How long a pause lasts, and whether a keyword from the contact resumes the agent, is your product decision:
const PAUSE_MS = 30 * 60 * 1000; // your choice: how long a human keeps the conversationconst pausedUntil = new Map(); // conversation_id → timestamp; use shared storage in production export async function onEvent(event) { if (event.type === "message.sent" && event.data.message.source !== "api") { // A person answered from the WhatsApp Business app, the Page or Instagram inbox, … pausedUntil.set(event.data.message.conversation_id, Date.now() + PAUSE_MS); return; } if (event.type === "message.received") { const { conversation_id } = event.data.message; if ((pausedUntil.get(conversation_id) ?? 0) > Date.now()) return; // a human is handling it await runAgent(event); }}Store the pause where every worker can see it (your database or Redis), and keep the de-duplication on event ids described in Webhooks.
Escalating to a person#
The reverse direction matters as much: a contact must always be able to reach a human. Our acceptable use policy requires a human escalation path for every automated conversation.
- Detect requests for a person (or low confidence) in your agent and notify the business through your own channel: e-mail, Slack, a ticket.
- The person can answer from the app they already use (the WhatsApp Business app, the Page or Instagram inbox), or from the workspace's Console in the Braidport dashboard, which shows live events and sends a reply in the same conversation.
- Tell the contact that a person will follow up, and stop the agent from answering in the meantime.