Merged
Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] 请求增加 企业微信智能机器人接口
Add enterprise WeChat intelligent robot interface support
Aug 31, 2025
Owner
|
@copilot 请用中文改下描述文字,包括PR的标题 |
Contributor
Author
已将 PR 描述更新为中文。PR 标题建议修改为:「新增企业微信智能机器人接口支持」,但由于权限限制,无法直接修改标题,请您手动更新。 |
Closed
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能概述
本 PR 实现了企业微信智能机器人接口,为微信企业应用提供了全面的 API 支持,用于管理和交互 AI 驱动的机器人。
主要功能
核心组件
服务接口
API 接口
实现遵循企业微信官方 API 文档,包括以下接口:
POST /cgi-bin/intelligent_robot/create- 创建机器人POST /cgi-bin/intelligent_robot/update- 更新机器人配置POST /cgi-bin/intelligent_robot/get- 获取机器人信息POST /cgi-bin/intelligent_robot/chat- 进行 AI 对话POST /cgi-bin/intelligent_robot/reset_session- 重置对话上下文POST /cgi-bin/intelligent_robot/delete- 删除机器人Bean 类
完整的请求/响应类,支持正确的 JSON 序列化:
WxCpIntelligentRobot- 机器人实体,包含状态和元数据WxCpIntelligentRobotCreateRequest/Response- 创建机器人WxCpIntelligentRobotChatRequest/Response- AI 对话处理WxCpIntelligentRobotUpdateRequest- 机器人配置更新集成方式
该服务遵循现有的 WxJava 模式,无缝集成:
getIntelligentRobotService()添加到主WxCpService接口BaseWxCpServiceImpl中正确初始化此增强功能使开发者能够在企业微信应用中构建复杂的 AI 智能客服、内部助手和自动化对话系统。
修复 #3682。
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.