public class WxCpIntelligentRobotServiceImpl extends Object implements WxCpIntelligentRobotService
| 构造器和说明 |
|---|
WxCpIntelligentRobotServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
更新智能机器人
|
public WxCpIntelligentRobotCreateResponse createRobot(WxCpIntelligentRobotCreateRequest request) throws WxErrorException
WxCpIntelligentRobotServicecreateRobot 在接口中 WxCpIntelligentRobotServicerequest - 创建请求参数WxErrorException - 微信接口异常public void deleteRobot(String robotId) throws WxErrorException
WxCpIntelligentRobotServicedeleteRobot 在接口中 WxCpIntelligentRobotServicerobotId - 机器人IDWxErrorException - 微信接口异常public void updateRobot(WxCpIntelligentRobotUpdateRequest request) throws WxErrorException
WxCpIntelligentRobotServiceupdateRobot 在接口中 WxCpIntelligentRobotServicerequest - 更新请求参数WxErrorException - 微信接口异常public WxCpIntelligentRobot getRobot(String robotId) throws WxErrorException
WxCpIntelligentRobotServicegetRobot 在接口中 WxCpIntelligentRobotServicerobotId - 机器人IDWxErrorException - 微信接口异常public WxCpIntelligentRobotChatResponse chat(WxCpIntelligentRobotChatRequest request) throws WxErrorException
WxCpIntelligentRobotServicechat 在接口中 WxCpIntelligentRobotServicerequest - 聊天请求参数WxErrorException - 微信接口异常public void resetSession(String robotId, String userid, String sessionId) throws WxErrorException
WxCpIntelligentRobotServiceresetSession 在接口中 WxCpIntelligentRobotServicerobotId - 机器人IDuserid - 用户IDsessionId - 会话IDWxErrorException - 微信接口异常public WxCpIntelligentRobotSendMessageResponse sendMessage(WxCpIntelligentRobotSendMessageRequest request) throws WxErrorException
WxCpIntelligentRobotServicesendMessage 在接口中 WxCpIntelligentRobotServicerequest - 发送消息请求参数WxErrorException - 微信接口异常Copyright © 2026. All rights reserved.