docs/src/content/docs/en/relay-agents-in-im-with-bots/dingtalk.md
DingTalk is for bringing agent messages into an enterprise collaboration environment. CCR connects to DingTalk apps using App Secret auth.
New to bots? Start with the "Bots And IM Agent Relay" section in Detailed Configuration to understand the overall flow and the Forward agent messages and Handoff modes, then come back here.
| Name in the DingTalk dashboard | CCR field | Required | Notes |
|---|---|---|---|
| Client ID / AppKey | App Key | Required | App identifier |
| Client Secret / AppSecret | App Secret | Required | App secret |
| RobotCode | Robot Code | Optional | May be needed for multi-bot or media scenarios |
Newer DingTalk configures the bot as an "app capability" — don't start from the old standalone "bot" entry.
应用开发 (App Development) at the top.创建应用 (Create App).CCR.应用信息 (App Info) or 凭证与基础信息 (Credentials & Basic Info).Client ID for CCR's App Key.Client Secret for CCR's App Secret.The dashboard may still show the old names
AppKey/AppSecret— map them by field name.
机器人与消息推送 (Bot & Message Push), or open 应用能力 (App Capabilities) and choose 机器人 (Bot).机器人配置 (Bot Config).RobotCode, copy it for CCR's Robot Code.版本管理与发布 (Version Management & Release) and create a new version.For lock-screen-only alerts, use Handoff without Forward agent messages.
How to tell it worked: DingTalk shows the agent's message, and replies keep the agent going.