微信客服消息发送接口指定客服发送消息问题

客服接口-发消息

接口调用请求说明

http请求方式: POST
https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN

请注意,如果需要以某个客服帐号来发消息(在微信6.0.2及以上版本中显示自定义头像),则需在JSON数据包的后半部分加入customservice参数,例如发送文本消息则改为:
{

"touser":"OPENID",
"msgtype":"text",
"text":
{
     "content":"Hello World"
},
"customservice":
{
     "kf_account": "test1@kftest"
}

}

多客服已经添加,添加customservice无效,没有使用指定客服。有谁用过吗,求指教?

找到解决办法了:
customservice放在回复内容前面
{

"touser":"OPENID",
"msgtype":"text",
"customservice":
{
     "kf_account": "test1@kftest"
},
"text":
{
     "content":"Hello World"
}

}
我也是醉了

阅读 8.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题