This documentation uses the new version of Dingtalk Open Platform as an example.
1. Create Dingtalk App and Add Dingtalk Integration
1. Create Custom App
Visit Dingtalk Developer Console → App Development → Enterprise Internal Development, create an app. See Dingtalk development documentation Create Enterprise Internal App - H5 Mini App.
You can use the Flashduty official icon as the app icon.
2. Copy Enterprise CorpId
Click the enterprise avatar in the top right corner, copy CorpId from the dropdown menu.
Return to Flashduty On-call integration configuration page, fill in the corresponding CorpId in the form.
3. Copy App Credential Information
Enter the created app details page, navigate to App Capabilities → Credentials & Basic Info via the left menu, copyAgentId, Client ID, and Client Secret.
Return to Flashduty On-call integration configuration page, fill in the corresponding AgentId, Client ID, and Client Secret in the form.
4. Copy Event Subscription Information
Go to Development Configuration → Events & Callbacks page. Set push method toHTTP Push, then click the button to generate Encryption aes_key and Signature Token, and copy and save them.
Return to Flashduty On-call integration configuration page, fill in the corresponding Encryption aes_key and Signature Token, click Save.
5. Configure Event Subscription
Go to Development Configuration → Event Subscription page. Configure Event Subscription Request URL using theEvent Subscription Request URL from Flashduty integration details. Click Save after configuration.
Below the Save button, select these three group chat events: Group chat name changed, Cool app installed in group, and Cool app uninstalled from group, then click Save.
6. Add App Capabilities
Create a Cool App. Go to Development Configuration → Add App Capabilities → Cool Apps → Cool Apps List page, click Create Cool App, select Extend to Group Chat. Enter the Edit Cool App page and complete the following steps:- Fill in basic information. You can use the Flashduty official icon as the icon.
- Configure feature design. Select Group Shortcut Entry and Message Card on the left. You can use the Flashduty official icon for the group shortcut icon; copy the Cool App Web URL from integration details for desktop and mobile access URLs.
- Skip step three (Feature Development), proceed to step four Preview & Publish, click Publish and confirm.
7. Configure Bot and Message Push
Go to App Capabilities → Bot page, enable bot configuration, fill in name and upload icon, then click Save. You can use the Flashduty official icon as the icon.
8. Configure App URLs
Go to App Capabilities → Web App page. Configure App Homepage URL and PC Homepage URL using theApp Homepage URL and PC Homepage URL from Flashduty integration details. Click Save when done.
9. Request App Permissions
Go to Development Configuration → Permission Management page, request the following permissions for the group app created in previous steps:qyapi_chat_manage: Get group chat informationqyapi_robot_sendmsg: Send messages to group chats or individuals
2. Configure War Room
1. Request App Permissions
Go to Development Configuration → Permission Management page, request the following permissions for the group app created in previous steps:qyapi_chat_read: Get group chat informationqyapi_chat_base_read: Get group chat informationqyapi_get_member_by_mobile: Allow the current app to get Dingtalk users by phone number for inviting users to join group chats
2. Configure Group Template
Navigate to Open Capabilities → Scene Groups via the Dingtalk Open Platform top menu bar.- Configure Group Bot. Select Bot in the left menu, then click Create Group Bot.
The Group Bot configured in this step and the App Bot are two different concepts. Group bots are used to automatically create group bots when generating group chats. Group bots and app bots have different Bot IDs. To enable War Room for Dingtalk, you must additionally configure a Group Bot.
| Item | Value |
|---|---|
| Bot Name | Flashduty |
| Bot Avatar | Flashduty official icon |
| Description | Flashduty |
| Message Preview Image | Flashduty official icon |
| Detailed Description | Flashduty message push bot. |
| Message Callback URL | https://flashcat.cloud/ |
| Message Callback Token | token |
| Source Website | https://flashcat.cloud/ |
-
Configure Group Template. Select Group Template in the left menu, click Create Group Template.
Set Enterprise Type to
Internal, set Available Apps to the custom app created in previous steps. Then fill in template information in the next step. Template Name, Icon, Description, Text Introduction, Template Description, Image Introduction and other descriptive information won’t affect group template functionality—you can configure any values that meet requirements. Example Configuration:In Select Bot configuration, click Select Created Bot, select the group bot created in the previous step. Keep other configurations as default. Finally click Save Edit.Item Value Template Name Flashduty War Room Icon Flashduty official icon Description One-click war room creation for active incidents. Text Introduction One-click war room creation for active incidents. Template Description One-click war room creation for active incidents. Image Introduction Flashduty official icon
In the Fill in Gray Group step, click Create Gray Group, then click Publish Gray.
Finally, click Group Template in the left menu again, then click to enter the group template just created. Click Submit for Review, after Dingtalk automatically approves, finally click Publish.
-
On the published group template details page, copy Template ID and Bot ID.
Return to Flashduty On-call integration configuration page, fill in the corresponding Template IDandBot ID, click Save.
3. App Publishing and Usage
After completing the above steps, go to App Publishing → Version Management & Publishing, create a new version and publish.To ensure everyone can use the app, adjust the app Visibility to all employees before publishing.
After publishing, you can access the app via Mobile or Desktop. First access requires login to link Dingtalk and Flashduty accounts; subsequent access will be passwordless.
- Mobile
- Desktop
Dingtalk → Workspace → Search app name → Open App
4. FAQ
Messages cannot be delivered to individuals, operation log shows 'App not linked'?
Messages cannot be delivered to individuals, operation log shows 'App not linked'?
Go to Dingtalk → Workspace → Search app name → Open App, complete one login to link Dingtalk and Flashduty accounts so the system can obtain user identity for message delivery.
Message card buttons not working or showing errors?
Message card buttons not working or showing errors?
Escalation rule Dingtalk group chat list is empty?
Escalation rule Dingtalk group chat list is empty?
- Go to Dingtalk, install the Cool App in the target group chat, otherwise the group chat list cannot be obtained


- Return to escalation rule configuration page, refresh and reselect the group chat list
- If still unable to get the group chat list, try uninstalling the Cool App from the group and retry the above steps. If the issue persists, contact customer or dedicated technical support
Why isn't War Room working as expected?
Why isn't War Room working as expected?
- Please check again if the app has been granted the required permissions for War Room functionality
- See the FAQ section in War Room documentation
Dingtalk custom app API call limits?
Dingtalk custom app API call limits?
| Dingtalk Version | Total Calls/Month | QPS | Refresh Time |
|---|---|---|---|
| Standard | 10,000 | 20 | 1st of each month |
| Professional | 500,000 | 40 | 1st of each month |
| Dedicated | 5,500,000 | 60 | 1st of each month |