接口路径(新):http://api.okayapi.com/api/App/Market_Kefu/AutoReply
接口路径(旧):http://api.okayapi.com/?s=App.Market_Kefu.AutoReply
接口描述: 根据关键词配置,自动回复内容,并按reply_sort权重从大到小排序。若未能匹配,将会从yesapi_kefu_auto_reply配置表中获取关键词为空的作为替补。如果常规分词还不能满足,请联系我们进行优化升级或定制。使用前请先安装在线客服-自动回复
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
text | String | Required | 客户发送过来的文本消息内容 | ||
num | Int | Optaion | 10 | MIN: 1 | 返回的回复条数 |
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
items | Array | 自动回复的内容 |
items[].reply_keyword | String | 匹配的关键词 |
items[].reply_content | String | 回复的内容 |
items[].reply_url | String | 回复的链接 |
Power by OkayAPI.com Contact us (WA: okayapi OR Email: chanzonghuang@gmail.com).
Timezone: America/New_York May/09/2025 03:15:38