$baseUrl
$baseUrl :
Class Chatbot 企业聊天机器人
conversation( $userId, $textMessage) : mixed
检索多轮对话
| $userId | 用户唯一标识 |
|
| $textMessage | 问题 |
| None found |
faq( $userId, $query) : mixed
检索机器人知识库
| $userId | 用户唯一标识 |
|
| $query | 问题 |
| None found |
users(integer $limit = 50, integer $page = 1, string $sortby = "-lasttime") : mixed
查询用户列表
| integer | $limit | 每页数据条数 |
| integer | $page | 页面索引 |
| string | $sortby | 排序规则 |
| None found |
chats( $userId, integer $limit = 50, integer $page = 1, string $sortby = '-lasttime') : mixed
查看一个用户的聊天历史
| $userId | 用户唯一标识 |
|
| integer | $limit | 每页数据条数 |
| integer | $page | 页面索引 |
| string | $sortby | 排序规则[-lasttime: 最后对话时间降序] |
| None found |
mute( $userId) : boolean
屏蔽用户
| $userId | 用户唯一标识 |
执行是否成功
| None found |
unmute( $userId) : boolean
取消屏蔽用户
| $userId | 用户唯一标识 |
执行是否成功
| None found |
ismute( $userId) : boolean
检测用户是否被屏蔽
| $userId | 用户唯一标识 |
用户是否被屏蔽
| None found |
| None found |
| None found |
| None found |
intentChat( $sessionId, $uid, $textMessage)
意图对话
| $sessionId | ||
| $uid | ||
| $textMessage |
| None found |
psychChat( $channel, $channelId, $userId, $textMessage)
心理咨询聊天
| $channel | ||
| $channelId | ||
| $userId | ||
| $textMessage |
| None found |
| None found |