Add enterprise WeChat intelligent robot interface support #3684
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.
This PR implements the enterprise WeChat intelligent robot interface as requested, providing comprehensive API support for managing and interacting with AI-powered robots in WeChat Work applications.
Overview
The implementation adds a new
WxCpIntelligentRobotService
that enables developers to:Key Components
Service Interface
API Endpoints
The implementation follows WeChat Work's official API documentation and includes endpoints for:
POST /cgi-bin/intelligent_robot/create
- Create robotsPOST /cgi-bin/intelligent_robot/update
- Update robot configurationPOST /cgi-bin/intelligent_robot/get
- Retrieve robot informationPOST /cgi-bin/intelligent_robot/chat
- Conduct AI conversationsPOST /cgi-bin/intelligent_robot/reset_session
- Reset conversation contextPOST /cgi-bin/intelligent_robot/delete
- Remove robotsBean Classes
Complete set of request/response classes with proper JSON serialization:
WxCpIntelligentRobot
- Robot entity with status and metadataWxCpIntelligentRobotCreateRequest/Response
- Robot creationWxCpIntelligentRobotChatRequest/Response
- AI conversation handlingWxCpIntelligentRobotUpdateRequest
- Robot configuration updatesIntegration
The service follows existing WxJava patterns and integrates seamlessly:
WxCpService
interface asgetIntelligentRobotService()
BaseWxCpServiceImpl
This enhancement enables developers to build sophisticated AI-powered customer service, internal assistants, and automated conversation systems within enterprise WeChat applications.
Fixes #3682.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.