{"items":[{"type":"link","label":"3Chat Webhook Event Reference","link":"/apis/3chat-webhooks","routeSlug":"/apis/3chat-webhooks","content":{"contentType":"overview","meta":{"name":"3Chat Webhook Event Reference"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"3chat-webhooks.json","url":"/_bundle/apis/3chat-webhooks.json?download"},{"kind":"download","label":"3chat-webhooks.yaml","url":"/_bundle/apis/3chat-webhooks.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"3Chat Webhook Event Reference (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"Structured reference for outbound webhook events sent by 3Chat to developer-configured HTTPS endpoints."}],"sectionId":"/apis/3chat-webhooks"}],"sectionId":"/apis/3chat-webhooks"}]}]}},{"type":"group","label":"Dialog Events","link":"/apis/3chat-webhooks/dialogevents","routeSlug":"/apis/3chat-webhooks/dialogevents","items":[{"label":"Dialog Created","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/dialogevents/onbutlerdialogcreated","routeSlug":"/apis/3chat-webhooks/dialogevents/onbutlerdialogcreated","metadata":{"seo":{"title":"Dialog Created","description":"Sent when a new dialog is created in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer in 3Chat Open Platform. Subscribe to BUTLER_DIALOG_CREATED to receive it."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerDialogCreated","name":"Dialog Created","isWebhook":true,"pointer":"/paths/BUTLER_DIALOG_CREATED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Dialog Created","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sent when a new dialog is created in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer in 3Chat Open Platform. Subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_DIALOG_CREATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to receive it."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_112","description":"Business type code for the Dialog Created event.","required":true,"example":"15013"}],"pointer":"/paths/BUTLER_DIALOG_CREATED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_113","exampleIds":["paths/BUTLER_DIALOG_CREATED/post/requestBody/content/application~1json/examples/dialogCreated"]}},"schemaId":"schema_113","exampleIds":["paths/BUTLER_DIALOG_CREATED/post/requestBody/content/application~1json/examples/dialogCreated"],"pointer":"/paths/BUTLER_DIALOG_CREATED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_DIALOG_CREATED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15013","schemaId":"schema_112"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"schema_113","exampleIds":["paths/BUTLER_DIALOG_CREATED/post/requestBody/content/application~1json/examples/dialogCreated"]}},"responseCodes":["200","204"],"pointer":"BUTLER_DIALOG_CREATED","href":"dialogevents/onbutlerdialogcreated","openApiOperationId":"onButlerDialogCreated","summary":"Dialog Created"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"schema_113","exampleIds":["paths/BUTLER_DIALOG_CREATED/post/requestBody/content/application~1json/examples/dialogCreated"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_113","exampleIds":["paths/BUTLER_DIALOG_CREATED/post/requestBody/content/application~1json/examples/dialogCreated"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_DIALOG_CREATED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/dialogevents/onbutlerdialogcreated"}],"panels":[]}]},"httpPath":"BUTLER_DIALOG_CREATED"}],"content":{"contentType":"group","meta":{"name":"Dialog/Events"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Dialog Events","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"BUTLER_DIALOG_CREATED","summary":"Dialog Created","prefix":{"name":"post","color":"post"},"badges":[],"link":"/dialogevents/onbutlerdialogcreated","deprecated":false}]}]}]}]}},{"type":"group","label":"Contact Events","link":"/apis/3chat-webhooks/visitorevents","routeSlug":"/apis/3chat-webhooks/visitorevents","items":[{"label":"Contact Created","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/visitorevents/onbutlervisitorcreated","routeSlug":"/apis/3chat-webhooks/visitorevents/onbutlervisitorcreated","metadata":{"seo":{"title":"Contact Created","description":"Sent when 3Chat creates a new contact. A contact can be created in any of these situations:"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerVisitorCreated","name":"Contact Created","isWebhook":true,"pointer":"/paths/BUTLER_VISITOR_CREATED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Contact Created","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sent when 3Chat creates a new contact. A contact can be created in any of these situations:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A developer calls the Agent API operation "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Send Message to Agent"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a person who does not yet have a contact record."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A developer calls the Channel API operation "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Send Message"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for a person who does not yet have a contact record."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"After a channel is connected to 3Chat, a previously unknown person sends their first inbound message through that channel."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer in 3Chat Open Platform. Subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_VISITOR_CREATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to receive it."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_114","description":"Business type code for the Contact Created event.","required":true,"example":"15009"}],"pointer":"/paths/BUTLER_VISITOR_CREATED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ContactCreatedWebhookEvent"}},"schemaId":"components/schemas/ContactCreatedWebhookEvent","pointer":"/paths/BUTLER_VISITOR_CREATED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_VISITOR_CREATED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15009","schemaId":"schema_114"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ContactCreatedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_VISITOR_CREATED","href":"visitorevents/onbutlervisitorcreated","openApiOperationId":"onButlerVisitorCreated","summary":"Contact Created"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ContactCreatedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ContactCreatedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_VISITOR_CREATED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/visitorevents/onbutlervisitorcreated"}],"panels":[]}]},"httpPath":"BUTLER_VISITOR_CREATED"},{"label":"Contact Updated","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/visitorevents/onbutlervisitorupdated","routeSlug":"/apis/3chat-webhooks/visitorevents/onbutlervisitorupdated","metadata":{"seo":{"title":"Contact Updated","description":"Sent when a contact's profile or associated contact data is updated in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer in 3Chat Open Platform. Subscribe to BUTLER_VISITOR_UPDATED to receive it."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerVisitorUpdated","name":"Contact Updated","isWebhook":true,"pointer":"/paths/BUTLER_VISITOR_UPDATED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Contact Updated","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sent when a contact's profile or associated contact data is updated in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer in 3Chat Open Platform. Subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_VISITOR_UPDATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to receive it."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_115","description":"Business type code for the Contact Updated event.","required":true,"example":"15010"}],"pointer":"/paths/BUTLER_VISITOR_UPDATED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ContactUpdatedWebhookEvent"}},"schemaId":"components/schemas/ContactUpdatedWebhookEvent","pointer":"/paths/BUTLER_VISITOR_UPDATED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_VISITOR_UPDATED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15010","schemaId":"schema_115"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ContactUpdatedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_VISITOR_UPDATED","href":"visitorevents/onbutlervisitorupdated","openApiOperationId":"onButlerVisitorUpdated","summary":"Contact Updated"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ContactUpdatedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ContactUpdatedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_VISITOR_UPDATED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/visitorevents/onbutlervisitorupdated"}],"panels":[]}]},"httpPath":"BUTLER_VISITOR_UPDATED"}],"content":{"contentType":"group","meta":{"name":"Visitor/Events"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Contact Events","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"BUTLER_VISITOR_CREATED","summary":"Contact Created","prefix":{"name":"post","color":"post"},"badges":[],"link":"/visitorevents/onbutlervisitorcreated","deprecated":false},{"title":"BUTLER_VISITOR_UPDATED","summary":"Contact Updated","prefix":{"name":"post","color":"post"},"badges":[],"link":"/visitorevents/onbutlervisitorupdated","deprecated":false}]}]}]}]}},{"type":"group","label":"Conversation Events","link":"/apis/3chat-webhooks/conversationevents","routeSlug":"/apis/3chat-webhooks/conversationevents","items":[{"label":"Conversation Created","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/conversationevents/onbutlerconversationcreated","routeSlug":"/apis/3chat-webhooks/conversationevents/onbutlerconversationcreated","metadata":{"seo":{"title":"Conversation Created","description":"Triggered when a Conversation is created in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerConversationCreated","name":"Conversation Created","isWebhook":true,"pointer":"/paths/BUTLER_CONVERSATION_CREATED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Conversation Created","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Triggered when a Conversation is created in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationcreated/request/prerequisites","deepLinkHash":"/conversationevents/onbutlerconversationcreated#conversationevents/onbutlerconversationcreated/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_CONVERSATION_CREATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationcreated/request/when-is-this-event-triggered","deepLinkHash":"/conversationevents/onbutlerconversationcreated#conversationevents/onbutlerconversationcreated/request/when-is-this-event-triggered"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When is this event triggered?"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"conversationevents/onbutlerconversationcreated/request/what-is-a-conversation","deepLinkHash":"/conversationevents/onbutlerconversationcreated#conversationevents/onbutlerconversationcreated/request/what-is-a-conversation"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"What is a Conversation?"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"conversationevents/onbutlerconversationcreated/request/relationship-between-dialog-and-conversation","deepLinkHash":"/conversationevents/onbutlerconversationcreated#conversationevents/onbutlerconversationcreated/request/relationship-between-dialog-and-conversation"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Relationship between Dialog and Conversation"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"conversationevents/onbutlerconversationcreated/request/creation-timing","deepLinkHash":"/conversationevents/onbutlerconversationcreated#conversationevents/onbutlerconversationcreated/request/creation-timing"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Creation timing"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"conversationevents/onbutlerconversationcreated/request/lifecycle","deepLinkHash":"/conversationevents/onbutlerconversationcreated#conversationevents/onbutlerconversationcreated/request/lifecycle"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lifecycle"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_116","description":"Business type code for the Conversation Created event.","required":true,"example":"15000"}],"pointer":"/paths/BUTLER_CONVERSATION_CREATED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationCreatedWebhookEvent"}},"schemaId":"components/schemas/ConversationCreatedWebhookEvent","pointer":"/paths/BUTLER_CONVERSATION_CREATED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_CONVERSATION_CREATED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15000","schemaId":"schema_116"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ConversationCreatedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_CONVERSATION_CREATED","href":"conversationevents/onbutlerconversationcreated","openApiOperationId":"onButlerConversationCreated","summary":"Conversation Created"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ConversationCreatedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationCreatedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_CONVERSATION_CREATED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationevents/onbutlerconversationcreated"}],"panels":[]}]},"httpPath":"BUTLER_CONVERSATION_CREATED"},{"label":"Conversation Updated","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/conversationevents/onbutlerconversationupdated","routeSlug":"/apis/3chat-webhooks/conversationevents/onbutlerconversationupdated","metadata":{"seo":{"title":"Conversation Updated","description":"Triggered when key attributes of a Conversation change in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerConversationUpdated","name":"Conversation Updated","isWebhook":true,"pointer":"/paths/BUTLER_CONVERSATION_UPDATE/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Conversation Updated","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Triggered when key attributes of a Conversation change in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationupdated/request/prerequisites","deepLinkHash":"/conversationevents/onbutlerconversationupdated#conversationevents/onbutlerconversationupdated/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_CONVERSATION_UPDATE"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationupdated/request/understanding-the-conversation-entity","deepLinkHash":"/conversationevents/onbutlerconversationupdated#conversationevents/onbutlerconversationupdated/request/understanding-the-conversation-entity"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Understanding the Conversation entity"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A Conversation is a time-bounded communication window between a channel-bound account and a Contact. It belongs to a Dialog, which represents the long-term relationship between them. A Conversation contains messages exchanged during one active period, closes after inactivity, and is replaced by a new Conversation when either side sends another message."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationupdated/request/when-is-this-event-triggered","deepLinkHash":"/conversationevents/onbutlerconversationupdated#conversationevents/onbutlerconversationupdated/request/when-is-this-event-triggered"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When is this event triggered?"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The event is emitted when important Conversation attributes change, including these situations:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"AI Skills update Conversation fields."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" AI Skills classify, tag, enrich, or otherwise update custom fields associated with the Conversation."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The Conversation is escalated to a human agent."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The Contact requests human assistance, a human agent takes over in the Inbox, or an external system calls the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Escalate to Human"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" OpenAPI operation."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The Conversation closes automatically."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" Both sides remain inactive for the configured period, and the latest status and timestamps are recorded."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Control is returned to the AI agent."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" After a human agent resolves the issue, an Inbox user manually restores AI handling and the reply strategy changes."},"children":[]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_117","description":"Business type code for the Conversation Updated event.","required":true,"example":"15001"}],"pointer":"/paths/BUTLER_CONVERSATION_UPDATE/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationUpdatedWebhookEvent"}},"schemaId":"components/schemas/ConversationUpdatedWebhookEvent","pointer":"/paths/BUTLER_CONVERSATION_UPDATE/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_CONVERSATION_UPDATE","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15001","schemaId":"schema_117"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ConversationUpdatedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_CONVERSATION_UPDATE","href":"conversationevents/onbutlerconversationupdated","openApiOperationId":"onButlerConversationUpdated","summary":"Conversation Updated"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ConversationUpdatedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationUpdatedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_CONVERSATION_UPDATE/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationevents/onbutlerconversationupdated"}],"panels":[]}]},"httpPath":"BUTLER_CONVERSATION_UPDATE"},{"label":"Contact Rejoined Conversation","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/conversationevents/onbutlerconversationreturnjoined","routeSlug":"/apis/3chat-webhooks/conversationevents/onbutlerconversationreturnjoined","metadata":{"seo":{"title":"Contact Rejoined Conversation","description":"Triggered when an existing Contact starts another Conversation under the same Dialog. This event identifies subsequent inquiries rather than the Contact's first interaction."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerConversationReturnJoined","name":"Contact Rejoined Conversation","isWebhook":true,"pointer":"/paths/BUTLER_CONVERSATION_RETURN_JOINED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Contact Rejoined Conversation","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Triggered when an existing Contact starts another Conversation under the same Dialog. This event identifies subsequent inquiries rather than the Contact's first interaction."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationreturnjoined/request/prerequisites","deepLinkHash":"/conversationevents/onbutlerconversationreturnjoined#conversationevents/onbutlerconversationreturnjoined/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_CONVERSATION_RETURN_JOINED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Review "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Conversation Created"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Conversation Updated"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" first if you are not familiar with the Conversation lifecycle."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationreturnjoined/request/what-does-\"contact-rejoined-conversation\"-mean","deepLinkHash":"/conversationevents/onbutlerconversationreturnjoined#conversationevents/onbutlerconversationreturnjoined/request/what-does-\"contact-rejoined-conversation\"-mean"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"What does “Contact Rejoined Conversation” mean?"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This event is emitted for the second and every later Conversation under an existing Dialog ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"N ≥ 2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"). It is not emitted for the first Conversation."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The typical sequence is:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"At least one previous Conversation exists and has closed because of inactivity or completion."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The same Contact sends a new message."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"3Chat creates a new Conversation under the existing Dialog."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This event is delivered to indicate that the Contact has started another active communication window."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To detect a Contact's first inquiry, subscribe to "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Contact Created"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dialog Created"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" instead."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_118","description":"Business type code for the Contact Rejoined Conversation event.","required":true,"example":"15006"}],"pointer":"/paths/BUTLER_CONVERSATION_RETURN_JOINED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ContactRejoinedConversationWebhookEvent"}},"schemaId":"components/schemas/ContactRejoinedConversationWebhookEvent","pointer":"/paths/BUTLER_CONVERSATION_RETURN_JOINED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_CONVERSATION_RETURN_JOINED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15006","schemaId":"schema_118"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ContactRejoinedConversationWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_CONVERSATION_RETURN_JOINED","href":"conversationevents/onbutlerconversationreturnjoined","openApiOperationId":"onButlerConversationReturnJoined","summary":"Contact Rejoined Conversation"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ContactRejoinedConversationWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ContactRejoinedConversationWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_CONVERSATION_RETURN_JOINED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationevents/onbutlerconversationreturnjoined"}],"panels":[]}]},"httpPath":"BUTLER_CONVERSATION_RETURN_JOINED"},{"label":"Conversation Routed to Human","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/conversationevents/onbutlerconversationroutedtoperson","routeSlug":"/apis/3chat-webhooks/conversationevents/onbutlerconversationroutedtoperson","metadata":{"seo":{"title":"Conversation Routed to Human","description":"Triggered when a Conversation moves from AI handling to human handling in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerConversationRoutedToPerson","name":"Conversation Routed to Human","isWebhook":true,"pointer":"/paths/BUTLER_CONVERSATION_ROUTED_TO_PERSON/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Conversation Routed to Human","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Triggered when a Conversation moves from AI handling to human handling in 3Chat. 3Chat delivers this outbound event to the HTTPS webhook URL configured by the developer."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationroutedtoperson/request/prerequisites","deepLinkHash":"/conversationevents/onbutlerconversationroutedtoperson#conversationevents/onbutlerconversationroutedtoperson/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_CONVERSATION_ROUTED_TO_PERSON"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Review "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Conversation Created"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Conversation Updated"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" first if you are not familiar with the Conversation lifecycle."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationroutedtoperson/request/when-is-this-event-triggered","deepLinkHash":"/conversationevents/onbutlerconversationroutedtoperson#conversationevents/onbutlerconversationroutedtoperson/request/when-is-this-event-triggered"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When is this event triggered?"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Common escalation scenarios include:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The Contact requests human assistance."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The AI recognizes an escalation request, based on the intent rules configured in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Guidance"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and routes the Conversation to a human agent."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A third-party system escalates the Conversation."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" The system calls the "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Escalate to Human"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" OpenAPI operation."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"After escalation, the AI stops replying, the Conversation enters human-handled mode, and this event notifies subscribed systems of the transition."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_119","description":"Business type code for the Conversation Routed to Human event.","required":true,"example":"15002"}],"pointer":"/paths/BUTLER_CONVERSATION_ROUTED_TO_PERSON/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationRoutedToHumanWebhookEvent"}},"schemaId":"components/schemas/ConversationRoutedToHumanWebhookEvent","pointer":"/paths/BUTLER_CONVERSATION_ROUTED_TO_PERSON/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_CONVERSATION_ROUTED_TO_PERSON","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15002","schemaId":"schema_119"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ConversationRoutedToHumanWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_CONVERSATION_ROUTED_TO_PERSON","href":"conversationevents/onbutlerconversationroutedtoperson","openApiOperationId":"onButlerConversationRoutedToPerson","summary":"Conversation Routed to Human"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ConversationRoutedToHumanWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationRoutedToHumanWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_CONVERSATION_ROUTED_TO_PERSON/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationevents/onbutlerconversationroutedtoperson"}],"panels":[]}]},"httpPath":"BUTLER_CONVERSATION_ROUTED_TO_PERSON"},{"label":"Conversation Closed","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/conversationevents/onbutlerconversationclosed","routeSlug":"/apis/3chat-webhooks/conversationevents/onbutlerconversationclosed","metadata":{"seo":{"title":"Conversation Closed","description":"Triggered when a Conversation closes in 3Chat. This event identifies the end of an active communication window and its transition to the closed state."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerConversationClosed","name":"Conversation Closed","isWebhook":true,"pointer":"/paths/BUTLER_CONVERSATION_CLOSED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Conversation Closed","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Triggered when a Conversation closes in 3Chat. This event identifies the end of an active communication window and its transition to the closed state."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationclosed/request/prerequisites","deepLinkHash":"/conversationevents/onbutlerconversationclosed#conversationevents/onbutlerconversationclosed/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_CONVERSATION_CLOSED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Review "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Conversation Created"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Conversation Updated"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" first if you are not familiar with the Conversation lifecycle."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"conversationevents/onbutlerconversationclosed/request/when-is-a-conversation-closed","deepLinkHash":"/conversationevents/onbutlerconversationclosed#conversationevents/onbutlerconversationclosed/request/when-is-a-conversation-closed"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When is a Conversation closed?"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Automatic closure after inactivity."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" When neither the Contact nor the AI or human agent sends a message during the configured idle period, 3Chat closes the Conversation. If "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Smart Agent Re-Online"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is enabled, the AI agent becomes available for the next incoming Conversation. Configure this behavior under "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"3Chat Agent → General Settings"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", using "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Smart Agent Re-Online"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Re-online wait time"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Manual closure by a human agent."},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" A human agent can close the active Conversation in the Inbox to finish the current communication window and return control to the AI agent."},"children":[]}]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_120","description":"Business type code for the Conversation Closed event.","required":true,"example":"15003"}],"pointer":"/paths/BUTLER_CONVERSATION_CLOSED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationClosedWebhookEvent"}},"schemaId":"components/schemas/ConversationClosedWebhookEvent","pointer":"/paths/BUTLER_CONVERSATION_CLOSED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_CONVERSATION_CLOSED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15003","schemaId":"schema_120"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ConversationClosedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_CONVERSATION_CLOSED","href":"conversationevents/onbutlerconversationclosed","openApiOperationId":"onButlerConversationClosed","summary":"Conversation Closed"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ConversationClosedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationClosedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_CONVERSATION_CLOSED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationevents/onbutlerconversationclosed"}],"panels":[]}]},"httpPath":"BUTLER_CONVERSATION_CLOSED"}],"content":{"contentType":"group","meta":{"name":"Conversation/Events"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Conversation Events","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"BUTLER_CONVERSATION_CREATED","summary":"Conversation Created","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationevents/onbutlerconversationcreated","deprecated":false},{"title":"BUTLER_CONVERSATION_UPDATE","summary":"Conversation Updated","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationevents/onbutlerconversationupdated","deprecated":false},{"title":"BUTLER_CONVERSATION_RETURN_JOINED","summary":"Contact Rejoined Conversation","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationevents/onbutlerconversationreturnjoined","deprecated":false},{"title":"BUTLER_CONVERSATION_ROUTED_TO_PERSON","summary":"Conversation Routed to Human","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationevents/onbutlerconversationroutedtoperson","deprecated":false},{"title":"BUTLER_CONVERSATION_CLOSED","summary":"Conversation Closed","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationevents/onbutlerconversationclosed","deprecated":false}]}]}]}]}},{"type":"group","label":"Chat Group Events","link":"/apis/3chat-webhooks/chat-groupevents","routeSlug":"/apis/3chat-webhooks/chat-groupevents","items":[{"label":"Chat Group Created","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/chat-groupevents/onbutlergroupcreated","routeSlug":"/apis/3chat-webhooks/chat-groupevents/onbutlergroupcreated","metadata":{"seo":{"title":"Chat Group Created","description":"Triggered when 3Chat creates a chat group. A chat group describes a group or discussion group from a connected messaging channel. Every chat group has a corresponding group-type Dialog that contains its messages and Conversations."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerGroupCreated","name":"Chat Group Created","isWebhook":true,"pointer":"/paths/BUTLER_GROUP_CREATED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Chat Group Created","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Triggered when 3Chat creates a chat group. A chat group describes a group or discussion group from a connected messaging channel. Every chat group has a corresponding group-type Dialog that contains its messages and Conversations."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"chat-groupevents/onbutlergroupcreated/request/prerequisites","deepLinkHash":"/chat-groupevents/onbutlergroupcreated#chat-groupevents/onbutlergroupcreated/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_GROUP_CREATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"chat-groupevents/onbutlergroupcreated/request/when-is-this-event-triggered","deepLinkHash":"/chat-groupevents/onbutlergroupcreated#chat-groupevents/onbutlergroupcreated/request/when-is-this-event-triggered"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When is this event triggered?"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"3Chat creates the chat group when it receives the first message from a previously unknown third-party group chat. At the same time, 3Chat creates the corresponding group-type Dialog if it does not already exist. This event is then delivered to subscribed developer servers."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_121","description":"Business type code for the Chat Group Created event.","required":true,"example":"15036"}],"pointer":"/paths/BUTLER_GROUP_CREATED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ChatGroupCreatedWebhookEvent"}},"schemaId":"components/schemas/ChatGroupCreatedWebhookEvent","pointer":"/paths/BUTLER_GROUP_CREATED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_GROUP_CREATED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15036","schemaId":"schema_121"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ChatGroupCreatedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_GROUP_CREATED","href":"chat-groupevents/onbutlergroupcreated","openApiOperationId":"onButlerGroupCreated","summary":"Chat Group Created"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ChatGroupCreatedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ChatGroupCreatedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_GROUP_CREATED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/chat-groupevents/onbutlergroupcreated"}],"panels":[]}]},"httpPath":"BUTLER_GROUP_CREATED"},{"label":"Chat Group Updated","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/chat-groupevents/onbutlergroupupdated","routeSlug":"/apis/3chat-webhooks/chat-groupevents/onbutlergroupupdated","metadata":{"seo":{"title":"Chat Group Updated","description":"Triggered when information about an existing chat group changes in 3Chat. A chat group describes a group or discussion group from a connected messaging channel, and every chat group has a corresponding group-type Dialog."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerGroupUpdated","name":"Chat Group Updated","isWebhook":true,"pointer":"/paths/BUTLER_GROUP_UPDATED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Chat Group Updated","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Triggered when information about an existing chat group changes in 3Chat. A chat group describes a group or discussion group from a connected messaging channel, and every chat group has a corresponding group-type Dialog."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"chat-groupevents/onbutlergroupupdated/request/prerequisites","deepLinkHash":"/chat-groupevents/onbutlergroupupdated#chat-groupevents/onbutlergroupupdated/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_GROUP_UPDATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"chat-groupevents/onbutlergroupupdated/request/when-is-this-event-triggered","deepLinkHash":"/chat-groupevents/onbutlergroupupdated#chat-groupevents/onbutlergroupupdated/request/when-is-this-event-triggered"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When is this event triggered?"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The event is emitted when 3Chat updates chat-group information such as its name, avatar, external identifier, connected channel, or custom fields. The group-type Dialog remains the container for messages and Conversations associated with the group."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_122","description":"Business type code for the Chat Group Updated event.","required":true,"example":"15037"}],"pointer":"/paths/BUTLER_GROUP_UPDATED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ChatGroupUpdatedWebhookEvent"}},"schemaId":"components/schemas/ChatGroupUpdatedWebhookEvent","pointer":"/paths/BUTLER_GROUP_UPDATED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_GROUP_UPDATED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15037","schemaId":"schema_122"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/ChatGroupUpdatedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_GROUP_UPDATED","href":"chat-groupevents/onbutlergroupupdated","openApiOperationId":"onButlerGroupUpdated","summary":"Chat Group Updated"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/ChatGroupUpdatedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ChatGroupUpdatedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_GROUP_UPDATED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/chat-groupevents/onbutlergroupupdated"}],"panels":[]}]},"httpPath":"BUTLER_GROUP_UPDATED"}],"content":{"contentType":"group","meta":{"name":"Chat Group/Events"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Chat Group Events","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"BUTLER_GROUP_CREATED","summary":"Chat Group Created","prefix":{"name":"post","color":"post"},"badges":[],"link":"/chat-groupevents/onbutlergroupcreated","deprecated":false},{"title":"BUTLER_GROUP_UPDATED","summary":"Chat Group Updated","prefix":{"name":"post","color":"post"},"badges":[],"link":"/chat-groupevents/onbutlergroupupdated","deprecated":false}]}]}]}]}},{"type":"group","label":"Message Events","link":"/apis/3chat-webhooks/messageevents","routeSlug":"/apis/3chat-webhooks/messageevents","items":[{"label":"Message Created","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/3chat-webhooks/messageevents/onbutlermessagecreated","routeSlug":"/apis/3chat-webhooks/messageevents/onbutlermessagecreated","metadata":{"seo":{"title":"Message Created","description":"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."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onButlerMessageCreated","name":"Message Created","isWebhook":true,"pointer":"/paths/BUTLER_MESSAGE_CREATED/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Message Created","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"messageevents/onbutlermessagecreated/request/prerequisites","deepLinkHash":"/messageevents/onbutlermessagecreated#messageevents/onbutlermessagecreated/request/prerequisites"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Prerequisites"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a Webhook application in "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Open Platform → Webhook"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", configure its receiving URL, and subscribe to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"BUTLER_MESSAGE_CREATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"messageevents/onbutlermessagecreated/request/what-does-the-event-contain","deepLinkHash":"/messageevents/onbutlermessagecreated#messageevents/onbutlermessagecreated/request/what-does-the-event-contain"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"What does the event contain?"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"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."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"TENANT_ID","in":"header","schemaId":"schema_112","description":"ID of the tenant associated with this event.","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"},{"name":"STAFF_ID","in":"header","schemaId":"schema_112","description":"ID of the staff member associated with the event, when applicable.","example":"123123"},{"name":"x-nct-time","in":"header","schemaId":"schema_112","description":"Timestamp when the event was generated.","required":true,"example":"1750351569887"},{"name":"business-type","in":"header","schemaId":"schema_123","description":"Business type code for the Message Created event.","required":true,"example":"15016"}],"pointer":"/paths/BUTLER_MESSAGE_CREATED/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/MessageCreatedWebhookEvent"}},"schemaId":"components/schemas/MessageCreatedWebhookEvent","pointer":"/paths/BUTLER_MESSAGE_CREATED/post/requestBody","description":"JSON payload delivered to the configured webhook URL."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"BUTLER_MESSAGE_CREATED","servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"TENANT_ID","in":"header","required":true,"example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","schemaId":"schema_112"},{"name":"STAFF_ID","in":"header","required":false,"example":"123123","schemaId":"schema_112"},{"name":"x-nct-time","in":"header","required":true,"example":"1750351569887","schemaId":"schema_112"},{"name":"business-type","in":"header","required":true,"example":"15016","schemaId":"schema_123"}],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/MessageCreatedWebhookEvent"}},"responseCodes":["200","204"],"pointer":"BUTLER_MESSAGE_CREATED","href":"messageevents/onbutlermessagecreated","openApiOperationId":"onButlerMessageCreated","summary":"Message Created"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-webhooks","description":"Mock server","isMockServer":true}],"schemaId":"components/schemas/MessageCreatedWebhookEvent","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/MessageCreatedWebhookEvent"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Webhook event received successfully."},{"code":"204","description":"Webhook event received successfully; no response body."}],"pointer":"/paths/BUTLER_MESSAGE_CREATED/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/messageevents/onbutlermessagecreated"}],"panels":[]}]},"httpPath":"BUTLER_MESSAGE_CREATED"}],"content":{"contentType":"group","meta":{"name":"Message/Events"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Message Events","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"BUTLER_MESSAGE_CREATED","summary":"Message Created","prefix":{"name":"post","color":"post"},"badges":[],"link":"/messageevents/onbutlermessagecreated","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/butlervisitor_sort":{"id":"components/schemas/butlervisitor_sort","kind":"json-schema","title":"butlervisitor_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: totalVisits, updatedTime, lastVisitTime, createdTime, firstVisitTime"}}}},"components/schemas/butlersession":{"id":"components/schemas/butlersession","kind":"json-schema","title":"butlersession","data":{"type":"object","properties":{"updatedTime":{"type":"integer","description":"updatedTime, Unix timestamp in milliseconds.","format":"int64"},"workSpaceId":{"type":"string","description":"workSpaceId"},"createdTime":{"type":"integer","description":"createdTime, Unix timestamp in milliseconds.","format":"int64"},"visitorId":{"type":"string","description":"visitorId"}}}},"components/schemas/butlersession_sort":{"id":"components/schemas/butlersession_sort","kind":"json-schema","title":"butlersession_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, createdTime"}}}},"components/schemas/butlervisitor":{"id":"components/schemas/butlervisitor","kind":"json-schema","title":"butlervisitor","data":{"type":"object","properties":{"dataId":{"type":"string","description":"Visitor data ID"},"totalVisits":{"type":"number","description":"Total visits","format":"double"},"updatedTime":{"type":"integer","description":"Last updated time, Unix timestamp in milliseconds.","format":"int64"},"firstTouch":{"type":"string","description":"First-touch information"},"language":{"type":"string","description":"Preferred language"},"lastTouch":{"type":"string","description":"Last-touch information"},"utmSourceLast":{"type":"string","description":"UTM"},"accountId":{"type":"string","description":"accountId"},"phoneNumber":{"type":"string","description":"Phone number"},"browserAgent":{"type":"string","description":"Browser information"},"lastVisitTime":{"type":"integer","description":"Last visit time, Unix timestamp in milliseconds.","format":"int64"},"externalReferrerLast":{"type":"string","description":"Source information"},"name":{"type":"string","description":"Name"},"createdTime":{"type":"integer","description":"Creation time, Unix timestamp in milliseconds.","format":"int64"},"lookup_35619bh169":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Channel type: chatly=Chatly, openApi=OpenAPI, lazadaSeller=Lazada, wechatPublic=WeChat Official Account, feishu=Feishu, qywechat=WeCom, liveChat=Live Chat, email=Email, unknown=Unknown."},"children":[]}]}]}]},"lastVisitIp":{"type":"string","description":"Last-visit IP address"},"landingPageLast":{"type":"string","description":"Last visited page"},"lookup_gd40h55ggc":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Source channel, 110=Shopify, 10=DingTalk, 11=Feishu, 12=Livechat (old), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old)"},"children":[]}]}]}]},"email":{"type":"string","description":"Email address"},"firstVisitTime":{"type":"integer","description":"First visit time, Unix timestamp in milliseconds.","format":"int64"},"externalUserId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"externalUserId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]},"botUserId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"botUserId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]},"imBotId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"imBotId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]},"orgId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"orgId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]}},"required":["dataId"]}},"components/schemas/staff":{"id":"components/schemas/staff","kind":"json-schema","title":"staff","data":{"type":"object","properties":{"name":{"type":"string","description":"Staff name"},"employeeId":{"type":"string","description":"Staff employee number"},"headPortrait":{"type":"string","description":"Staff avatar"}}}},"components/schemas/staff_filter":{"id":"components/schemas/staff_filter","kind":"json-schema","title":"staff_filter","data":{"type":"object","properties":{"id":{"description":"ID (supports multi-value filtering).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}}}}},"components/schemas/staff_sort":{"id":"components/schemas/staff_sort","kind":"json-schema","title":"staff_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: "}}}},"components/schemas/AccountParam":{"id":"components/schemas/AccountParam","kind":"json-schema","title":"AccountParam","data":{"type":"object","properties":{"account":{"anyOf":[{"type":"string","description":"Account"},{"type":"null"}]},"password":{"anyOf":[{"type":"string","description":"Password"},{"type":"null"}]}},"required":["account","password"]}},"components/schemas/StaffSaveV3Param":{"id":"components/schemas/StaffSaveV3Param","kind":"json-schema","title":"StaffSaveV3Param","data":{"type":"object","properties":{"code":{"anyOf":[{"type":"string","description":"Code"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"accountInfo":{"$ref":"#/components/schemas/AccountParam","description":"Account information. Optional. If provided, an account is enabled for the staff member; if omitted, the staff member does not have a login account."},"roleNames":{"type":"array","items":{"type":"string"},"description":"Role list"},"departmentNames":{"type":"array","items":{"type":"string"},"description":"Department list"}},"required":["code","name"]}},"components/schemas/RequestParameterStaffSaveV3Param":{"id":"components/schemas/RequestParameterStaffSaveV3Param","kind":"json-schema","title":"RequestParameterStaffSaveV3Param","data":{"type":"object","properties":{"body":{"anyOf":[{"description":"","$ref":"#/components/schemas/StaffSaveV3Param"},{"type":"null"}]}},"required":["body"]}},"components/schemas/ChannelMessageSendParams":{"id":"components/schemas/ChannelMessageSendParams","kind":"json-schema","title":"ChannelMessageSendParams","data":{"type":"object","properties":{"dialogId":{"type":"string","description":"Dialog ID"},"message":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Message content. At least one of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"attachments"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must be non-empty."},"children":[]}]}]}]},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentData","description":"Attachment metadata."},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Attachment list. At least one of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"attachments"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must be non-empty."},"children":[]}]}]}]},"emailOptions":{"$ref":"#/components/schemas/ChannelMessageSendEmailParams","description":""}}}},"components/schemas/ChannelMessageSendDTO":{"id":"components/schemas/ChannelMessageSendDTO","kind":"json-schema","title":"ChannelMessageSendDTO","data":{"type":"object","properties":{"messageId":{"type":"string","description":"Message ID"}}}},"components/schemas/EntityResponseDataChannelMessageSendDTO":{"id":"components/schemas/EntityResponseDataChannelMessageSendDTO","kind":"json-schema","title":"EntityResponseDataChannelMessageSendDTO","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/ChannelMessageSendDTO","description":""}}}},"components/schemas/EntityResponseChannelMessageSendDTO":{"id":"components/schemas/EntityResponseChannelMessageSendDTO","kind":"json-schema","title":"EntityResponseChannelMessageSendDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/EntityResponseDataChannelMessageSendDTO","description":""}}}},"components/schemas/RequestParameterChannelMessageSendParams":{"id":"components/schemas/RequestParameterChannelMessageSendParams","kind":"json-schema","title":"RequestParameterChannelMessageSendParams","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/ChannelMessageSendParams","description":""}},"required":["body"]}},"components/schemas/AttachmentData":{"id":"components/schemas/AttachmentData","kind":"json-schema","title":"AttachmentData","data":{"type":"object","properties":{"name":{"type":"string","description":"Attachment name"},"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Attachment type. Use a standard HTTP media type: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types"},"children":[]}]}]}]},"url":{"type":"string","description":"Attachment URL"},"size":{"type":"integer","description":"Attachment size","format":"int64"}}}},"components/schemas/TransferToHumanParams":{"id":"components/schemas/TransferToHumanParams","kind":"json-schema","title":"TransferToHumanParams","data":{"type":"object","properties":{"dialogId":{"type":"string","description":"Dialog ID"}}}},"components/schemas/RequestParameterTransferToHumanParams":{"id":"components/schemas/RequestParameterTransferToHumanParams","kind":"json-schema","title":"RequestParameterTransferToHumanParams","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/TransferToHumanParams","description":""}},"required":["body"]}},"components/schemas/ChannelMessageSendEmailParams":{"id":"components/schemas/ChannelMessageSendEmailParams","kind":"json-schema","title":"ChannelMessageSendEmailParams","data":{"type":"object","properties":{"topic":{"type":"string","description":"Subject/title used for the email channel."},"useAttachmentBuffer":{"type":"boolean","description":"Whether to send attachment binary data for the email channel. When binary attachment data is included, each attachment must not exceed 10 MB."},"replyEmailMessageId":{"type":"string","description":"Email message ID to reply to."}}}},"components/schemas/butlermessage_sort":{"id":"components/schemas/butlermessage_sort","kind":"json-schema","title":"butlermessage_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, msgType, createdTime"}}}},"components/schemas/RecipientInfo":{"id":"components/schemas/RecipientInfo","kind":"json-schema","title":"RecipientInfo","data":{"type":"object","properties":{"commentId":{"anyOf":[{"type":"string","description":"Comment ID"},{"type":"null"}]},"id":{"anyOf":[{"type":"string","description":"Recipient ID"},{"type":"null"}]},"postId":{"anyOf":[{"type":"string","description":"Post ID"},{"type":"null"}]},"userRef":{"anyOf":[{"type":"string","description":"User reference"},{"type":"null"}]}}}},"components/schemas/PrivateMessageSendParams":{"id":"components/schemas/PrivateMessageSendParams","kind":"json-schema","title":"PrivateMessageSendParams","data":{"type":"object","properties":{"pageId":{"type":"string","description":"Page ID"},"recipient":{"$ref":"#/components/schemas/RecipientInfo","description":"Recipient information"},"message":{"type":"string","description":"Message content"}},"required":["pageId","recipient","message"]}},"components/schemas/RequestParameter_PrivateMessageSendParams_":{"id":"components/schemas/RequestParameter_PrivateMessageSendParams_","kind":"json-schema","title":"RequestParameter_PrivateMessageSendParams_","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/PrivateMessageSendParams","description":""}},"required":["body"]}},"components/schemas/CommentReplyParams":{"id":"components/schemas/CommentReplyParams","kind":"json-schema","title":"CommentReplyParams","data":{"type":"object","properties":{"pageId":{"type":"string","description":"Page ID"},"commentId":{"type":"string","description":"Comment ID"},"message":{"type":"string","description":"Reply content"}},"required":["pageId","commentId","message"]}},"components/schemas/RequestParameter_CommentReplyParams_":{"id":"components/schemas/RequestParameter_CommentReplyParams_","kind":"json-schema","title":"RequestParameter_CommentReplyParams_","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/CommentReplyParams","description":""}},"required":["body"]}},"components/schemas/PostDetailParams":{"id":"components/schemas/PostDetailParams","kind":"json-schema","title":"PostDetailParams","data":{"type":"object","properties":{"pageId":{"type":"string","description":"Page ID"},"postId":{"type":"string","description":"Post ID"},"fields":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Comma-separated list of fields to return. For example: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id,message,created_time,permalink_url,from{id,name},shares,comments,likes,attachments{media_type,media,subattachments}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"type":"null"}]}},"required":["pageId","postId"]}},"components/schemas/RequestParameter_PostDetailParams_":{"id":"components/schemas/RequestParameter_PostDetailParams_","kind":"json-schema","title":"RequestParameter_PostDetailParams_","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/PostDetailParams","description":""}},"required":["body"]}},"components/schemas/EntityResponseData_Object_":{"id":"components/schemas/EntityResponseData_Object_","kind":"json-schema","title":"EntityResponseData_Object_","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/Object","description":""}}}},"components/schemas/EntityResponse_Object_":{"id":"components/schemas/EntityResponse_Object_","kind":"json-schema","title":"EntityResponse_Object_","data":{"type":"object","properties":{"code":{"anyOf":[{"type":"integer","description":""},{"type":"null"}]},"message":{"anyOf":[{"type":"string","description":""},{"type":"null"}]},"data":{"$ref":"#/components/schemas/EntityResponseData_Object_","description":""}}}},"components/schemas/Object":{"id":"components/schemas/Object","kind":"json-schema","title":"Object","data":{"type":"object","properties":{}}},"components/schemas/butlerconversation":{"id":"components/schemas/butlerconversation","kind":"json-schema","title":"butlerconversation","data":{"type":"object","properties":{"convStatus":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Status: 2 = active, 3 = completed."},"children":[]}]}]}]},"summary":{"type":"string","description":"Current conversation summary"},"updatedTime":{"type":"integer","description":"Last updated time, Unix timestamp in milliseconds.","format":"int64"},"replyStrategy":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Reply strategy: 1 = human agent; 2 = 3Chat AI Agent; 3 = contact/visitor."},"children":[]}]}]}]},"completedTime":{"type":"integer","description":"Closed time, Unix timestamp in milliseconds.","format":"int64"},"solved":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resolved status. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = resolved; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = unresolved."},"children":[]}]}]}]},"ratingComment":{"type":"string","description":"Contact rating"},"lookup_3g71fgh5f5":{"type":"string","description":"Contact name"},"duration":{"type":"number","description":"Conversation duration","format":"double"},"dataId":{"type":"string","description":"Database ID"},"userAccountId":{"type":"string","description":"Visitor platform ID"},"createdTime":{"type":"integer","description":"Creation time, Unix timestamp in milliseconds.","format":"int64"},"lookup_h70b811f83":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Channel type (new), 110=Shopify, 111=Facebook, 112=Instagram, 113=Sandbox, 114=SHOPLINE, 10=DingTalk, 11=Feishu, 12=Xiaohongshu (RED), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=WeChat Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old)"},"children":[]}]}]}]},"ratingLevels":{"type":"string","description":"Rating: 1, 2, 3, 4, or 5."},"lookup_02fghe5910":{"type":"string","description":"Contact email address"},"solverType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resolver: 1 = 3Chat; 2 = human agent."},"children":[]}]}]}]}}}},"components/schemas/butlerconversation_sort":{"id":"components/schemas/butlerconversation_sort","kind":"json-schema","title":"butlerconversation_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: duration, updatedTime, completedTime, createdTime"}}}},"components/schemas/butlerchannel":{"id":"components/schemas/butlerchannel","kind":"json-schema","title":"butlerchannel","data":{"type":"object","properties":{"updatedTime":{"type":"integer","description":"updatedTime, Unix timestamp in milliseconds.","format":"int64"},"weChatPublicAppId":{"type":"string","description":"weChatPublicAppId"},"appName":{"type":"string","description":"appName"},"accountType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"accountType: [110=Shopify, 111=Facebook, 112=Instagram, 113=Sandbox, 114=SHOPLINE, 10=DingTalk, 11=Feishu, 12=Xiaohongshu (RED), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email address, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=WeChat Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old)]"},"children":[]}]}]}]},"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"type: [chatly=Chatly, openApi=OpenAPI, lazadaSeller=Lazada, wechatPublic=WeChat Official Account, feishu=Feishu, qywechat=WeCom, liveChat=Live Chat, email=Email, meta=Facebook, instagram=Instagram, sandbox=Sandbox, unknown=Unknown]"},"children":[]}]}]}]},"accessToken":{"type":"string","description":"accessToken"},"feishuAppId":{"type":"string","description":"feishuAppId"},"dataId":{"type":"string","description":"dataId"},"feishuSecret":{"type":"string","description":"feishuSecret"},"authorizerRefreshToken":{"type":"string","description":"authorizerRefreshToken"},"feishuTenantAccessToken":{"type":"string","description":"feishuTenantAccessToken"},"workSpaceId":{"type":"string","description":"workSpaceId"},"createdTime":{"type":"integer","description":"createdTime, Unix timestamp in milliseconds.","format":"int64"},"lazadaSellerId":{"type":"string","description":"lazadaSellerId"},"liveChatType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"liveChatType: [shopify=Shopify, official=Official Website, shopline=SHOPLINE, shared=Shared Link]"},"children":[]}]}]}]}}}},"components/schemas/butlerchannel_filter":{"id":"components/schemas/butlerchannel_filter","kind":"json-schema","title":"butlerchannel_filter","data":{"type":"object","properties":{"updatedTime":{"description":"updatedTime, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"weChatPublicAppId":{"description":"weChatPublicAppId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"appName":{"description":"appName (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"accountType":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"accountType, 110=Shopify, 111=Facebook, 112=Instagram, 113=Sandbox, 114=SHOPLINE, 10=DingTalk, 11=Feishu, 12=Xiaohongshu (RED), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=WeChat Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old) (supports multi-value filtering)"},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"type":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"type: chatly=Chatly, openApi=OpenAPI, lazadaSeller=Lazada, wechatPublic=WeChat Official Account, feishu=Feishu, qywechat=WeCom, liveChat=Live Chat, email=Email, unknown=Unknown. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"accessToken":{"description":"accessToken (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"feishuAppId":{"description":"feishuAppId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"dataId":{"description":"dataId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"feishuSecret":{"description":"feishuSecret (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"authorizerRefreshToken":{"description":"authorizerRefreshToken (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"feishuTenantAccessToken":{"description":"feishuTenantAccessToken (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"workSpaceId":{"description":"workSpaceId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"createdTime":{"description":"createdTime, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"lazadaSellerId":{"description":"lazadaSellerId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"liveChatType":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"liveChatType: shopify=Shopify, official=Official Website, shopline=SHOPLINE. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"id":{"description":"ID (supports multi-value filtering).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}}}}},"components/schemas/butlerchannel_sort":{"id":"components/schemas/butlerchannel_sort","kind":"json-schema","title":"butlerchannel_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, createdTime"}}}},"components/schemas/butlermessage":{"id":"components/schemas/butlermessage","kind":"json-schema","title":"butlermessage","data":{"type":"object","properties":{"updatedTime":{"type":"integer","description":"updatedTime, Unix timestamp in milliseconds.","format":"int64"},"createdTime":{"type":"integer","description":"createdTime, Unix timestamp in milliseconds.","format":"int64"},"senderId":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sender ID. If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderType==1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the contact ID; if "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderType==2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", it is the platform sender ID; if "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderType==3"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", it is the Agent ID."},"children":[]}]}]}]},"workSpaceId":{"type":"string","description":"workSpaceId"},"senderType":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"senderType: -1 = unknown; 0 = system; 1 = contact (customer); 2 = human agent; 3 = 3Chat Agent."},"children":[]}]}]}]},"isEffectiveReply":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"isEffectiveReply: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = yes; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = no."},"children":[]}]}]}]},"email":{"type":"object","description":"email","properties":{"from":{"type":"string","description":"Sender address"},"fromName":{"anyOf":[{"type":"string","description":"Sender name"},{"type":"null"}]},"to":{"type":"array","items":{"type":"string"},"description":"Recipient address array"},"cc":{"type":"array","items":{"type":"string"},"description":"CC address array"},"bcc":{"type":"array","items":{"type":"string"},"description":"BCC address array"},"subject":{"type":"string","description":"Email subject"}},"required":["from","to","cc","bcc","subject"]},"content":{"type":"string","description":"content"},"id":{"type":"string","description":"Unique entry ID"},"dataId":{"type":"string","description":"Database ID"},"sessionId":{"type":"object","properties":{"id":{"type":"string","description":"Dialog ID"},"viewKey":{"type":"string","description":"View entity key"}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dialog ID; equivalent to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"required":["id","viewKey"]},"conversationId":{"type":"object","properties":{"id":{"type":"string","description":"Conversation ID"},"viewKey":{"type":"string","description":"View entity key"}},"description":"Conversation ID","required":["id","viewKey"]},"channelId":{"type":"object","properties":{"id":{"type":"string","description":"Channel ID"},"viewKey":{"type":"string","description":"View entity key"}},"description":"Channel ID","required":["id","viewKey"]},"attachments":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"contentType":{"type":"string","description":"Attachment MIME type"},"url":{"type":"string","description":"Attachment URL"},"size":{"anyOf":[{"type":"integer","description":"Attachment size"},{"type":"null"}]}},"required":["name","contentType","url"]},"description":"Attachment array"},{"type":"null"}]},"extendMap":{"type":"object","properties":{},"description":"Custom fields"},"agentLogs":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Log type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (language detection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"recall"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (memory recall) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (intent/task selection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"knowledge"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (Knowledge Base retrieval) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"tool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (MCP tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internalTool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (internal tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"systemTask"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (special system task)."},"children":[]}]}]}]},"name":{"type":"string","description":"Tool or task name"},"message":{"type":"string","description":"Log content"},"status":{"type":"string","description":"Language-detection status or tool execution status"},"kb":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string","description":"Knowledge Base chunk content"},"chunk_id":{"type":"string","description":"Chunk ID"},"document_id":{"type":"string","description":"Knowledge Base document ID"},"document_name":{"type":"string","description":"Knowledge Base document name"},"enabled":{"type":"boolean","description":"Whether enabled."},"lang":{"type":"string","description":"Knowledge Base language"},"score":{"type":"number","description":"Retrieval score"},"source":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Source: Document | FAQ | Sample (generated example) | Website content."},"children":[]}]}]}]},"created_at":{"type":"integer","description":"Knowledge Base creation time"}},"required":["document_id","enabled"]},"description":"Referenced Knowledge Base"},"entity":{"type":"object","properties":{"name":{"type":"string","description":"Entity name"},"values":{"type":"array","items":{"anyOf":[{},{"type":"null"}]},"description":"Entity value"}},"description":"Internal entity invocation","required":["name"]},"timestamp":{"type":"integer","description":"Log timestamp"}},"description":"Agent activity log content","required":["type","timestamp"]},"description":"Agent activity logs"},"processedBy":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Indicates how the message was answered: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"HUMAN_AGENT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = human reply; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AI_AGENT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = AI reply; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"UNKNOWN"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = unclassified."},"children":[]}]}]}]}},"required":["id","sessionId","conversationId","channelId","extendMap","dataId"]}},"components/schemas/ChatDTO":{"id":"components/schemas/ChatDTO","kind":"json-schema","title":"ChatDTO","data":{"type":"object","properties":{"dialogId":{"type":"string","description":"Dialog ID"},"agentLogs":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Log type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (language detection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"recall"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (memory recall) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (intent/task selection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"knowledge"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (Knowledge Base retrieval) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"tool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (MCP tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internalTool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (internal tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"systemTask"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (special system task)."},"children":[]}]}]}]},"name":{"type":"string","description":"Tool or task name"},"message":{"type":"string","description":"Log content"},"status":{"type":"string","description":"Language-detection status or tool execution status"},"kb":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string","description":"Knowledge Base chunk content"},"chunk_id":{"type":"string","description":"Chunk ID"},"document_id":{"type":"string","description":"Knowledge Base document ID"},"document_name":{"type":"string","description":"Knowledge Base document name"},"enabled":{"type":"boolean","description":"Whether enabled."},"lang":{"type":"string","description":"Knowledge Base language"},"score":{"type":"number","description":"Retrieval score"},"source":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Source: Document | FAQ | Sample (generated example) | Website content."},"children":[]}]}]}]},"created_at":{"type":"integer","description":"Knowledge Base creation time"}},"required":["document_id","enabled"]},"description":"Referenced Knowledge Base"},"entity":{"type":"object","properties":{"name":{"type":"string","description":"Entity name"},"values":{"type":"array","items":{"anyOf":[{},{"type":"null"}]},"description":"Entity value"}},"description":"Internal entity invocation","required":["name"]},"timestamp":{"type":"integer","description":"Log timestamp"}},"description":"Agent activity log content","required":["type","timestamp"]},"description":"Agent activity logs"},"messages":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Primary content type."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Used by clients to select the appropriate rendering component."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Allowed values:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Plain text"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Image"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Audio"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Video"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": File or attachment"},"children":[]}]}]}]}]},"contentType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Media format (MIME type), using standard IANA media types."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Examples:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Text: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text/plain"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Image: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/jpeg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/png"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Audio/video: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio/mpeg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video/mp4"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Used by players and browsers to determine how the resource should be decoded or rendered."},"children":[]}]}]}]}]},"text":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Display text / fallback text."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", this is the primary message content and supports Markdown."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", this value acts as alt text or the file name. Clients that cannot render the media should display this text instead."},"children":[]}]}]}]}]},"url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resource URL."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", this is an empty string or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For other types, this is the CDN URL used to access or download the media file."},"children":[]}]}]}]}]},"meta":{"type":"object","properties":{"width":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": image width in pixels. Clients can use this value to reserve layout space before the image loads."},"children":[]}]}]}]},"height":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": image height in pixels."},"children":[]}]}]}]},"size_kb":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/"},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": file size in KB, used for loading estimates or data-usage hints."},"children":[]}]}]}]},"duration":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/"},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": media duration in seconds, which can be used to render the progress bar before the media finishes loading."},"children":[]}]}]}]},"format":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/"},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": file extension. Some legacy players may use this value to identify the media format."},"children":[]}]}]}]},"coverUrl":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": optional video poster/thumbnail URL."},"children":[]}]}]}]}},"description":"Metadata containing non-business attributes of the media resource."}},"description":"Agent message content"},"description":"Agent message list"}}}},"components/schemas/EntityResponseChatDTO":{"id":"components/schemas/EntityResponseChatDTO","kind":"json-schema","title":"EntityResponseChatDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/ChatDTO"}}}},"components/schemas/CertifyResponseDTO":{"id":"components/schemas/CertifyResponseDTO","kind":"json-schema","title":"CertifyResponseDTO","data":{"type":"object","properties":{"staffId":{"type":"integer","description":"staff id\nStaff ID","format":"int64"},"tenantId":{"type":"string","description":"Tenant ID"},"agent":{"type":"string","description":"Device type","enum":["WEB","APP","PAD","BOARD","OTHER","FEISHU","WECOM","DINGTALK"]}}}},"components/schemas/EntityResponseDataCertifyResponseDTO":{"id":"components/schemas/EntityResponseDataCertifyResponseDTO","kind":"json-schema","title":"EntityResponseDataCertifyResponseDTO","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/CertifyResponseDTO","description":""}}}},"components/schemas/EntityResponseCertifyResponseDTO":{"id":"components/schemas/EntityResponseCertifyResponseDTO","kind":"json-schema","title":"EntityResponseCertifyResponseDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/EntityResponseDataCertifyResponseDTO","description":""}}}},"components/schemas/CertifyParams":{"id":"components/schemas/CertifyParams","kind":"json-schema","title":"CertifyParams","data":{"type":"object","properties":{"method":{"type":"string","description":"HTTP method","enum":["GET","POST","PUT","DELETE"]},"uri":{"type":"string","description":"Request URL"},"session":{"type":"string","description":"Session ID"},"token":{"type":"string","description":"Token"}},"required":["method","uri"]}},"components/schemas/TokenRequest":{"id":"components/schemas/TokenRequest","kind":"json-schema","title":"TokenRequest","data":{"type":"object","properties":{"appKey":{"type":"string","description":"App key"},"appSecret":{"type":"string","description":"App secret"}},"required":["appKey","appSecret"]}},"components/schemas/OpenApiTokenDTO":{"id":"components/schemas/OpenApiTokenDTO","kind":"json-schema","title":"OpenApiTokenDTO","data":{"type":"object","properties":{"accessToken":{"type":"string","description":"Credential"},"accessTokenExpireIn":{"type":"integer","description":"Credential expiration time","format":"int64"},"refreshToken":{"type":"string","description":"Refresh token"},"refreshTokenExpireIn":{"type":"integer","description":"Refresh-token expiration time","format":"int64"}}}},"components/schemas/EntityResponseDataOpenApiTokenDTO":{"id":"components/schemas/EntityResponseDataOpenApiTokenDTO","kind":"json-schema","title":"EntityResponseDataOpenApiTokenDTO","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/OpenApiTokenDTO","description":""}}}},"components/schemas/EntityResponseOpenApiTokenDTO":{"id":"components/schemas/EntityResponseOpenApiTokenDTO","kind":"json-schema","title":"EntityResponseOpenApiTokenDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/EntityResponseDataOpenApiTokenDTO","description":""}}}},"components/schemas/RequestParameterTokenRequest":{"id":"components/schemas/RequestParameterTokenRequest","kind":"json-schema","title":"RequestParameterTokenRequest","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/TokenRequest","description":""}},"required":["body"]}},"components/schemas/TokenRefresh":{"id":"components/schemas/TokenRefresh","kind":"json-schema","title":"TokenRefresh","data":{"type":"object","properties":{"refreshToken":{"type":"string","description":"Refresh Token"}},"required":["refreshToken"]}},"components/schemas/RequestParameterTokenRefresh":{"id":"components/schemas/RequestParameterTokenRefresh","kind":"json-schema","title":"RequestParameterTokenRefresh","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/TokenRefresh","description":""}},"required":["body"]}},"components/schemas/department_staff_relation":{"id":"components/schemas/department_staff_relation","kind":"json-schema","title":"department_staff_relation","data":{"type":"object","properties":{"createTime":{"type":"integer","description":"Creation time, Unix timestamp in milliseconds.","format":"int64"},"departmentId":{"type":"string","description":"Department"},"inCharge":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Whether this staff member is the owner. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = yes; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = no."},"children":[]}]}]}]},"staffId":{"type":"string","description":"Staff member"}}}},"components/schemas/department_staff_relation_filter":{"id":"components/schemas/department_staff_relation_filter","kind":"json-schema","title":"department_staff_relation_filter","data":{"type":"object","properties":{"id":{"description":"ID (supports multi-value filtering).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}}}}},"components/schemas/department_staff_relation_sort":{"id":"components/schemas/department_staff_relation_sort","kind":"json-schema","title":"department_staff_relation_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: "}}}},"components/schemas/KnowledgeDeleteParams":{"id":"components/schemas/KnowledgeDeleteParams","kind":"json-schema","title":"KnowledgeDeleteParams","data":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"List of Knowledge Base IDs to delete."}},"required":["ids"]}},"components/schemas/ConversationClosedParams":{"id":"components/schemas/ConversationClosedParams","kind":"json-schema","title":"ConversationClosedParams","data":{"type":"object","properties":{"conversationId":{"type":"string","description":"Dialog ID"},"dialogId":{"type":"string","description":"Conversation ID"}}}},"components/schemas/AgentEnableParams":{"id":"components/schemas/AgentEnableParams","kind":"json-schema","title":"AgentEnableParams","data":{"type":"object","properties":{"enable":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Whether the Agent is deployed/enabled. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = enabled; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = disabled."},"children":[]}]}]}]}},"required":["enable"]}},"components/schemas/BaseResponse":{"id":"components/schemas/BaseResponse","kind":"json-schema","title":"BaseResponse","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""}}}},"components/schemas/butlergroup_sort":{"id":"components/schemas/butlergroup_sort","kind":"json-schema","title":"butlergroup_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, createdTime"}}}},"components/schemas/WebhookEntityId":{"id":"components/schemas/WebhookEntityId","kind":"json-schema","title":"WebhookEntityId","data":{"type":"object","properties":{"id":{"type":"string","description":"Entity ID."}}}},"components/schemas/DialogCreatedWebhookData":{"id":"components/schemas/DialogCreatedWebhookData","kind":"json-schema","title":"DialogCreatedWebhookData","data":{"type":"object","description":"Dialog data included in the Dialog Created event.","properties":{"id":{"type":"string","example":"sess_p2p_001"},"workSpaceId":{"type":"string","example":"ws_001"},"type":{"type":"string","example":"p2p"},"channelId":{"$ref":"#/components/schemas/WebhookEntityId","example":{"id":"ch_livechat_01"}},"visitorId":{"$ref":"#/components/schemas/WebhookEntityId","example":{"id":"visitor_123"}},"lastMessageId":{"$ref":"#/components/schemas/WebhookEntityId","example":{"id":"msg_202"}},"createdTime":{"type":"integer","example":1690000000,"format":"int64"},"updatedTime":{"type":"integer","example":1690003600,"format":"int64"}}}},"components/schemas/DialogCreatedWebhookEvent":{"id":"components/schemas/DialogCreatedWebhookEvent","kind":"json-schema","title":"DialogCreatedWebhookEvent","data":{"type":"object","required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","description":"Unique ID of this webhook delivery.","example":"03703d30-50f2-4103-bdb6-8aa331f36cc5"},"businessType":{"type":"integer","description":"Business type code. 15013 represents the Dialog Created event.","example":15013},"data":{"$ref":"#/components/schemas/DialogCreatedWebhookData"}},"example":{"requestId":"03703d30-50f2-4103-bdb6-8aa331f36cc5","businessType":15013,"data":{"id":"sess_p2p_001","workSpaceId":"ws_001","type":"p2p","channelId":{"id":"ch_livechat_01"},"visitorId":{"id":"visitor_123"},"lastMessageId":{"id":"msg_202"},"createdTime":1690000000,"updatedTime":1690003600}}}},"components/schemas/ContactWebhookData":{"id":"components/schemas/ContactWebhookData","kind":"json-schema","title":"ContactWebhookData","data":{"type":"object","description":"The contact record included in a contact webhook event.","required":["id","workSpaceId","channelId","createdTime","updatedTime"],"properties":{"id":{"type":"string","description":"Globally unique identifier of the contact.","example":"visitor_001"},"workSpaceId":{"type":"string","description":"Identifier of the 3Chat Workspace that owns the contact.","example":"ws_abc"},"channelId":{"type":"string","description":"Identifier of the channel associated with the contact.","example":"ch_livechat_01"},"name":{"type":"string","description":"Display name of the contact.","example":"Wang Xiaoming"},"email":{"type":"string","format":"email","description":"Email address of the contact.","example":"xiaoming.wang@example.com"},"phoneNumber":{"type":"string","description":"Phone number of the contact.","example":"+86-13800138000"},"language":{"type":"string","description":"Preferred language of the contact.","example":"zh-CN"},"accountId":{"type":"string","description":"Platform account identifier. Its meaning depends on the channel; for an IM channel, it identifies the corresponding IM contact.","example":"acc_1001"},"lastVisitIp":{"type":"string","description":"IP address recorded for the contact's most recent visit.","example":"203.0.113.45"},"browserAgent":{"type":"string","description":"Browser user-agent string recorded for the contact.","example":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"},"fistTouch":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL of the contact's first recorded touchpoint. The field name is retained as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fistTouch"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for payload compatibility."},"children":[]}]}]}],"example":"https://example.com/landing?utm=campaign"},"lastTouch":{"type":"string","description":"URL of the contact's most recent touchpoint.","example":"https://example.com/product/1"},"externalReferrerLast":{"type":"string","description":"Most recent external referrer recorded for the contact.","example":"google.com"},"landingPageLast":{"type":"string","description":"Path of the contact's most recent landing page.","example":"/product/1"},"utmSourceLast":{"type":"string","description":"Most recent UTM source recorded for the contact.","example":"newsletter"},"firstVisitTime":{"type":"integer","format":"int64","description":"Unix timestamp, in seconds, of the contact's first visit.","example":1690000000},"lastVisitTime":{"type":"integer","format":"int64","description":"Unix timestamp, in seconds, of the contact's most recent visit.","example":1690003600},"totalVisits":{"type":"integer","description":"Total number of recorded visits.","example":5},"externalUserId":{"type":"string","description":"External user identifier supplied by the connected IM platform, when applicable.","example":"wo56kvDgAA5VmZqvgsX8d-cDmSDXCZXQ"},"botUserId":{"type":"string","description":"Identifier of the managed account member on the connected IM platform, when applicable.","example":"abc@xinheyun.com"},"imBotId":{"type":"string","description":"Identifier of the managed IM bot or account, when applicable.","example":"1688856053740892"},"orgId":{"type":"string","description":"Organization identifier supplied by the connected IM platform, when applicable.","example":"6887410937e2124b6d6265a1"},"createdTime":{"type":"integer","format":"int64","description":"Unix timestamp, in seconds, when the contact record was created.","example":1690000000},"updatedTime":{"type":"integer","format":"int64","description":"Unix timestamp, in seconds, when the contact record was last updated.","example":1690003600},"extendMap":{"type":"object","description":"Custom fields associated with the contact.","additionalProperties":true,"example":{"preferredContact":"email","customerTier":"gold"}}}}},"components/schemas/ContactCreatedWebhookEvent":{"id":"components/schemas/ContactCreatedWebhookEvent","kind":"json-schema","title":"ContactCreatedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"03703d30-50f2-4103-bdb6-8aa331f36cc5"},"businessType":{"type":"integer","description":"Business type code. The value is 15009 for Contact Created.","const":15009,"example":15009},"data":{"$ref":"#/components/schemas/ContactWebhookData"}},"example":{"requestId":"03703d30-50f2-4103-bdb6-8aa331f36cc5","businessType":15009,"data":{"id":"visitor_001","workSpaceId":"ws_abc","channelId":"ch_livechat_01","name":"Wang Xiaoming","email":"xiaoming.wang@example.com","phoneNumber":"+86-13800138000","language":"zh-CN","accountId":"acc_1001","lastVisitIp":"203.0.113.45","browserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)","fistTouch":"https://example.com/landing?utm=campaign","lastTouch":"https://example.com/product/1","externalReferrerLast":"google.com","landingPageLast":"/product/1","utmSourceLast":"newsletter","firstVisitTime":1690000000,"lastVisitTime":1690003600,"totalVisits":5,"externalUserId":"wo56kvDgAA5VmZqvgsX8d-cDmSDXCZXQ","botUserId":"abc@xinheyun.com","imBotId":"1688856053740892","orgId":"6887410937e2124b6d6265a1","createdTime":1690000000,"updatedTime":1690003600,"extendMap":{"preferredContact":"email","customerTier":"gold"}}}}},"components/schemas/ContactUpdatedWebhookEvent":{"id":"components/schemas/ContactUpdatedWebhookEvent","kind":"json-schema","title":"ContactUpdatedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"03703d30-50f2-4103-bdb6-8aa331f36cc5"},"businessType":{"type":"integer","description":"Business type code. The value is 15010 for Contact Updated.","const":15010,"example":15010},"data":{"$ref":"#/components/schemas/ContactWebhookData"}},"example":{"requestId":"03703d30-50f2-4103-bdb6-8aa331f36cc5","businessType":15010,"data":{"id":"visitor_001","workSpaceId":"ws_abc","channelId":"ch_livechat_01","name":"Wang Xiaoming","email":"xiaoming.wang@example.com","phoneNumber":"+86-13800138000","language":"zh-CN","accountId":"acc_1001","lastVisitIp":"203.0.113.45","browserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)","fistTouch":"https://example.com/landing?utm=campaign","lastTouch":"https://example.com/product/1","externalReferrerLast":"google.com","landingPageLast":"/product/1","utmSourceLast":"newsletter","firstVisitTime":1690000000,"lastVisitTime":1690003600,"totalVisits":5,"externalUserId":"wo56kvDgAA5VmZqvgsX8d-cDmSDXCZXQ","botUserId":"abc@xinheyun.com","imBotId":"1688856053740892","orgId":"6887410937e2124b6d6265a1","createdTime":1690000000,"updatedTime":1690003600,"extendMap":{"preferredContact":"email","customerTier":"gold"}}}}},"components/schemas/WebhookEntityReference":{"id":"components/schemas/WebhookEntityReference","kind":"json-schema","title":"WebhookEntityReference","data":{"type":"object","additionalProperties":false,"required":["id","viewKey"],"properties":{"id":{"type":"string","description":"Unique identifier of the referenced entity."},"viewKey":{"type":"string","description":"Entity view key used by 3Chat."}}}},"components/schemas/ConversationWebhookData":{"id":"components/schemas/ConversationWebhookData","kind":"json-schema","title":"ConversationWebhookData","data":{"type":"object","description":"The Conversation record included in the webhook event.","required":["id","dataId","convStatus","replyStrategy","sessionId","visitorId","createdTime","updatedTime"],"properties":{"summary":{"type":"string","description":"Summary of the main inquiry and the handling process for this Conversation.","example":"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":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Conversation status. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" means active and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"3"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" means completed."},"children":[]}]}]}],"enum":[2,3],"example":3},"updatedTime":{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when the Conversation was last updated.","example":1765466070910},"completedTime":{"anyOf":[{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when the Conversation was completed."},{"type":"null"}],"example":1765466070908},"replyStrategy":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Current reply strategy. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" means human agent, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" means AI agent, and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"3"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" means contact."},"children":[]}]}]}],"enum":[1,2,3],"example":2},"solved":{"type":"boolean","description":"Whether the inquiry handled in this Conversation has been resolved.","example":false},"sessionId":{"allOf":[{"$ref":"#/components/schemas/WebhookEntityReference"}],"description":"Dialog associated with this Conversation.","example":{"id":"mz43k5my686kjsfkfpzqkup6","viewKey":"butlerSession"}},"lookup_3g71fgh5f5":{"type":"string","description":"Associated classification or contact name recorded for the Conversation.","example":"Zhang San"},"dataId":{"type":"string","description":"Internal data identifier of the Conversation record.","example":"uu5cha880vvk8tbw6e4hmv0i"},"userAccountId":{"type":"string","format":"uuid","description":"Unique identifier of the user account associated with the Conversation.","example":"2ce63138-344c-40fe-976b-8f19d3d3d2fa"},"extendMap":{"type":"object","description":"Custom fields associated with the Conversation.","additionalProperties":true,"example":{}},"createdTime":{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when the Conversation was created.","example":1765465932005},"lookup_h70b811f83":{"type":"integer","description":"Channel classification code associated with the Conversation.","example":102},"id":{"type":"string","description":"Globally unique identifier of the Conversation record.","example":"1448693862208901600"},"visitorId":{"allOf":[{"$ref":"#/components/schemas/WebhookEntityReference"}],"description":"Contact associated with this Conversation.","example":{"id":"ailfxvj0qyhbyy5vryljrz4k","viewKey":"butlerVisitor"}}}}},"components/schemas/ConversationCreatedWebhookEvent":{"id":"components/schemas/ConversationCreatedWebhookEvent","kind":"json-schema","title":"ConversationCreatedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"f91692b3-f35c-4f3d-b398-e6f34491d3ce"},"businessType":{"type":"integer","description":"Business type code. The value is 15000 for Conversation Created.","const":15000,"example":15000},"data":{"$ref":"#/components/schemas/ConversationWebhookData"}},"example":{"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":{"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"}}}}},"components/schemas/ConversationUpdatedWebhookEvent":{"id":"components/schemas/ConversationUpdatedWebhookEvent","kind":"json-schema","title":"ConversationUpdatedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"f91692b3-f35c-4f3d-b398-e6f34491d3ce"},"businessType":{"type":"integer","description":"Business type code. The value is 15001 for Conversation Updated.","const":15001,"example":15001},"data":{"$ref":"#/components/schemas/ConversationWebhookData"}},"example":{"requestId":"f91692b3-f35c-4f3d-b398-e6f34491d3ce","businessType":15001,"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":{"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"}}}}},"components/schemas/ConversationRoutedToHumanWebhookEvent":{"id":"components/schemas/ConversationRoutedToHumanWebhookEvent","kind":"json-schema","title":"ConversationRoutedToHumanWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"f91692b3-f35c-4f3d-b398-e6f34491d3ce"},"businessType":{"type":"integer","description":"Business type code. The value is 15002 for Conversation Routed to Human.","const":15002,"example":15002},"data":{"$ref":"#/components/schemas/ConversationWebhookData"}},"example":{"requestId":"f91692b3-f35c-4f3d-b398-e6f34491d3ce","businessType":15002,"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":{"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"}}}}},"components/schemas/ConversationClosedWebhookEvent":{"id":"components/schemas/ConversationClosedWebhookEvent","kind":"json-schema","title":"ConversationClosedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"f91692b3-f35c-4f3d-b398-e6f34491d3ce"},"businessType":{"type":"integer","description":"Business type code. The value is 15003 for Conversation Closed.","const":15003,"example":15003},"data":{"$ref":"#/components/schemas/ConversationWebhookData"}},"example":{"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":{"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"}}}}},"components/schemas/ContactRejoinedConversationWebhookEvent":{"id":"components/schemas/ContactRejoinedConversationWebhookEvent","kind":"json-schema","title":"ContactRejoinedConversationWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"f91692b3-f35c-4f3d-b398-e6f34491d3ce"},"businessType":{"type":"integer","description":"Business type code. The value is 15006 for Contact Rejoined Conversation.","const":15006,"example":15006},"data":{"$ref":"#/components/schemas/ConversationWebhookData"}},"example":{"requestId":"f91692b3-f35c-4f3d-b398-e6f34491d3ce","businessType":15006,"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":{"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"}}}}},"components/schemas/ChatGroupChannelReference":{"id":"components/schemas/ChatGroupChannelReference","kind":"json-schema","title":"ChatGroupChannelReference","data":{"type":"object","description":"Channel associated with the chat group.","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier of the channel.","example":"143555921712459776"},"value":{"type":"string","description":"Stored channel reference value.","example":"143555921712459776"},"entityKey":{"type":"string","description":"Entity key of the referenced channel.","example":"butlerChannel"},"viewKey":{"type":"string","description":"View key of the referenced channel.","example":"butlerChannel"}}}},"components/schemas/ChatGroupWebhookData":{"id":"components/schemas/ChatGroupWebhookData","kind":"json-schema","title":"ChatGroupWebhookData","data":{"type":"object","description":"The chat group record included in the webhook event.","required":["id","dataId","name","externalGroupId","channelId","createdTime","updatedTime"],"properties":{"id":{"type":"string","description":"Globally unique identifier of the chat group.","example":"144304948082573313"},"dataId":{"type":"string","description":"Internal data identifier of the chat group record.","example":"144304948082573313"},"name":{"type":"string","description":"Display name of the chat group.","example":"Product discussion group"},"avatar":{"type":"string","format":"uri","description":"URL of the chat group avatar.","example":"https://example.com/chat-group/avatar.png"},"channelType":{"type":"string","description":"Type of the connected channel that owns the chat group.","example":"chatly"},"externalGroupId":{"type":"string","description":"Chat group identifier assigned by the external channel.","example":"R:10970772183721730"},"wecomChatId":{"type":"string","description":"Native WeCom group-chat identifier, when the group belongs to WeCom.","example":"wrxxxxxxxxxxxx"},"channelId":{"$ref":"#/components/schemas/ChatGroupChannelReference"},"lookup_2e4hdgd7hg":{"type":"integer","description":"Internal channel or group classification code.","example":2},"extendMap":{"type":"object","description":"Custom fields associated with the chat group.","additionalProperties":true,"example":{}},"createdTime":{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when the chat group was created in 3Chat.","example":1784465973920},"updatedTime":{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when the chat group was last updated.","example":1785155638473}}}},"components/schemas/EmailMessageDetails":{"id":"components/schemas/EmailMessageDetails","kind":"json-schema","title":"EmailMessageDetails","data":{"type":"object","description":"Email-specific message details. Present only for email messages.","properties":{"from":{"type":"string","format":"email","description":"Sender email address."},"fromName":{"type":"string","description":"Sender display name."},"to":{"type":"array","description":"Recipient email addresses.","items":{"type":"string","format":"email"}},"cc":{"type":"array","description":"CC recipient email addresses.","items":{"type":"string","format":"email"}},"bcc":{"type":"array","description":"BCC recipient email addresses.","items":{"type":"string","format":"email"}},"subject":{"type":"string","description":"Email subject."}}}},"components/schemas/MessageAttachment":{"id":"components/schemas/MessageAttachment","kind":"json-schema","title":"MessageAttachment","data":{"type":"object","description":"File attached to the message.","required":["key","name","contentType","url","size"],"properties":{"key":{"type":"string","description":"Unique attachment key."},"name":{"type":"string","description":"Attachment file name."},"contentType":{"type":"string","description":"MIME type of the attachment.","example":"image/png"},"url":{"type":"string","format":"uri","description":"URL from which the attachment can be accessed."},"size":{"type":"integer","format":"int64","description":"Attachment size in bytes."}}}},"components/schemas/KnowledgeRetrievalResult":{"id":"components/schemas/KnowledgeRetrievalResult","kind":"json-schema","title":"KnowledgeRetrievalResult","data":{"type":"object","description":"Knowledge-base chunk retrieved while the AI agent processed the message.","properties":{"chunk_id":{"type":"string","description":"Identifier of the retrieved chunk."},"content":{"type":"string","description":"Content of the retrieved chunk."},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp, in seconds, when the chunk was created."},"document_id":{"type":"string","description":"Identifier of the source document."},"document_name":{"type":"string","description":"Name of the source document."},"enabled":{"type":"boolean","description":"Whether the knowledge chunk is enabled."},"lang":{"type":"string","description":"Language code of the chunk."},"score":{"type":"number","format":"double","description":"Retrieval relevance score."},"source":{"type":"string","description":"Type of the knowledge source."}}}},"components/schemas/AgentExecutionLog":{"id":"components/schemas/AgentExecutionLog","kind":"json-schema","title":"AgentExecutionLog","data":{"type":"object","description":"A step recorded while the AI agent processed the message.","required":["type","timestamp"],"properties":{"type":{"type":"string","description":"Log category.","enum":["language","recall","task","knowledge","tool","internalTool","systemTask"]},"timestamp":{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when this step occurred."},"message":{"type":"string","description":"Result or detail recorded for this processing step."},"status":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Step status, such as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"certain"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"uncertain"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"success"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"name":{"type":"string","description":"Selected task, tool, or system-task name."},"costTime":{"type":"integer","format":"int64","description":"Tool execution time in milliseconds."},"kb":{"type":"array","description":"Knowledge-base results retrieved for the message.","items":{"$ref":"#/components/schemas/KnowledgeRetrievalResult"}},"entity":{"type":"object","description":"Entity data used by an internal tool.","properties":{"name":{"type":"string","description":"Entity type."},"values":{"type":"array","description":"Values extracted for the entity.","items":{}}}}}}},"components/schemas/MessageWebhookData":{"id":"components/schemas/MessageWebhookData","kind":"json-schema","title":"MessageWebhookData","data":{"type":"object","description":"The message created in 3Chat.","required":["id","dataId","senderId","workSpaceId","senderType","sendTime","content","channelId","conversationId","sessionId","createdTime","updatedTime"],"properties":{"id":{"type":"string","description":"Globally unique identifier of the message.","example":"51901704862228480"},"dataId":{"type":"string","description":"Internal data identifier of the message record.","example":"7g0rzhgjp0a3xqpdd"},"senderId":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sender identifier. Its meaning depends on "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderType"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Contact ID for "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", platform user ID for "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and AI agent ID for "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"3"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"51901681609007100"},"workSpaceId":{"type":"string","format":"uuid","description":"Identifier of the Workspace that owns the message.","example":"a4872870-3cde-47f2-830f-a5f07801790b"},"senderType":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sender type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"-1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" unknown, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"0"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" system, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" Contact, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" human agent, or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"3"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" AI agent."},"children":[]}]}]}],"enum":[-1,0,1,2,3],"example":1},"sendTime":{"type":"integer","format":"int64","description":"Unix timestamp, in seconds, when the message was sent.","example":1770489117},"content":{"type":"string","description":"Message content.","example":"Tell me about your services."},"channelId":{"allOf":[{"$ref":"#/components/schemas/WebhookEntityReference"}],"description":"Channel through which the message was sent."},"conversationId":{"allOf":[{"$ref":"#/components/schemas/WebhookEntityReference"}],"description":"Conversation that contains the message."},"sessionId":{"allOf":[{"$ref":"#/components/schemas/WebhookEntityReference"}],"description":"Dialog associated with the message."},"isEffectiveReply":{"type":"boolean","description":"Whether the message counts as an effective reply.","example":true},"email":{"$ref":"#/components/schemas/EmailMessageDetails"},"attachments":{"type":"array","description":"Files attached to the message.","items":{"$ref":"#/components/schemas/MessageAttachment"}},"agentLogs":{"type":"array","description":"Execution log produced while the AI agent processed the message.","items":{"$ref":"#/components/schemas/AgentExecutionLog"}},"createdTime":{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when the message record was created.","example":1770489117249},"updatedTime":{"type":"integer","format":"int64","description":"Unix timestamp, in milliseconds, when the message record was last updated.","example":1747115523185},"thirdId":{"type":"string","description":"Message identifier assigned by the external channel.","example":"external_message_id"},"replyMessageId":{"type":"string","description":"Identifier of the message to which this message replies.","example":"reply_message_id"},"processedBy":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Processing owner: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"0"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" unmarked, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" human agent, or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" AI agent."},"children":[]}]}]}],"enum":[0,1,2],"example":2}}}},"components/schemas/ChatGroupCreatedWebhookEvent":{"id":"components/schemas/ChatGroupCreatedWebhookEvent","kind":"json-schema","title":"ChatGroupCreatedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"ec7ca9e0-9800-43e5-b433-68f979e7ef5c"},"businessType":{"type":"integer","description":"Business type code. The value is 15036 for Chat Group Created.","const":15036,"example":15036},"data":{"$ref":"#/components/schemas/ChatGroupWebhookData"}},"example":{"requestId":"ec7ca9e0-9800-43e5-b433-68f979e7ef5c","businessType":15036,"data":{"updatedTime":1785155638473,"lookup_2e4hdgd7hg":2,"dataId":"144304948082573313","extendMap":{},"name":"Product discussion group","createdTime":1784465973920,"externalGroupId":"R:10970772183721730","id":"144304948082573313","avatar":"https://example.com/chat-group/avatar.png","channelId":{"id":"143555921712459776","value":"143555921712459776","entityKey":"butlerChannel","viewKey":"butlerChannel"}}}}},"components/schemas/ChatGroupUpdatedWebhookEvent":{"id":"components/schemas/ChatGroupUpdatedWebhookEvent","kind":"json-schema","title":"ChatGroupUpdatedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"ec7ca9e0-9800-43e5-b433-68f979e7ef5c"},"businessType":{"type":"integer","description":"Business type code. The value is 15037 for Chat Group Updated.","const":15037,"example":15037},"data":{"$ref":"#/components/schemas/ChatGroupWebhookData"}},"example":{"requestId":"ec7ca9e0-9800-43e5-b433-68f979e7ef5c","businessType":15037,"data":{"updatedTime":1785155638473,"lookup_2e4hdgd7hg":2,"dataId":"144304948082573313","extendMap":{"customerTier":"standard"},"name":"Product discussion group","createdTime":1784465973920,"externalGroupId":"R:10970772183721730","id":"144304948082573313","avatar":"https://example.com/chat-group/avatar.png","channelId":{"id":"143555921712459776","value":"143555921712459776","entityKey":"butlerChannel","viewKey":"butlerChannel"}}}}},"components/schemas/MessageCreatedWebhookEvent":{"id":"components/schemas/MessageCreatedWebhookEvent","kind":"json-schema","title":"MessageCreatedWebhookEvent","data":{"type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"ec7ca9e0-9800-43e5-b433-68f979e7ef5c"},"businessType":{"type":"integer","description":"Business type code. The value is 15016 for Message Created.","const":15016,"example":15016},"data":{"$ref":"#/components/schemas/MessageWebhookData"}},"example":{"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":{"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":["support@example.com"],"cc":[],"bcc":[],"subject":"Product inquiry"},"attachments":[{"key":"attachment_001","name":"product.png","contentType":"image/png","url":"https://example.com/files/product.png","size":3132}],"agentLogs":[{"type":"language","message":"English","status":"certain","timestamp":1762915391425}],"createdTime":1770489117249,"updatedTime":1770489117249,"thirdId":"external_message_id","replyMessageId":"reply_message_id","processedBy":2}}}},"schema_112":{"kind":"json-schema","data":{"type":"string"},"id":"schema_112"},"schema_113":{"kind":"json-schema","data":{"title":"Dialog Created event payload","type":"object","additionalProperties":false,"required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Unique identifier for this webhook delivery.","example":"03703d30-50f2-4103-bdb6-8aa331f36cc5"},"businessType":{"type":"integer","description":"Business type code. The value is 15013 for Dialog Created.","const":15013,"example":15013},"data":{"type":"object","description":"The dialog that was created.","additionalProperties":false,"required":["id","workSpaceId","type","channelId","visitorId","lastMessageId","createdTime","updatedTime"],"properties":{"id":{"type":"string","description":"Unique identifier of the dialog.","example":"sess_p2p_001"},"workSpaceId":{"type":"string","description":"Identifier of the 3Chat Workspace that owns the dialog.","example":"ws_001"},"type":{"type":"string","description":"Dialog type.","example":"p2p"},"channelId":{"type":"object","description":"Channel associated with the dialog.","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier of the channel.","example":"ch_livechat_01"}}},"visitorId":{"type":"object","description":"Visitor associated with the dialog.","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier of the visitor.","example":"visitor_123"}}},"lastMessageId":{"type":"object","description":"Latest message in the dialog when the event was generated.","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier of the latest message.","example":"msg_202"}}},"createdTime":{"type":"integer","format":"int64","description":"Unix timestamp when the dialog was created.","example":1690000000},"updatedTime":{"type":"integer","format":"int64","description":"Unix timestamp when the dialog was last updated.","example":1690003600}}}}},"id":"schema_113"},"schema_114":{"kind":"json-schema","data":{"type":"string","const":"15009"},"id":"schema_114"},"schema_115":{"kind":"json-schema","data":{"type":"string","const":"15010"},"id":"schema_115"},"schema_116":{"kind":"json-schema","data":{"type":"string","const":"15000"},"id":"schema_116"},"schema_117":{"kind":"json-schema","data":{"type":"string","const":"15001"},"id":"schema_117"},"schema_118":{"kind":"json-schema","data":{"type":"string","const":"15006"},"id":"schema_118"},"schema_119":{"kind":"json-schema","data":{"type":"string","const":"15002"},"id":"schema_119"},"schema_120":{"kind":"json-schema","data":{"type":"string","const":"15003"},"id":"schema_120"},"schema_121":{"kind":"json-schema","data":{"type":"string","const":"15036"},"id":"schema_121"},"schema_122":{"kind":"json-schema","data":{"type":"string","const":"15037"},"id":"schema_122"},"schema_123":{"kind":"json-schema","data":{"type":"string","const":"15016"},"id":"schema_123"}},"exampleStore":{"paths/BUTLER_DIALOG_CREATED/post/requestBody/content/application~1json/examples/dialogCreated":{"value":{"requestId":"03703d30-50f2-4103-bdb6-8aa331f36cc5","businessType":15013,"data":{"id":"sess_p2p_001","workSpaceId":"ws_001","type":"p2p","channelId":{"id":"ch_livechat_01"},"visitorId":{"id":"visitor_123"},"lastMessageId":{"id":"msg_202"},"createdTime":1690000000,"updatedTime":1690003600}},"key":"dialogCreated","summary":"Dialog Created payload","id":"paths/BUTLER_DIALOG_CREATED/post/requestBody/content/application~1json/examples/dialogCreated"}},"securitySchemeStore":{"bearerAuth":{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}},"servers":[{"url":"/_mock/apis/3chat-webhooks","isMockServer":true,"description":"Mock server"}],"specType":"openapi"},"options":{"mockServer":{"url":"/_mock/apis/3chat-webhooks","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/3chat-webhooks.json?download"},{"url":"/_bundle/apis/3chat-webhooks.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"3Chat Webhook Event Reference","description":"Structured reference for outbound webhook events sent by 3Chat to developer-configured HTTPS endpoints."}},"baseSlug":"/apis/3chat-webhooks","routesMapping":{}}