Skip to main content
Integrate CowAgent into DingTalk by creating an intelligent robot app on the DingTalk Open Platform.

1. Create App

  1. Go to DingTalk Developer Console, log in and click Create App, fill in the app information:
  1. Click Add App Capability, select Robot capability and click Add:
  1. Configure the robot information and click Publish. After publishing, click “Debug” to automatically create a test group chat, which can be viewed in the client:
  1. Click Version Management & Release, create a new version and publish:

2. Project Configuration

  1. Click Credentials & Basic Info, get the Client ID and Client Secret:
  1. Add the following configuration to config.json in the project root:
{
  "channel_type": "dingtalk",
  "dingtalk_client_id": "YOUR_CLIENT_ID",
  "dingtalk_client_secret": "YOUR_CLIENT_SECRET"
}
  1. Install the dependency:
pip3 install dingtalk_stream
  1. After starting the project, go to the DingTalk Developer Console, click Event Subscription, then click Connection verified, verify channel. When “Connection successful” is displayed, the configuration is complete:

3. Usage

Chat privately with the robot or add it to an enterprise group to start a conversation: