OptionalcreateOptionaldeleteconversation - DELETE /v1/aibot/bots/:botId/conversation/:conversation
删除会话
OptionalgetgetBotInfo - GET /v1/aibot/bots/:botId
获取 Agent 配置实现,返回 Agent 信息
微信基础库 wx.cloud.extend.AI.bot.get API对应接口 https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/reference-sdk-api/extend/ai.html#AI-bot-get
OptionalgetgetChatRecords - GET /v1/aibot/bots/:botId/records
查询 Agent 历史对话信息接口实现,返回历史对话记录。
注意:需在 sendMessage 接口中实现记录对话信息,并在此接口查询对话信息并中返回
微信基础库 wx.cloud.extend.AI.bot.getChatRecords API对应接口 https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/reference-sdk-api/extend/ai.html#AI-bot-getChatRecords
Optionalgetconversation - GET /v1/aibot/bots/:botId/conversation?limit=10&offset=0
查询会话
OptionalgetgetFeedback - GET /v1/aibot/bots/:botId/feedback
获取用户反馈接口实现,返回用户反馈列表
微信基础库 wx.cloud.extend.AI.bot.getFeedBack API对应接口 https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/reference-sdk-api/extend/ai.html#AI-bot-getFeedBack
OptionalgetgetRecommendQuestions - POST /v1/aibot/bots/:botId/recommend-questions
获取推荐问题接口实现,返回推荐问题列表
微信基础库 wx.cloud.extend.AI.bot.getRecommendQuestions API对应接口 https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/reference-sdk-api/extend/ai.html#AI-bot-getRecommendQuestions
Optionalgettext-to-speech - GET /v1/aibot/bots/:botId/text-to-speech
获取文字转语音结果
OptionalsendsendFeedback - POST /v1/aibot/bots/:botId/feedback
发送用户反馈接口实现,返回发送用户反馈结果
微信基础库 wx.cloud.extend.AI.bot.sendFeedback API对应接口 https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/reference-sdk-api/extend/ai.html#AI-bot-sendFeedback
sendMessage - POST /v1/aibot/bots/:botId/send-message
与 Agent 问答对话接口实现,该接口无返回值,接口内需要通过 this.sseSender 发送 Server-Sent Events 给客户端
微信基础库 wx.cloud.extend.AI.bot.sendMessage API对应接口 https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/reference-sdk-api/extend/ai.html#AI-bot-sendMessage
发送消息的输入
OptionalspeechspeechToText - POST /v1/aibot/bots/:botId/speechToText
语音转文字
Optionaltexttext-to-speech - POST /v1/aibot/bots/:botId/text-to-speech
文字转语音
Optionalupdateconversation - PATCH /v1/aibot/bots/:botId/conversation/:conversation
更新会话
conversation - POST /v1/aibot/bots/:botId/conversation
创建会话