AI Agent Resumed Event
Documentation for the conversation.bot_enabled webhook event
The conversation.bot_enabled event is fired when the AI agent is switched back on for a conversation. From that moment the AI is answering the customer again.
Event Type
conversation.bot_enabledWhen It's Triggered
- A team member flips the AI toggle back on in the inbox
- Your own system calls the AI Agent Control API
- A customer's backend calls the Mobile Chat API
- A ticket is closed, or auto-closes, and the AI resumes with it
The event is sent once per change. Switching the AI on when it is already on sends nothing.
Use this event to:
- Close or resolve the ticket your system opened on
conversation.bot_disabled - Stop routing that customer's replies to a human agent
- Close out a time-to-resolution measurement
Subscribing to This Event
Open Settings → Webhooks and check AI Agent Resumed in the events list. Only webhooks with conversation.bot_enabled selected receive these requests.
Webhook Payload Structure
{
"event": "conversation.bot_enabled",
"timestamp": "2026-09-10T11:02:47.910Z",
"data": {
"eventId": "b83d51c7-90a2-4e15-8f6c-1c04ab77e2d9",
"conversationId": "conv_abc123",
"platform": "MESSENGER",
"channelId": "104857362918273",
"platformUserId": "7430219856123047",
"customerName": "John Doe",
"botEnabled": true,
"reason": null,
"actor": {
"source": "ticket_close",
"memberId": null,
"apiKeyId": null,
"orgApiKeyId": null,
"label": null
},
"ticketId": "ticket_xyz789",
"threadOwnerAppId": null,
"inboxUrl": "https://<your-domain>/app/inbox/all/conv_abc123",
"at": "2026-09-10T11:02:47.744Z"
}
}Field Descriptions
The data object is the same shape as the AI Agent Stopped Event. Three fields differ:
| Field | Value on this event |
|---|---|
event | Always "conversation.bot_enabled" |
botEnabled | Always true |
reason | Always null — a reason is only recorded when the AI is switched off |
Enum Values
Actor Sources
| Source | Who it was |
|---|---|
manual | A team member flipped the toggle in the inbox |
org_api | Your own system, via the AI Agent Control API |
agent_api | A customer's backend, via the Mobile Chat API |
ticket_close | A ticket was closed and the AI resumed with it |
auto_close | A ticket auto-closed and the AI resumed with it |
ticket_close and auto_close appear only on this event. workflow appears only on the stop event — a workflow hands a conversation to a person, it does not take it back.
Platforms
WEB, FACEBOOK, INSTAGRAM, MESSENGER, WHATSAPP, MOBILE, VOICE
Example Handler
app.post('/webhooks/conversations', (req, res) => {
const { event, data } = req.body;
res.status(200).end(); // answer within 30 seconds, then do the work
if (event === 'conversation.bot_enabled') {
// Your own API calls come back to you as events too — skip them.
if (data.actor.orgApiKeyId === process.env.OUR_API_KEY_ID) return;
if (alreadyHandled(data.eventId)) return;
// A ticket closing on our side is the usual cause; resolve yours to match.
resolveTicket({
externalId: data.conversationId,
resumedBy: data.actor.source,
resumedAt: data.at,
});
}
});Pairing the Two Events
conversation.bot_disabled and conversation.bot_enabled bracket a human handover. A typical cycle:
- A customer asks for a person. A workflow switches the AI off, and you receive
conversation.bot_disabledwithactor.source: "workflow". - Your helpdesk opens a ticket for
data.channelId+data.platformUserId, and your team replies from your tool. - When the issue is solved, your system calls the AI Agent Control API with
{ "enabled": true }. - You receive
conversation.bot_enabledwithactor.orgApiKeyIdequal to your key's id — your own change, so you skip it.
Match the two events on data.conversationId. Do not assume they alternate strictly: a conversation can be handed over and returned several times, and either event can arrive first if your endpoint was down for one of them.
Idempotency
A resent delivery carries the same data.eventId and a new timestamp. Deduplicate on data.eventId.
Verifying the Signature
Every delivery carries an X-Webhook-Signature header: the hex HMAC-SHA256 of the raw request body. See webhook security for the full check, and the AI Agent Control API for a worked example.
Next Steps
- AI Agent Stopped Event — the matching off event
- AI Agent Control API — switch the AI off and on from your own system
- Getting Started Guide