Skip to content

Message Created
Webhook

Request

Triggered whenever a new message is created in 3Chat. Every inbound or outbound message recorded by 3Chat emits this event, including messages sent by a Contact, a human agent, the 3Chat AI agent, or the system.

Prerequisites

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

What does the event contain?

The payload identifies the sender, channel, Dialog, and Conversation; includes the message content, timestamps, attachments, and email metadata when applicable; and may include AI-agent execution logs for messages processed by an 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 Message Created event.

Example:15016
Value:"15016"
Bodyapplication/jsonrequired

JSON payload delivered to the configured webhook URL.

requestIdstring, (uuid)required

Unique identifier for this webhook delivery.

Example:"ec7ca9e0-9800-43e5-b433-68f979e7ef5c"
businessTypeintegerrequired

Business type code. The value is 15016 for Message Created.

Example:15016
Value:15016
dataobject(MessageWebhookData)required

The message created in 3Chat.

Example:
{ "id": "51901704862228480", "dataId": "7g0rzhgjp0a3xqpdd", "senderId": "51901681609007100", "workSpaceId": "a4872870-3cde-47f2-830f-a5f07801790b", "senderType": 1, "sendTime": 1770489117, "content": "Tell me about your services.", "channelId": { "id": "d56sxkazsuqdqz0d5u", "viewKey": "butlerChannel" }, "conversationId": { "id": "aqxqpddc36lyaeysxhhuekih", "viewKey": "butlerConversation" }, "sessionId": { "id": "kiaa9exjdwdcnzrzqgjp0a32", "viewKey": "butlerSession" }, "isEffectiveReply": true, "email": { "from": "sender@example.com", "fromName": "Example Contact", "to": [ … ], "cc": [], "bcc": [], "subject": "Product inquiry" }, "attachments": [ { … } ], "agentLogs": [ { … } ], "createdTime": 1770489117249, "updatedTime": 1770489117249, "thirdId": "external_message_id", "replyMessageId": "reply_message_id", "processedBy": 2 }
Payload
{ "requestId": "ec7ca9e0-9800-43e5-b433-68f979e7ef5c", "businessType": 15016, "data": { "id": "51901704862228480", "dataId": "7g0rzhgjp0a3xqpdd", "senderId": "51901681609007100", "workSpaceId": "a4872870-3cde-47f2-830f-a5f07801790b", "senderType": 1, "sendTime": 1770489117, "content": "Tell me about your services.", "channelId": { … }, "conversationId": { … }, "sessionId": { … }, "isEffectiveReply": true, "email": { … }, "attachments": [ … ], "agentLogs": [ … ], "createdTime": 1770489117249, "updatedTime": 1770489117249, "thirdId": "external_message_id", "replyMessageId": "reply_message_id", "processedBy": 2 } }

Responses

Webhook event received successfully.