1.0 KiB
1.0 KiB
Agent Foundation
Java Spring Boot service for Enterprise WeChat callbacks and internal APIs.
Core API
- POST
/v1/chat/completions - GET
/v1/healthz
WeCom Callback
- Callback URL:
/v1/integrations/wecom/callback - Verifies Enterprise WeChat callback signatures
- Decrypts encrypted callback payloads when safe mode is enabled
- Deduplicates text messages
- Sends a fixed text reply:
你好
The old internal agent orchestration code has been removed. Future intelligent responses should be connected through Coze while keeping this callback entrypoint.
Required env vars
DEEPSEEK_API_KEYWECOM_CORP_IDWECOM_AGENT_IDWECOM_SECRETWECOM_TOKEN
WeCom backend settings
- Create a WeCom self-built app.
- Enable message receive API and set callback URL to:
https://your-domain/v1/integrations/wecom/callback
- Set callback Token equal to
WECOM_TOKEN. - Make sure app has send-message permission to internal users.
Run
- Set env vars.
- Start app from IDE or
mvn spring-boot:run.