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.
Create a Webhook application in Open Platform → Webhook, configure its receiving URL, and subscribe to BUTLER_MESSAGE_CREATED.
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.
JSON payload delivered to the configured webhook URL.
Unique identifier for this webhook delivery.
Business type code. The value is 15016 for Message Created.
The message created in 3Chat.
{ "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 }
- Mock serverhttps://threechatai.redocly.app/_mock/apis/3chat-webhooks/BUTLER_MESSAGE_CREATED
{ "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 } }