public interface WxCpIntelligentRobotService
| 限定符和类型 | 方法和说明 |
|---|---|
WxCpIntelligentRobotChatResponse |
chat(WxCpIntelligentRobotChatRequest request)
智能机器人会话
|
WxCpIntelligentRobotCreateResponse |
createRobot(WxCpIntelligentRobotCreateRequest request)
创建智能机器人
|
void |
deleteRobot(String robotId)
删除智能机器人
|
WxCpIntelligentRobot |
getRobot(String robotId)
查询智能机器人
|
void |
resetSession(String robotId,
String userid,
String sessionId)
重置智能机器人会话
|
WxCpIntelligentRobotSendMessageResponse |
sendMessage(WxCpIntelligentRobotSendMessageRequest request)
智能机器人主动发送消息
官方文档: https://developer.work.weixin.qq.com/document/path/100719
|
void |
updateRobot(WxCpIntelligentRobotUpdateRequest request)
更新智能机器人
|
WxCpIntelligentRobotCreateResponse createRobot(WxCpIntelligentRobotCreateRequest request) throws WxErrorException
request - 创建请求参数WxErrorException - 微信接口异常void deleteRobot(String robotId) throws WxErrorException
robotId - 机器人IDWxErrorException - 微信接口异常void updateRobot(WxCpIntelligentRobotUpdateRequest request) throws WxErrorException
request - 更新请求参数WxErrorException - 微信接口异常WxCpIntelligentRobot getRobot(String robotId) throws WxErrorException
robotId - 机器人IDWxErrorException - 微信接口异常WxCpIntelligentRobotChatResponse chat(WxCpIntelligentRobotChatRequest request) throws WxErrorException
request - 聊天请求参数WxErrorException - 微信接口异常void resetSession(String robotId, String userid, String sessionId) throws WxErrorException
robotId - 机器人IDuserid - 用户IDsessionId - 会话IDWxErrorException - 微信接口异常WxCpIntelligentRobotSendMessageResponse sendMessage(WxCpIntelligentRobotSendMessageRequest request) throws WxErrorException
request - 发送消息请求参数WxErrorException - 微信接口异常Copyright © 2026. All rights reserved.