微信客服指定客服发送消息

2023年4月11日15:43:17

官方文档:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html#7

参看的easywechat的代码: https://easywechat.com/3.x/staff.html#指定客服发送消息
我有点奇怪的是我在官方文档里没有找到对应的指定客服发送消息,看源码之后后才知道怎么发送参数:

{
    "touser":"open_id",
    "msgtype":"text",
    "text":{
        "content":"客服测试消息2023-04-11 15:51:29"
    },
    "customservice":{
        "kf_account":"kf@gh_1111"
    }
}

kf_account 前面是客服前缀@后面是微信公众号
nickname 最好使用英文,中文容易出现不合法的问题

posted on 2023-04-11 15:54  zh7314  阅读(37)  评论(0编辑  收藏  举报