sendChatMessage发送消息失败,报错fail_nopermission

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:05 4968 0 全屏看文

AI助手支持GPT4.0

sendChatMessage发送消息失败,报错fail_nopermission

前期工作:

1、config返回ok

2、agentConfig返回ok

3、判断当前客户端是否支持checkJsApi,"sendChatMessage": true

4、后台配置(配置客户联系功能权限)ok,外部联系人选人接口(selectExternalContact)调用成功,该接口与sendChatMessage接口配置相似

发送消息:

报错信息:

sendChatMessage: fail_nopermission


原因和解决办法是什么?

Preliminary work: 1. Config returns OK; 2. Agentconfig returns OK; 3. Judge whether the current client supports checkjsapi, "sendchatmessage": true; 4. Background configuration (configuration of customer contact function authority) ok; external contact interface (select external contact) is successfully called. The configuration of this interface is similar to that of sendchatmessage interface sendChatMessage: fail_ What are the reasons and solutions for nopermission?

回答:

企业微信运营专员-千夜:
您好,聊天工具栏sendmessage发送消息提示fail_nopermission,是否是在agentconfig调用成功之后再起调用的呢,如果不是agentconfig调用成功之后调用就会报这个没有权限的


伍:问题已解决,我的问题,我原以为企业微信后台配置好了,后来发现没有给应用配置客户联系功能权限
伍:感谢哈哈

-EOF-

AI助手支持GPT4.0