Skip to content

Conversation Closed
Webhook

Request

Triggered when a Conversation closes in 3Chat. This event identifies the end of an active communication window and its transition to the closed state.

Prerequisites

Create a Webhook application in Open Platform → Webhook, configure its receiving URL, and subscribe to BUTLER_CONVERSATION_CLOSED.

Review Conversation Created or Conversation Updated first if you are not familiar with the Conversation lifecycle.

When is a Conversation closed?

  1. Automatic closure after inactivity. When neither the Contact nor the AI or human agent sends a message during the configured idle period, 3Chat closes the Conversation. If Smart Agent Re-Online is enabled, the AI agent becomes available for the next incoming Conversation. Configure this behavior under 3Chat Agent → General Settings, using Smart Agent Re-Online and Re-online wait time.
  2. Manual closure by a human agent. A human agent can close the active Conversation in the Inbox to finish the current communication window and return control to the AI agent.
Headers
TENANT_IDstringrequired

ID of the tenant associated with this event.

Example:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
STAFF_IDstring

ID of the staff member associated with the event, when applicable.

Example:123123
x-nct-timestringrequired

Timestamp when the event was generated.

Example:1750351569887
business-typestringrequired

Business type code for the Conversation Closed event.

Example:15003
Value:"15003"
Bodyapplication/jsonrequired

JSON payload delivered to the configured webhook URL.

requestIdstring, (uuid)required

Unique identifier for this webhook delivery.

Example:"f91692b3-f35c-4f3d-b398-e6f34491d3ce"
businessTypeintegerrequired

Business type code. The value is 15003 for Conversation Closed.

Example:15003
Value:15003
dataobject(ConversationWebhookData)required

The Conversation record included in the webhook event.

Example:
{ "summary": "The contact asked about the Xiaomi 15 experience and purchasing options. The AI gathered the contact’s priorities, escalated the Conversation to a human agent, and confirmed the contact details for follow-up.", "convStatus": 3, "updatedTime": 1765466070910, "completedTime": 1765466070908, "replyStrategy": 2, "solved": false, "sessionId": { "id": "mz43k5my686kjsfkfpzqkup6", "viewKey": "butlerSession" }, "lookup_3g71fgh5f5": "Zhang San", "dataId": "uu5cha880vvk8tbw6e4hmv0i", "userAccountId": "2ce63138-344c-40fe-976b-8f19d3d3d2fa", "extendMap": {}, "createdTime": 1765465932005, "lookup_h70b811f83": 102, "id": "1448693862208901600", "visitorId": { "id": "ailfxvj0qyhbyy5vryljrz4k", "viewKey": "butlerVisitor" } }
Payload
{ "requestId": "f91692b3-f35c-4f3d-b398-e6f34491d3ce", "businessType": 15003, "data": { "summary": "The contact asked about the Xiaomi 15 experience and purchasing options. The AI gathered the contact’s priorities, escalated the Conversation to a human agent, and confirmed the contact details for follow-up.", "convStatus": 3, "updatedTime": 1765466070910, "completedTime": 1765466070908, "replyStrategy": 2, "solved": false, "sessionId": { … }, "lookup_3g71fgh5f5": "Zhang San", "dataId": "uu5cha880vvk8tbw6e4hmv0i", "userAccountId": "2ce63138-344c-40fe-976b-8f19d3d3d2fa", "extendMap": {}, "createdTime": 1765465932005, "lookup_h70b811f83": 102, "id": "1448693862208901600", "visitorId": { … } } }

Responses

Webhook event received successfully.