Skip to content

Conversation Created
Webhook

Request

Triggered when a Conversation is created in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer.

Prerequisites

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

When is this event triggered?

What is a Conversation?

A Conversation is a continuous, time-bounded exchange of messages between a channel-bound account, such as Live Chat, a Facebook Page, or an Instagram account, and a Contact. It contains the messages exchanged during that active communication window.

Relationship between Dialog and Conversation

A Dialog represents the long-term relationship between a channel account and a Contact. A Conversation belongs to a Dialog and manages messages within a shorter, activity-based window.

Creation timing

A channel must be connected first. When either side sends the first message, 3Chat creates a Dialog if one does not already exist and creates the first Conversation at the same time.

Lifecycle

A Conversation closes automatically after a configured period of inactivity. After it closes, a new message from either side creates a new Conversation under the existing Dialog.

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 Created event.

Example:15000
Value:"15000"
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 15000 for Conversation Created.

Example:15000
Value:15000
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": 15000, "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.