对话JSON格式
Name | Type | Comment |
---|
chat_id | integer | 对话ID |
type | string | 对话类型 |
started_by | string | 对话创建者的身份类型 |
status | string | 对话状态 |
agent_ids | string | 对话受理坐席ID |
rating | string | 满意度评分 |
visitor_id | string | 访客ID |
created | string | 对话创建时间 |
assigneed | string | 对话受理时间 |
end | string | 对话结束时间 |
messages | array | 对话的消息列表【查看指定对话时】 |
agent_name | string | 客服昵称 |
visitor_name | string | 访客昵称 |
chat_from | string | 来源 |
user_id | integer | 工单系统用户ID |
organization_id | integer | 公司组织ID |
organization_name | string | 公司组织名称 |
对话JSON示例
{
"id": 290,
"type": "chat",
"started_by": "visitor",
"status": "close",
"agent_id": 2192,
"rating": null,
"visitor_id": 547,
"user_id": 45190,
"created_at": "2015-04-25 08:04:12",
"assigned_at": "2015-04-25 08:04:41",
"end_at": "2015-04-30 09:55:01",
"user_id": 733,
"organization_id": 93823,
"organization_name": "销售部门",
"messages": [
{
"id": 2619,
"chat_id": 290,
"type": "chat.memberjoin",
"name": "访客5",
"msg": "你好",
"upload_id": null,
"is_read": 1,
"created_at": "2015-04-25 08:04:12",
"upload": null
},
{
"id": 2620,
"chat_id": 290,
"type": "chat.msg",
"name": "访客5",
"msg": "你好,在吗?",
"upload_id": null,
"is_read": 1,
"created_at": "2015-04-25 08:04:12",
"upload": null
}
]}