# 客服转介会话
请求方式:POST
请求地址:https://$basehost/gateway/eaopen/TransferChat
body参数:
{
"customer_service_account": "pzer",
"robot_id": "accuQiY9a1jbTwinD",
"contact_id": "acc5sJewVgUdp8bu",
"mark": "某某原因"
}
字段 | 类型 | 必填 | 说明 |
---|---|---|---|
customer_service_account | string | 否 | 客服登录账号 |
customer_service_open_id | string | 否 | 客服id,customer_service_account、customer_service_open_id二选一必传一个 |
robot_id | string | 是 | 机器人open id |
contact_id | string | 是 | 客户open id |
mark | string | 否 | 转介备注,最多允许100个字符 |
返回值:
{
"errcode": 0,
"errmsg": "",
"hint": "anr552fds888rfd"
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
errcode | int | 状态码,0为正常,非0代表错误 |
errmsg | string | 错误信息 |
hint | string | 请求日志ID |
完整请求示例:
curl --location --request POST 'http://$basehost/gateway//eaopen/TransferChat' \
--header 'Token: token' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_service_account": "pzer",
"robot_id": "accuQiY9a1jbTwinD",
"contact_id": "acc5sJewVgUdp8bu",
"mark": "某某原因"
}'
← 设置会话已回复 创建客服工作台客服分组 →