Skip to main content
DingTalk provides multiple types of bots for different scenarios. This article describes the use cases of each bot type.

What is a bot

As a standalone app capability, bots play an important role in DingTalk. With simple configuration, a bot can send message notifications or provide interactive services to users in direct messages or group chats. Bots help integrate business information and tasks into DingTalk conversations, accelerating workflows and team collaboration.

Bot types

TypeGroup Chat supportedDirect Message supportedCreation method
Enterprise bot✅ (Internal Group)Configure an enterprise bot
Third-party enterprise app bot✅ (Internal Group)Third-party enterprise bot
Custom bot✅ (External Chat & Internal Group)Create a custom bot
Group template bot✅ (Internal Group)Create a group template bot
For more information, see Develop a bot app — Overview.

Bot ID

Bot typeUnique identifier fieldView path
Internal app / third-party app botrobotCodeimage.png
Group template botIDimage.png
Custom botNot availableNot available

Open capability overview

Bots provide a rich set of open APIs. Developers can use these APIs to send and receive messages through bots.

List of open APIs

DING messages

APIDescriptionApplicable typeAPI Version
Send a DING messageUse an internal bot to send a DING message, including in-app DING, SMS DING, and Phone DING.Internal app botNew
Recall a sent DING messageInternal app botNew

Plain messages

APIDescriptionApplicable typeAPI Version
Send bot messages in batches in person-to-bot ChatsSend bot messages in batches in person-to-bot Chats (Direct Message between a user and a bot).Third-party enterprise app botNew
Bot sends plain messages in person-to-person ChatsA bot sends plain messages in a person-to-person Chat.Third-party enterprise app botNew
Bot sends Group Chat messagesAn app bot sends Group Chat messages.Internal app botNew
Custom bot sends group messagesUse a custom bot to send group messages.Custom botNew

Message reception

APIDescriptionApplicable typeAPI Version
Download the file content of messages received by a botDownload the file content of messages received by a bot.Third-party enterprise app botNew

Message query

APIDescriptionApplicable typeAPI Version
Batch query the Read status of bot messages in person-to-bot ChatsBatch query whether bot messages have been read in person-to-bot Chats.Third-party enterprise app botNew
Query the Read List of bot messages in person-to-person ChatsQuery the Read List of bot messages in person-to-person Chats.Third-party enterprise app botNew
Query user Read status of enterprise bot Group Chat messagesQuery user Read status of enterprise bot Group Chat messages.Third-party enterprise app botNew

Message Recall

APIDescriptionApplicable typeAPI Version
Batch recall bot messages in person-to-bot ChatsBatch recall bot messages in person-to-bot Chats.Third-party enterprise app botNew
Batch recall bot messages in person-to-person ChatsBatch recall bot messages in person-to-person Chats.Third-party enterprise app botNew
Enterprise bot recalls Internal Group messagesAn enterprise bot recalls Internal Group messages.Internal app botNew

Bot management

APIDescriptionApplicable typeAPI Version
Get the list of Bots in a groupGet the list of Bots in a group.Internal app botNew

Quick entry management

APIDescriptionApplicable typeAPI Version
Set the quick entry of a Single-chat botSet the quick entry of a Single-chat bot.Internal app botNew
Query the quick entry of a Single-chat botQuery the quick entry of a Single-chat bot.Internal app botNew
Clear the quick entry of a Single-chat botClear the quick entry of a Single-chat bot.Internal app botNew

List of callback events

Bots support callback events for message recall and message read:
  • Bot message Recall event
  • Bot message Read event

Tutorials

Enterprise bot

Third-party enterprise bot

To create a third-party enterprise bot, see the third-party enterprise bot documentation.

Custom bot

Group template bot

To add a bot to a Group Chat at the time the Chat is created, see the group template bot documentation.
DingTalk provides tutorials and sample code for sending Group Chat messages with this bot. See Group template bot sends Group Chat messages.

Third-party tool bot

If you only need to send messages and the source is limited to GitLab, GitHub, JIRA, Alibaba Cloud Codeup, or Travis pushing messages into DingTalk groups, see the Webhook bot documentation.