Skip to main content
Connects a DingTalk, WeCom, Feishu or Slack bot to an agent. The integration is enabled at once and starts in status pending. DingTalk, Feishu and Slack credentials are verified with the platform before anything is saved (an access-token exchange or auth.test — no message is sent); WeCom credentials are checked by connecting, so follow status with Get IM Integration. A bot can be connected only once. You also need write access to read_write_project_id and search access to each read-only project.
Permission required: workspace:integration_manage on workspace_id
  • When you set read_write_project_id: project:mem_add on read_write_project_id
  • When you set read_only_project_ids: project:mem_search on read_only_project_ids

Headers

string
Optional. Retrying with the same value replays the first result instead of creating a second integration. Credential values are not compared.

Request Body

string
required
Agent that answers messages sent to the bot
string
required
IM platform. Must be enabled on this deployment. One of: dingtalk, wecom, feishu, slack.
object
required
Write-only. dingtalk: appKey + appSecret; feishu: appId + appSecret; slack: botToken + appToken; wecom: botId + secret. DingTalk, Feishu and Slack credentials are verified with the platform before saving.
string
required
Display name
string
required
Project that memories extracted from IM conversations are written to. Anyone who can message the bot can add to it.
string
required
Workspace the integration belongs to. Cannot change later.
integer
Maximum messages handled per day; omit or 0 = unlimited
array
Open-data datasets the agent may use
array
Additional projects searched (read only). Must not repeat read_write_project_id.
object
Channel-specific settings

Response

object

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.