DingTalk chatbot deployment

Updated at:

This guide shows you how to bind an Intelligent Conversation Bot to a DingTalk chatbot and solve common issues.

Demo

Procedure

Create a DingTalk chatbot

  1. Go to the DingTalk Open Platform and create a DingTalk app.

    image

  2. Add a chatbot.

    image

  3. On the Development & Configuration > Permission Management page, request the following three permissions for your app:

    • Permission to send messages as an internal corporate chatbot.

    • Write permission for interactive card instances.

    • Permission for streaming updates to AI cards.image

Configure the Intelligent Conversation Bot

  1. In your bot's workspace, navigate to channel deployment > DingTalk Channel and click Bind DingTalk chatbot.image

  2. Copy the required parameters from the credentials and basic information page of your DingTalk app. Then, paste them into the corresponding fields in the Intelligent Conversation Bot channel configuration to generate the webhook URL.image

  3. Configure and publish the DingTalk chatbot.image

Publish app

image

Usage

One-on-one chats

In the DingTalk client, switch to the organization where you created the chatbot. Search for the chatbot by name, open the chat, and start asking questions.

image

You can start asking questions as soon as you open the chat with the chatbot.

image

Group chats

In the DingTalk client, switch to the organization where you created the chatbot. Select a group chat, go to Group Settings > Robot. Find your chatbot under the Corporate Robot section and add it.

image

To ask a question in the group, @mention the chatbot.

image

FAQ

Q: The chatbot is not responding after setup. What should I do?

  • Confirm that your app has the following three permissions: permission to send messages as an internal corporate chatbot, write permission for interactive card instances, and permission for streaming updates to AI cards.

  • In your DingTalk app's Security Settings, leave the server egress IP field blank.image

Q: The chatbot stopped responding. Why?

This can occur if you exceed DingTalk's API call limits. For more information, see the official DingTalk documentation: Notice on Adjustments to API Call Quotas and Rate Limits for Internal Corporate Applications.

Q: How to enable transfer to a human agent?

For configuration instructions, see Configure transfer to human agent scenarios for a conversation bot.