DocumentationWorkflowsApps and services
Discord node
Send messages to a Discord channel via an Incoming Webhook, with optional username and avatar override. Learn how to configure it, map inputs and outputs, run a test and resolve common errors.
8 min readUpdated
What this node does
Send messages to a Discord channel via an Incoming Webhook, with optional username and avatar override.
Use Discord as a clearly defined step in an anymize workflow.
- Processes one input.
- Provides one output for following steps.
- Runs as a regular step in the flow.
Set up the node
- 01Open a workflow and add Discord from the node catalog.
- 02Store the credentials in Workflow Secrets and select them in the "Discord Webhook URL" field.
- 03Complete the required fields and map values from previous steps.
- 04Run the node with a small test record and inspect its output.
- 05Connect the successful output and activate the workflow after an end-to-end test.
Operations and modes
Choose the required function in Action. The panel then shows the relevant settings.
- Send message
Settings
| Field | Meaning | Area |
|---|---|---|
| Discord Webhook URL | Pick the secret that holds your Discord channel's complete Incoming Webhook URL (e.g. https://discord.com/api/webhooks/123456789/your-token). The value is never stored in the workflow, only the secret's name. | Protected |
| Action | Choices: Send message | Standard |
| Message | The message text (max 2000 characters). | Standard |
| Username (optional) | Overrides the webhook's default username for this message only. | Standard |
| Avatar URL (optional) | Overrides the webhook's default avatar for this message only. | Standard |
| Run once per item | Off (default): the node runs once for the whole input. On: if it receives several items (e.g. from Split Out), it runs once PER item, and {{ $json }} is that one item each time. This is how you work through a file list entry by entry. | Standard |
| If one item fails | "Skip" writes an `error` field for the failed item and keeps processing the rest, instead of losing the whole run to a single unreadable file. | Standard |
| Pause between items (milliseconds) | Wait before every run except the first. 1000 = 1 second per item. Useful when the other side would otherwise throttle you. Maximum 300000 (5 minutes). | Standard |
Inputs and outputs
| Input | Meaning | Type |
|---|---|---|
| Standard | Receives the complete result from the previous step. | JSON |
| Output | Meaning | Type |
|---|---|---|
| Standard | Makes the result available to the next step as JSON. | JSON |
This node can process lists item by item. Error handling and the delay between items are available in advanced settings.
Example and test run
Server monitoring reports an incident in a Discord channel: begin with a small, recognizable record. Inspect the output and only map fields that are present there.
Test-run example
{
"content": "🔴 Der Produktionsserver antwortet nicht mehr, bitte prüfen!",
"username": "Anymize Monitor",
"avatar_url": "https://example.com/monitor-avatar.png"
}Access and security
The credentials live in a Workflow Secret that you select in the "Discord Webhook URL" field. The workflow only holds the secret's name, never the key itself.
If you also have a Discord connection under Connectors, its "Allowed actions" setting applies to this node too, even though the node works with a Workflow Secret, and it is checked on every run. Every action of this node changes something and needs "Allow changes".
Keys and credentials belong in Workflow Secrets or your connected accounts. Never paste them as plain text into workflow fields, test data or descriptions.
Troubleshooting
- No output: inspect the latest run and confirm that the previous node returned the expected fields.
- Empty variable: open the previous step output and use a field name from the real test data.
- Action blocked: set "Allowed actions" of the connection under Connectors to "Allow changes".
- List processed once: enable per-item execution in advanced settings.