DingTalkReplayNode
AI-generatedSummary
Send a message via DingTalk using a specified webhook.
Inputs
- type (required) — Select the type of DingTalk bot: Custom or Company.
- webhook (required) — The URL of the DingTalk bot's webhook.
- accessToken — The access token for a Company bot. Required if 'type' is set to 'company'.
- sign — The sign for a Custom bot. Required if 'type' is set to 'custom'.
- enableJsonMode (required) — Enable JSON mode to build a custom data structure.
- jsonData — JSON data structure for the message. Required if JSON mode is enabled.
- isAtAll — Flag to mention all users in the message.
- atUserIds — Comma-separated list of user IDs to mention. Required if 'isAtAll' is false.
- msgtype (required) — The type of message (text or markdown).
- content — The content of the text message. Required if 'msgtype' is 'text'.
- title — The title of the markdown message. Required if 'msgtype' is 'markdown'.
- markdownText — The content of the markdown message. Required if 'msgtype' is 'markdown'.
Output shape
a JSON object containing the response from DingTalk
Ensures that all required fields are provided; handles both text and markdown messages.
Examples
Example 1: Sending a text message to specific users.
Set 'type' to 'company', provide the webhook URL, access token, enable JSON mode as false, and fill in the text message details.
Example 2: Sending a markdown message with a title.
Set 'type' to 'custom', provide the webhook URL, sign, enable JSON mode as false, and fill in the title and markdown content.