-
Notifications
You must be signed in to change notification settings - Fork 1.3k
DingTalk Bot Setup Guide
This guide covers how to create and configure a DingTalk bot to connect with AionUi, enabling AI assistant interactions through DingTalk.
AionUi supports DingTalk bot integration, allowing you to chat with your AI assistant directly through DingTalk. This guide will walk you through:
- Creating a bot application on DingTalk Open Platform
- Configuring credentials in AionUi
- Authorizing users and starting conversations
- A DingTalk account with developer access
- AionUi application installed
- Basic understanding of bot applications
-
Visit DingTalk Open Platform
- Go to DingTalk Open Platform
- Log in with your DingTalk account
-
Create Application
- After logging in, navigate to Application Development (ๅบ็จๅผๅ) โ Enterprise Internal Development (ไผไธๅ ้จๅผๅ)
- Click "Create Application" (ๅๅปบๅบ็จ)
- Select Robot (ๆบๅจไบบ) as the application type

-
Get Your Credentials
- In the application details page, find the Development Information (ๅผๅไฟกๆฏ) or Credentials (ๅญ่ฏ) section
- Copy your AppKey (this is your Client ID)
- Copy your AppSecret (this is your Client Secret)
โ ๏ธ Important: Keep these credentials secure and never share them publicly
-
Configure Message Reception Mode
- In the application configuration, find "Message Reception Mode" (ๆถๆฏๆฅๆถๆจกๅผ) or "Connection Mode" (่ฟๆฅๆนๅผ)
- Select Stream Mode (ๆตๅผ่ฟๆฅ)
- This enables real-time message streaming and supports AI Card streaming responses

-
Publish DingTalk Bot
- After completing the configuration, click the Publish (ๅๅธ) button to publish the bot

โ ๏ธ Note: Non-admin users need admin approval to enable permissions
In the application details page, go to "Permission Management" (ๆ้็ฎก็) or "API Permissions" (ๆฅๅฃๆ้) section, and enable the following permissions one by one:
- Card.Streaming.Write - AI Card streaming write permission
- Card.Instance.Write - AI Card instance write permission
- qyapi_robot_sendmsg - Robot send message permission
These permissions are required for the bot to function properly.

-
Configure Visibility Scope
- In the application details page, find "Visibility Scope" (ๅฏ่ง่ๅด) or "Usage Scope" (ไฝฟ็จ่ๅด) settings
- Set visibility to "Only Me" (ไป ่ชๅทฑ) for testing, or select users/departments who need access
-
Enable Robot
- Ensure the robot feature is enabled
- Check basic information like robot name and avatar
-
Publish Application
- Click the Publish (ๅๅธ) button
- Confirm the publishing information is correct
- Wait for the publishing to complete

๐ก Tip: After publishing, the bot can be searched and used by users. For testing purposes, you can set it to "Only Me" first.
-
Open AionUi Settings
- Launch AionUi application
- Go to Settings (่ฎพ็ฝฎ)
- Navigate to WebUI (Channel) section
- Find the "DingTalk" channel card
- Expand the DingTalk configuration

-
Enter Credentials
- In the DingTalk configuration form:
- Client ID: Paste the AppKey you obtained in Step 1
- Client Secret: Paste the AppSecret you obtained in Step 1
- Click "Test & Connect" to verify the connection

- In the DingTalk configuration form:
-
Configure Agent and Model
- Select the Agent you want to use for DingTalk conversations
- Choose the Model for the selected agent
- These settings determine which AI assistant will respond to DingTalk messages

After successfully connecting, you need to authorize users who can interact with the bot:
-
Find Your Bot in DingTalk
- Open DingTalk application
- Search for your bot by name
- Start a conversation with the bot
-
Send a Test Message
- Send any message to the bot (e.g., "Hello")
- This will trigger a pairing request

-
Approve the Pairing Request
- In AionUi, go back to Settings โ Channels โ DingTalk
- You should see a "Pending Pairings" section
- Click "Approve" to authorize the user
- The user will now be able to chat with the AI assistant through DingTalk

-
Start Chatting
- Once approved, users can send messages to the bot
- The AI assistant will respond in real-time using DingTalk's AI Card streaming feature

Problem: Cannot connect to DingTalk API
-
Solution:
- Verify your Client ID and Client Secret are correct
- Check your internet connection
- Ensure the bot application is properly configured on DingTalk Open Platform
Problem: Users cannot send messages to the bot
-
Solution:
- Make sure the user has been approved in AionUi settings
- Verify the bot is enabled in AionUi
- Check that the bot application is published/activated on DingTalk Open Platform
Problem: Bot doesn't respond to messages
-
Solution:
- Check the connection status in AionUi settings
- Verify the agent and model are properly configured
- Ensure the bot has the necessary permissions on DingTalk Open Platform (especially the three permissions mentioned in Step 2)
- Confirm the bot application has been successfully published (Step 3)
- ๐ Getting Started
- โ๏ธ LLM Configuration
- ๐ค Multi-Agent Mode Setup
- ๐ป WebUI Configuration
- โ FAQ
Welcome to the comprehensive AionUi documentation! Find everything you need to configure, use, and master AionUi.
- โ๏ธ LLM Configuration
- ๐ค Multi-Agent Mode Setup
- ๐จ Image Generation Setup
- ๐ MCP Configuration
- ๐ป WebUI Configuration(by Commond Line)
- ๐ AionUi Remote Internet Access Tutorial
- ๐ค DingTalk Bot Setup
- โฐ Scheduled Tasks Guide
- ๐ ๏ธ AI Assistants & Skills Ecosystem
- ๐ Preview Panel Guide
- ๐ File Management
- ๐ Excel Smart Processing
- ๐ Smart Information Gathering
- ๐ Local Knowledge Base Application
- โ AI Learning Assistant
- โ๏ธ Writing & Content Creation
- ๐ Getting Started
- โ๏ธ LLM Configuration
- ๐ค Multi-Agent Mode Setup
- ๐จ Image Generation
- ๐ MCP Configuration
- ๐ WebUI Configuration
- โฐ Scheduled Tasks
- ๐ ๏ธ AI Assistants & Skills
- ๐ Preview Panel
- โ FAQ