mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-28 14:32:05 +08:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
---
|
|
title: DingTalk
|
|
description: Integrate CowAgent into DingTalk application
|
|
---
|
|
|
|
Integrate CowAgent into DingTalk by creating an intelligent robot app on the DingTalk Open Platform.
|
|
|
|
## 1. Create App
|
|
|
|
1. Go to [DingTalk Developer Console](https://open-dev.dingtalk.com/fe/app#/corp/app), click **Create App**, fill in app information
|
|
2. Click **Add App Capability**, select **Robot** capability and add
|
|
3. Configure robot information and click **Publish**
|
|
|
|
## 2. Project Configuration
|
|
|
|
1. Get `Client ID` and `Client Secret` from **Credentials & Basic Info**
|
|
|
|
2. Fill in `config.json`:
|
|
|
|
```json
|
|
{
|
|
"channel_type": "dingtalk",
|
|
"dingtalk_client_id": "YOUR_CLIENT_ID",
|
|
"dingtalk_client_secret": "YOUR_CLIENT_SECRET"
|
|
}
|
|
```
|
|
|
|
3. Install dependency:
|
|
|
|
```bash
|
|
pip3 install dingtalk_stream
|
|
```
|
|
|
|
4. After starting the project, go to DingTalk Developer Console **Event Subscription**, click **Connection verified, verify channel**. When "Connection successful" is displayed, configuration is complete
|
|
|
|
## 3. Usage
|
|
|
|
Chat privately with the robot or add it to an enterprise group to start a conversation.
|