Chat apps
DingTalk
Post renewal reminders and payment alerts to a DingTalk group, through a custom robot.
What you get
Each notification arrives as one Markdown message from your custom robot, in the DingTalk group you choose:
- a heading with one emoji for the kind of event, which also shows in the chat list;
- one fact per line with a bold label: amount, due date, billing, provider and category;
- for overdue alerts, every unpaid payment as a list; for payment updates, who made the change;
- a link to the subscription in SysCost, and a small footer with the event and workspace.
⏰ Figma Organization is due in 3 days
💰 Amount: $540.00
📅 Due: Thu, Nov 12
🔁 Billing: Monthly
🏢 Provider: Figma
🏷️ Category: Design
Open in SysCost →
SysCost · Upcoming payment · Acme IncNames never turn into formatting or links: SysCost shows the few characters DingTalk would read as formatting (* [ ] < > `) in their full-width forms.
Before you start
SysCost posts through a custom robot in the group. You need the robot’s webhook and, with the recommended signing setting, its secret. Custom robots are added in the DingTalk desktop app.
Add a custom robot
In the DingTalk desktop app, open the group and its Group Settings, then Bot (机器人). Choose Add Robot, pick Custom (自定义) and click Add. Name it “SysCost”.
Choose a security setting
DingTalk requires at least one:
- Add Signature (加签, recommended): copy the secret shown, which starts with
SEC. DingTalk then only accepts messages signed with it. - Custom Keywords: add
SysCost. Every SysCost message contains it. - IP Address: leave it off, or DingTalk refuses SysCost’s messages.
- Add Signature (加签, recommended): copy the secret shown, which starts with
Copy the webhook
Accept the terms and click Finished. Copy the Webhook, which looks like
https://oapi.dingtalk.com/robot/send?access_token=…. You can see it again in the robot’s settings.
20 messages a minute
A robot can post 20 messages a minute; beyond that, DingTalk holds it back for 10 minutes and drops what it sends. Give a busy workspace’s rules more than one robot.
DingTalk’s own guides: get the webhook of a custom robot and custom robot security settings.
Add the channel
Workspace admins and owners can add channels.
Open Channels
In SysCost, open Notifications, then Channels, and choose + Channel.
Choose DingTalk
Pick DingTalk from the list of channels (type its name in Search channels to find it quickly). Give the channel a Name your team will recognise, such as
#finance alerts.Fill in the details
- Webhook URL: the robot’s webhook, with its
access_token. - Signing secret: the
SEC…secret if you chose Add Signature; otherwise leave it empty.
- Webhook URL: the robot’s webhook, with its
Create
Choose Create. SysCost checks the details and saves the channel.
Pro and Team
DingTalk is part of the Pro and Team plans. Slack, Discord, Telegram and email are on every plan. See pricing.
SysCost hides both once you save. Signed messages carry the current time, which DingTalk accepts for an hour, so retries are signed afresh.
Test it and add a rule
Send a test
On the channel, pick a sample (Upcoming payment, Overdue payment, Marked paid, Marked failed or Skipped) and choose Send test. A test message starts with “🧪 Test” and appears in the group within seconds. The result shows at once and in the delivery log.
Add a rule
Open Rules, choose + Rule, pick which subscriptions it covers and which events to send, and tick this channel under Send to. See rules and delivery for every option.
Keep the details private
Anyone who has the channel’s secret details can post to it. SysCost hides them once you save; to change them, type new ones when you edit the channel (blank keeps the stored value).
Troubleshooting
Problems with the details show when you save. Problems at delivery show in Notifications → Delivery log, next to each attempt. SysCost shows the status code the service returned, never its reply. A 4xx status is not retried: fix the channel, then send a test.
| What you see | What to do |
|---|---|
| “Invalid channel configuration: webhook_url must be a DingTalk custom robot webhook URL…” | Copy the webhook again from the robot’s settings. It must be https://oapi.dingtalk.com/robot/send with an access_token. |
| “Invalid channel configuration: secret must be the robot’s signing secret, which starts with SEC.” | Paste the secret from Add Signature, not the access token. Leave the field empty if the robot uses keywords instead. |
| “Destination refused the message (code 310000).” | The robot’s security check failed. Check its security settings: the signing secret must match, keywords must include SysCost, and the IP setting must be off. |
| “Destination refused the message (code 410100).” | The robot went over 20 messages a minute and is held back for 10 minutes. SysCost retries automatically. |
| “Destination refused the message (code …)” with another code | DingTalk refused the message, usually because the robot or its access token was removed. Create the robot again and paste its new address. |
| “Destination responded with status 5xx.” | A problem on DingTalk’s side. SysCost retries automatically. |
| “The destination did not respond in time.” | The service took longer than 10 seconds. SysCost retries automatically; if it keeps happening, check the service’s status page. |
| “Could not connect to the destination.” or “The destination host could not be found.” | A network problem. SysCost retries automatically. |
| A reminder never arrived and the log has no entry for it | No enabled rule sends that event to this channel, the channel is disabled, or the subscription is paused. See which rules apply in rules and delivery. |