Ding Talk Bot Source

Introduction #

SmartChart supports wrapping DingTalk group robot Webhook as a data source, sending text, markdown, and other message types to specified DingTalk groups. Suitable for scheduled task notifications, exception alert pushing, and daily report auto-sending.


Get Webhook URL (3 simple steps) #

  1. Open DingTalk → find a group you use
  2. Click … in top right → select Smart Group Assistant
  3. Click Add Robot → select Custom
    • Important: Security setting must select “Custom Keywords”, then enter a word like “Alert” or “Activity”
  4. After creation, you’ll see:
    • Webhook URL: https://oapi.dingtalk.com/robot/send?access_token=xxxxx
    • Copy the complete URL (from https:// to the end)
  • Create a new data source in SmartChart:

Screenshot

  • If a verification code is set, fill it in the password field

Send Message Example in Dataset #

{
  "msgtype": "text",
  "text": {
    "content": "Today's sales: $amount yuan, YoY growth $rate%"
  },
  "at": {
    "atMobiles": [],
    "isAtAll": false
  }
}

Security keyword: The keyword set in DingTalk robot security settings (e.g., “Alert”) must appear in the message content, otherwise the send will be rejected.