เหตุการณ์ Webhook Callback
การสร้างบทสนทนา
เมื่อผู้ใช้สร้างบทสนทนาใหม่สำเร็จผ่าน API ระบบจะส่งเหตุการณ์ callback สำหรับการสร้างบทสนทนาไปยัง URL ของ webhook ที่กำหนดค่าไว้สำหรับช่องทาง API
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768967324,
"timestamp": 1768967324,
"created_at": 1768967324,
"updated_at": 1768967324.268219,
"event": "conversation_created"
}
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768967324,
"timestamp": 1768967324,
"created_at": 1768967324,
"updated_at": 1768967324.268219,
"event": "conversation_created"
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
ตารางพารามิเตอร์เหตุการณ์การสร้างบทสนทนา
| Field | Type | Required | Description |
|---|---|---|---|
| account | Object | No | ข้อมูลบัญชีโปรเจกต์ |
| account.id | Number | No | ID โปรเจกต์ |
| account.name | String | No | ชื่อโปรเจกต์ |
| additional_attributes | Object | No | แอททริบิวต์เพิ่มเติม |
| can_reply | Boolean | No | สามารถตอบกลับได้หรือไม่ |
| channel | String | No | ประเภทช่องทาง เช่น api หรือ email |
| contact_inbox | Object | No | ข้อมูลผู้ติดต่อ |
| contact_inbox.id | Number | No | ID ของตาราง contact_inbox ที่ใช้บันทึกความสัมพันธ์ระหว่างผู้ติดต่อกับช่องทาง |
| contact_inbox.contact_id | Number | No | ID ผู้ติดต่อ |
| contact_inbox.inbox_id | Number | No | ID ช่องทาง |
| contact_inbox.source_id | String | No | ID แหล่งที่มาของบทสนทนา เช่น user_id ของ Telegram |
| contact_inbox.created_at | String | No | เวลาที่สร้าง |
| contact_inbox.updated_at | String | No | เวลาอัปเดต |
| contact_inbox.hmac_verified | Boolean | No | สถานะการตรวจสอบ HMAC |
| contact_inbox.pubsub_token | String | No | โทเค็นสำหรับ publish-subscribe |
| id | Number | No | ID บทสนทนา |
| inbox_id | Number | No | ID ช่องทาง |
| messages | Array | No | รายการข้อความ |
| labels | Array | No | รายการป้ายกำกับ |
| meta | Object | No | เมทาดาทา |
| meta.sender | Object | No | ข้อมูลผู้ส่ง |
| meta.sender.additional_attributes | Object | No | แอททริบิวต์เพิ่มเติมของผู้ส่ง |
| meta.sender.custom_attributes | Object | No | แอททริบิวต์แบบกำหนดเองของผู้ส่ง |
| meta.sender.email | String | No | อีเมลของผู้ส่ง |
| meta.sender.id | Number | No | ID ภายในของผู้ส่งใน liveDesk |
| meta.sender.identifier | String | No | ตัวระบุของผู้ส่ง |
| meta.sender.name | String | No | ชื่อผู้ส่ง |
| meta.sender.phone_number | String | No | หมายเลขโทรศัพท์ของผู้ส่ง |
| meta.sender.thumbnail | String | No | รูปโปรไฟล์ของผู้ส่ง |
| meta.sender.blocked | Boolean | No | ผู้ส่งถูกบล็อกหรือไม่ |
| meta.sender.type | String | No | ประเภทของผู้ส่ง |
| meta.assignee | Object | No | ข้อมูลเจ้าหน้าที่บริการลูกค้าที่ได้รับมอบหมาย |
| meta.team | Object | No | ข้อมูลทีมบริการลูกค้าที่ได้รับมอบหมาย |
| meta.hmac_verified | Boolean | No | สถานะการตรวจสอบ HMAC |
| meta.channel | String | No | ประเภทช่องทาง |
| status | String | No | สถานะของบทสนทนา เช่น open หรือ closed |
| custom_attributes | Object | No | แอททริบิวต์แบบกำหนดเอง |
| snoozed_until | String | No | พักการแจ้งเตือนจนถึงเวลาที่กำหนด |
| unread_count | Number | No | จำนวนข้อความที่ยังไม่ได้อ่าน |
| first_reply_created_at | String | No | เวลาที่สร้างการตอบกลับครั้งแรก |
| priority | String | No | ระดับความสำคัญ |
| waiting_since | Number | No | เวลาเริ่มต้นการรอ |
| conversation_category | String | No | หมวดหมู่ของบทสนทนา |
| chat_mode | String | No | โหมดแชท |
| ticket_info | Object | No | ข้อมูลทิกเก็ต |
| agent_last_seen_at | Number | No | เวลาล่าสุดที่เจ้าหน้าที่เปิดดูบทสนทนา |
| contact_last_seen_at | Number | No | เวลาล่าสุดที่ผู้ติดต่อเปิดดูบทสนทนา |
| last_activity_at | Number | No | เวลากิจกรรมล่าสุด |
| timestamp | Number | No | การประทับเวลา |
| created_at | Number | No | เวลาที่สร้าง |
| updated_at | Number | No | เวลาอัปเดต |
| event | String | No | ประเภทเหตุการณ์ |
การอัปเดตบทสนทนา
เหตุการณ์นี้จะถูกทริกเกอร์เมื่อมีการอัปเดตแอททริบิวต์ใด ๆ ในบทสนทนา
{
"event": "conversation_updated",
"changed_attributes": [
{
"updated_at": {
"previous_value": "2026-01-21T04:04:56.548Z",
"current_value": "2026-01-21T04:04:56.601Z"
}
},
{
"first_reply_created_at": {
"previous_value": null,
"current_value": "2026-01-21T04:04:56.544Z"
}
},
{
"waiting_since": {
"previous_value": "2026-01-21T03:48:44.268Z",
"current_value": null
}
}
]
// <...Conversation Attributes> เนื้อหาแอททริบิวต์ของบทสนทนา
}
{
"event": "conversation_updated",
"changed_attributes": [
{
"updated_at": {
"previous_value": "2026-01-21T04:04:56.548Z",
"current_value": "2026-01-21T04:04:56.601Z"
}
},
{
"first_reply_created_at": {
"previous_value": null,
"current_value": "2026-01-21T04:04:56.544Z"
}
},
{
"waiting_since": {
"previous_value": "2026-01-21T03:48:44.268Z",
"current_value": null
}
}
]
// <...Conversation Attributes> เนื้อหาแอททริบิวต์ของบทสนทนา
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
พารามิเตอร์เหตุการณ์การอัปเดตบทสนทนา
| Field | Type | Required | Description |
|---|---|---|---|
| event | String | No | ประเภทเหตุการณ์ |
| changed_attributes | Array | No | รายการแอททริบิวต์ที่เปลี่ยนแปลง |
| changed_attributes.field_name | Object | No | ชื่อฟิลด์ที่เปลี่ยนแปลง |
| changed_attributes.field_name.previous_value | String | No | ค่าก่อนการเปลี่ยนแปลง |
| changed_attributes.field_name.current_value | String | No | ค่าหลังการเปลี่ยนแปลง |
การเปลี่ยนสถานะบทสนทนา
เหตุการณ์นี้จะถูกทริกเกอร์เมื่อสถานะของบทสนทนาเปลี่ยนแปลง
{
"event": "conversation_status_changed"
// <...Conversation Attributes> เนื้อหาแอททริบิวต์ของบทสนทนา
}
{
"event": "conversation_status_changed"
// <...Conversation Attributes> เนื้อหาแอททริบิวต์ของบทสนทนา
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
การสร้างข้อความ
เหตุการณ์นี้จะถูกทริกเกอร์เมื่อผู้ใช้หรือเจ้าหน้าที่บริการลูกค้าส่งข้อความ
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"content_attributes": {},
"content_type": "text",
"content": "How can I help you?",
"conversation": {
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [
{
"id": 2187685,
"content": "How can I help you?",
"account_id": 17629000001207,
"inbox_id": 523,
"conversation_id": 89,
"message_type": 1,
"created_at": 1768968296,
"updated_at": "2026-01-21T04:04:56.544Z",
"private": false,
"status": "sent",
"source_id": null,
"content_type": "text",
"content_attributes": {},
"sender_type": "User",
"sender_id": 41,
"external_source_ids": {},
"additional_attributes": {},
"processed_message_content": "How can I help you?",
"sentiment": {},
"sorting_id": null,
"original_message_id": null,
"conversation_topic_id": null,
"topic_id": null,
"conversation": {
"assignee_id": null,
"unread_count": 0,
"last_activity_at": 1768968296,
"contact_inbox": {
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588"
}
},
"sender": {
"id": 41,
"name": "support",
"available_name": "support",
"avatar_url": "",
"type": "user",
"availability_status": null,
"thumbnail": ""
}
}
],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768968296,
"timestamp": 1768968296,
"created_at": 1768967324,
"updated_at": 1768968296.5483441
},
"created_at": "2026-01-21T04:04:56.544Z",
"id": 2187685,
"inbox": {
"id": 523,
"name": "Test01"
},
"message_type": "outgoing",
"conversation_topic_id": null,
"private": false,
"sender": {
"id": 41,
"name": "support",
"email": "support@jiguang.cn",
"type": "user",
"availability": "online"
},
"source_id": null,
"user_id": 42213404,
"contact_id": 42218348,
"participants": null,
"event": "message_created"
}
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"content_attributes": {},
"content_type": "text",
"content": "How can I help you?",
"conversation": {
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [
{
"id": 2187685,
"content": "How can I help you?",
"account_id": 17629000001207,
"inbox_id": 523,
"conversation_id": 89,
"message_type": 1,
"created_at": 1768968296,
"updated_at": "2026-01-21T04:04:56.544Z",
"private": false,
"status": "sent",
"source_id": null,
"content_type": "text",
"content_attributes": {},
"sender_type": "User",
"sender_id": 41,
"external_source_ids": {},
"additional_attributes": {},
"processed_message_content": "How can I help you?",
"sentiment": {},
"sorting_id": null,
"original_message_id": null,
"conversation_topic_id": null,
"topic_id": null,
"conversation": {
"assignee_id": null,
"unread_count": 0,
"last_activity_at": 1768968296,
"contact_inbox": {
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588"
}
},
"sender": {
"id": 41,
"name": "support",
"available_name": "support",
"avatar_url": "",
"type": "user",
"availability_status": null,
"thumbnail": ""
}
}
],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768968296,
"timestamp": 1768968296,
"created_at": 1768967324,
"updated_at": 1768968296.5483441
},
"created_at": "2026-01-21T04:04:56.544Z",
"id": 2187685,
"inbox": {
"id": 523,
"name": "Test01"
},
"message_type": "outgoing",
"conversation_topic_id": null,
"private": false,
"sender": {
"id": 41,
"name": "support",
"email": "support@jiguang.cn",
"type": "user",
"availability": "online"
},
"source_id": null,
"user_id": 42213404,
"contact_id": 42218348,
"participants": null,
"event": "message_created"
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
ตารางพารามิเตอร์เหตุการณ์การสร้างข้อความ
| Field | Type | Required | Description |
|---|---|---|---|
| account | Object | No | ข้อมูลบัญชี |
| account.id | Number | No | ID โปรเจกต์ |
| account.name | String | No | ชื่อโปรเจกต์ |
| additional_attributes | Object | No | แอททริบิวต์เพิ่มเติม |
| content_attributes | Object | No | แอททริบิวต์ของเนื้อหา |
| content_type | String | No | ประเภทของเนื้อหา |
| content | String | No | เนื้อหาข้อความ |
| conversation | Object | No | ข้อมูลบทสนทนา |
| created_at | String | No | เวลาที่สร้าง |
| id | Number | No | ID ข้อความ |
| inbox | Object | No | ข้อมูลช่องทาง |
| inbox.id | Number | No | ID ช่องทาง |
| inbox.name | String | No | ชื่อช่องทาง |
| message_type | String | No | ประเภทข้อความ |
| conversation_topic_id | String | No | ID หัวข้อบทสนทนา |
| private | Boolean | No | ข้อความเป็นแบบส่วนตัวหรือไม่ |
| sender | Object | No | ข้อมูลผู้ส่ง |
| sender.id | Number | No | ID ผู้ส่ง |
| sender.name | String | No | ชื่อผู้ส่ง |
| sender.email | String | No | อีเมลของผู้ส่ง |
| sender.type | String | No | ประเภทผู้ส่ง |
| sender.availability | String | No | สถานะความพร้อมใช้งานของผู้ส่ง |
| source_id | String | No | ID แหล่งที่มา |
| participants | Object | No | ข้อมูลผู้เข้าร่วม |
| event | String | No | ประเภทเหตุการณ์ |
การอัปเดตข้อความ
เหตุการณ์นี้จะถูกทริกเกอร์เมื่อมีการอัปเดตเนื้อหาข้อความในบทสนทนา
{
"event": "message_updated"
// <...Message Attributes> เนื้อหาแอททริบิวต์ของข้อความ
}
{
"event": "message_updated"
// <...Message Attributes> เนื้อหาแอททริบิวต์ของข้อความ
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
การปักหมุดข้อความ
เหตุการณ์นี้จะถูกทริกเกอร์เมื่อเจ้าหน้าที่บริการลูกค้าปักหมุดหรือยกเลิกการปักหมุดข้อความ
{
"event": "message_pinned",
"id": 15680158,
"content": "hello11111 ",
"content_type": "text",
"message_type": "outgoing",
"private": false,
"source_type": "realtime",
"source_id": null,
"created_at": "2026-07-02T09:03:53.316Z",
"edited_at": "2026-07-02T09:04:02.791Z",
"pinned": true,
"pinned_at": "2026-07-02T09:04:23.748Z",
"pinned_by_id": 30,
"account": {
"id": 17829000004772,
"name": "11"
},
"inbox": {
"id": 228,
"name": "Test",
"channel_type": "Channel::Api"
},
"sender": {
"id": 30,
"name": "support",
"email": "TEST@support.cn",
"type": "user",
"availability": "online"
},
"conversation": {
"id": 202607000000002,
"inbox_id": 228,
"status": "open",
"channel_type": "Channel::Api",
"conversation_category": "chat",
"chat_mode": "private_chat",
"can_reply": true,
"unread_count": 0,
"last_activity_at": 1782983033,
"created_at": 1782982998,
"updated_at": 1782983063.750411,
"contact_inbox": {
"contact_id": 3939794,
"source_id": "5a6dbe3f-e7a7-4938-8364-1c3fe084e4a3"
},
"meta": {
"sender": {
"id": 3939794,
"name": "support11",
"email": "support11@engagelab.com",
"phone_number": "+123456111789",
"type": "contact"
},
"assignee": {
"id": 30,
"name": "TEST",
"type": "user"
}
}
}
}
{
"event": "message_pinned",
"id": 15680158,
"content": "hello11111 ",
"content_type": "text",
"message_type": "outgoing",
"private": false,
"source_type": "realtime",
"source_id": null,
"created_at": "2026-07-02T09:03:53.316Z",
"edited_at": "2026-07-02T09:04:02.791Z",
"pinned": true,
"pinned_at": "2026-07-02T09:04:23.748Z",
"pinned_by_id": 30,
"account": {
"id": 17829000004772,
"name": "11"
},
"inbox": {
"id": 228,
"name": "Test",
"channel_type": "Channel::Api"
},
"sender": {
"id": 30,
"name": "support",
"email": "TEST@support.cn",
"type": "user",
"availability": "online"
},
"conversation": {
"id": 202607000000002,
"inbox_id": 228,
"status": "open",
"channel_type": "Channel::Api",
"conversation_category": "chat",
"chat_mode": "private_chat",
"can_reply": true,
"unread_count": 0,
"last_activity_at": 1782983033,
"created_at": 1782982998,
"updated_at": 1782983063.750411,
"contact_inbox": {
"contact_id": 3939794,
"source_id": "5a6dbe3f-e7a7-4938-8364-1c3fe084e4a3"
},
"meta": {
"sender": {
"id": 3939794,
"name": "support11",
"email": "support11@engagelab.com",
"phone_number": "+123456111789",
"type": "contact"
},
"assignee": {
"id": 30,
"name": "TEST",
"type": "user"
}
}
}
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
ตารางพารามิเตอร์เหตุการณ์การปักหมุดข้อความ
| Field | Type | Required | Description |
|---|---|---|---|
| pinned | Boolean | No | ข้อความถูกปักหมุดหรือไม่; true หมายถึงปักหมุด และ false หมายถึงยกเลิกการปักหมุด |
| pinned_at | String | No | เวลาที่ปักหมุดข้อความ; อาจว่างเปล่าได้หากข้อความยังไม่ได้ถูกปักหมุด |
| pinned_by_id | Number | No | ID เจ้าหน้าที่บริการลูกค้าที่ดำเนินการปักหมุด |
| additional_attributes | Object | No | แอททริบิวต์เพิ่มเติม |
| source_id | String | No | ID แหล่งที่มา |
| participants | Object | No | ข้อมูลผู้เข้าร่วม |
| event | String | No | ประเภทเหตุการณ์ |
การแก้ไขข้อความ
เหตุการณ์นี้จะถูกทริกเกอร์เมื่อมีการแก้ไขเนื้อหาข้อความ โปรดทราบว่าสามารถแก้ไขได้เฉพาะข้อความที่ส่งโดยเจ้าหน้าที่บริการลูกค้าเท่านั้น
{
"event": "message_updated",
"id": 15680162,
"content": "Hello. How can I help you? ",
"content_type": "text",
"message_type": "outgoing",
"private": false,
"source_type": "realtime",
"source_id": null,
"created_at": "2026-07-02T10:32:51.420Z",
"edited_at": "2026-07-02T10:33:27.004Z",
"content_attributes": {
"edited_at": "2026-07-02T10:33:27.004Z"
},
"account": {
"id": 17829000004772,
"name": "11"
},
"inbox": {
"id": 228,
"name": "Test",
"channel_type": "Channel::Api"
},
"sender": {
"id": 30,
"name": "ye 88",
"type": "user"
},
"conversation": {
"id": 202607000000001,
"inbox_id": 228,
"status": "open",
"channel_type": "Channel::Api",
"conversation_category": "chat",
"chat_mode": "private_chat",
"can_reply": true,
"unread_count": 0,
"last_activity_at": 1782988371,
"created_at": 1782972594,
"updated_at": 1782988407.015933,
"contact_inbox": {
"contact_id": 3939794,
"source_id": "73e836b0-a893-41c2-b7e9-09a26a7332c8"
},
"messages": [
{
"id": 15680162,
"content": "Hello. How can I help you? ",
"inbox_id": 228,
"conversation_id": 202607000000001,
"message_type": 1,
"created_at": 1782988371,
"updated_at": "2026-07-02T10:33:27.013Z",
"private": false,
"status": "sent",
"source_id": null,
"content_type": "text",
"content_attributes": {
"edited_at": "2026-07-02T10:33:27.004Z"
},
"sender_type": "User",
"sender_id": 30,
"processed_message_content": "Hello. How can I help you? ",
"original_content": "Hello. ",
"source_type": "realtime",
"sender": {
"id": 30,
"name": "ye 88",
"type": "user"
}
}
]
}
}
{
"event": "message_updated",
"id": 15680162,
"content": "Hello. How can I help you? ",
"content_type": "text",
"message_type": "outgoing",
"private": false,
"source_type": "realtime",
"source_id": null,
"created_at": "2026-07-02T10:32:51.420Z",
"edited_at": "2026-07-02T10:33:27.004Z",
"content_attributes": {
"edited_at": "2026-07-02T10:33:27.004Z"
},
"account": {
"id": 17829000004772,
"name": "11"
},
"inbox": {
"id": 228,
"name": "Test",
"channel_type": "Channel::Api"
},
"sender": {
"id": 30,
"name": "ye 88",
"type": "user"
},
"conversation": {
"id": 202607000000001,
"inbox_id": 228,
"status": "open",
"channel_type": "Channel::Api",
"conversation_category": "chat",
"chat_mode": "private_chat",
"can_reply": true,
"unread_count": 0,
"last_activity_at": 1782988371,
"created_at": 1782972594,
"updated_at": 1782988407.015933,
"contact_inbox": {
"contact_id": 3939794,
"source_id": "73e836b0-a893-41c2-b7e9-09a26a7332c8"
},
"messages": [
{
"id": 15680162,
"content": "Hello. How can I help you? ",
"inbox_id": 228,
"conversation_id": 202607000000001,
"message_type": 1,
"created_at": 1782988371,
"updated_at": "2026-07-02T10:33:27.013Z",
"private": false,
"status": "sent",
"source_id": null,
"content_type": "text",
"content_attributes": {
"edited_at": "2026-07-02T10:33:27.004Z"
},
"sender_type": "User",
"sender_id": 30,
"processed_message_content": "Hello. How can I help you? ",
"original_content": "Hello. ",
"source_type": "realtime",
"sender": {
"id": 30,
"name": "ye 88",
"type": "user"
}
}
]
}
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
ตารางพารามิเตอร์เหตุการณ์การแก้ไขข้อความ
| Field | Type | Required | Description |
|---|---|---|---|
| edited_at | String | No | เวลาที่แก้ไขเนื้อหา |
| original_content | String | No | เนื้อหาต้นฉบับก่อนการแก้ไข |
| processed_message_content | String | No | เนื้อหาข้อความหลังการประมวลผล |
การเพิกถอนข้อความ
เหตุการณ์นี้จะถูกทริกเกอร์เมื่อเจ้าหน้าที่บริการลูกค้าเพิกถอนข้อความ
{
"event": "message_revoked",
"id": 15680158,
"content": "hello11111 ",
"content_type": "text",
"message_type": "outgoing",
"private": false,
"source_type": "realtime",
"source_id": null,
"created_at": "2026-07-02T09:03:53.316Z",
"edited_at": "2026-07-02T09:04:02.791Z",
"revoked_at": "2026-07-02T09:05:10.918Z",
"revoked_by_id": 30,
"account": {
"id": 17829000004772,
"name": "11"
},
"inbox": {
"id": 228,
"name": "Test",
"channel_type": "Channel::Api"
},
"sender": {
"id": 30,
"name": "support",
"email": "TEST@Support.cn",
"type": "user",
"availability": "online"
},
"conversation": {
"id": 202607000000002,
"inbox_id": 228,
"status": "open",
"channel_type": "Channel::Api",
"conversation_category": "chat",
"chat_mode": "private_chat",
"can_reply": true,
"unread_count": 0,
"last_activity_at": 1782983033,
"created_at": 1782982998,
"updated_at": 1782983110.928425,
"contact_inbox": {
"contact_id": 3939794,
"source_id": "5a6dbe3f-e7a7-4938-8364-1c3fe084e4a3"
},
"meta": {
"sender": {
"id": 3939794,
"name": "support11",
"email": "support11@engagelab.com",
"phone_number": "+123456111789",
"type": "contact"
},
"assignee": {
"id": 30,
"name": "TEST",
"type": "user"
}
}
}
}
{
"event": "message_revoked",
"id": 15680158,
"content": "hello11111 ",
"content_type": "text",
"message_type": "outgoing",
"private": false,
"source_type": "realtime",
"source_id": null,
"created_at": "2026-07-02T09:03:53.316Z",
"edited_at": "2026-07-02T09:04:02.791Z",
"revoked_at": "2026-07-02T09:05:10.918Z",
"revoked_by_id": 30,
"account": {
"id": 17829000004772,
"name": "11"
},
"inbox": {
"id": 228,
"name": "Test",
"channel_type": "Channel::Api"
},
"sender": {
"id": 30,
"name": "support",
"email": "TEST@Support.cn",
"type": "user",
"availability": "online"
},
"conversation": {
"id": 202607000000002,
"inbox_id": 228,
"status": "open",
"channel_type": "Channel::Api",
"conversation_category": "chat",
"chat_mode": "private_chat",
"can_reply": true,
"unread_count": 0,
"last_activity_at": 1782983033,
"created_at": 1782982998,
"updated_at": 1782983110.928425,
"contact_inbox": {
"contact_id": 3939794,
"source_id": "5a6dbe3f-e7a7-4938-8364-1c3fe084e4a3"
},
"meta": {
"sender": {
"id": 3939794,
"name": "support11",
"email": "support11@engagelab.com",
"phone_number": "+123456111789",
"type": "contact"
},
"assignee": {
"id": 30,
"name": "TEST",
"type": "user"
}
}
}
}
โค้ดนี้โชว์เป็นหน้าต่างลอย
ตารางพารามิเตอร์เหตุการณ์การเพิกถอนข้อความ
| Field | Type | Required | Description |
|---|---|---|---|
| revoked_at | String | No | เวลาเพิกถอน |
| revoked_by_id | String | No | ID เจ้าหน้าที่บริการลูกค้าที่ดำเนินการเพิกถอน |










