This document describes how to integrate OpenClaw with DingTalk using a DingTalk application and a bot. This integration allows users to interact with the bot to execute tasks in OpenClaw.
Overview
This integration lets users interact with a DingTalk bot to perform tasks in OpenClaw. The integration process involves the following key steps:
Create a DingTalk application and configure security credentials to connect it to the OpenClaw cloud computer.
Create a DingTalk bot.
Create a card template.
Publish the DingTalk application.
Use the DingTalk bot.
Create a DingTalk application
Go to the DingTalk Open Platform.
NoteYou must select an organization where you have developer permissions, or select an organization and then obtain developer permissions.
If you do not have a suitable organization, you can scan the QR code below with the DingTalk mobile app to quickly create one.

In the top navigation bar, click App development. On the DingTalk apps page, click Create app.
In the left-side navigation pane, select Credentials and basic information. View and copy the Client ID and Client Secret.
Return to the OpenClaw Config page in your cloud computer and select Channel settings.
Enable the DingTalk card toggle, and paste the copied Client ID and Client Secret into the App Key and App Secret fields, respectively.
After filling in the fields, click Save in the upper-right corner.
Create a DingTalk bot
After you create the application, select Add app capabilities in the left-side navigation pane. Under the Bot card, click Add.
On the bot configuration page, enable Bot configuration.
For Message receiving mode, select Stream mode and click Publish to complete the bot configuration.
In the left-side navigation pane, select Version management and release, and then click Create new version.
After completing the configuration, click Save at the bottom to publish the version.
Create a message card
DingTalk bots use message cards for streaming responses, which requires creating a card template.
Go to the Card Platform and click Create template.
In the Create Template dialog box, create a template with the following settings:
Card type: Select Message Card.
Card template scenario: Select AI Card.
Associated app: Enter the name of the application you created.
On the card editing page, click Save in the upper-right corner, and then click Publish.
Publish the application
After you publish the application, employees in your organization can find and use it.
Return to the App list and select your target application to go to its details page.
In Permission management, enable the
Card.Streaming.Write,Card.Instance.Write, andqyapi_robot_sendmsgpermissions.In the left-side navigation pane, choose Version management and release and click Create new version.
In the version details, enter the Application version and Version description, select the application's availability scope, and then click Save.
NoteWhen selecting the availability scope, choose the visibility range based on your business needs. If you select All Employees, the application becomes visible to all employees in the current organization upon publication.
Chat with the DingTalk bot
Chat with the bot in a group
Open the DingTalk client and enter any group chat.
If you use an existing group chat, ensure that its owner organization is the same as the organization where the bot was created.
If you create a new group chat, ensure that the owner organization you select is the same as the organization where the bot was created.
Click the group settings icon in the upper-right corner, go to the group settings page, and select Bots.
In the bot management section, select Add bot.
On the Add Bot screen, search for the bot you created and published, then click it to add it.
After the bot is added successfully, @mention the bot to trigger an auto-reply.
Chat with the bot in a direct message
In the top search bar of DingTalk, search for the name of the bot you created to start using it.
Send a message to start a one-on-one conversation with the bot.
FAQ
Troubleshooting: Bot does not receive messages
Verify that the Client ID and Client Secret are configured correctly.
Confirm that you have granted the
Card.Streaming.Write,Card.Instance.Write, andqyapi_robot_sendmsgpermissions.Verify that the bot's message receiving endpoint is configured correctly.
Ensure that you have published the application version.
Troubleshooting: Bot not found when adding to a group
The group chat and the bot belong to different organizations. You must use or create a group chat in the same organization as the bot.
The group is not an internal group. You must convert it to an internal group to add the bot.