๐Ÿ‡ฌ๐Ÿ‡ง EN
๐Ÿ‡ฎ๐Ÿ‡น IT

๐ŸŽฎ Discord Message

Sends a message to a Discord channel using a Discord webhook URL or bot token. Supports plain text messages and rich embeds with titles, descriptions, and colour coding.

Category: Notifications & Messaging  ยท  Type identifier: discord_message

Overview

The Discord Message node posts a message to any Discord channel you have configured a webhook for. Discord webhooks are created inside your server's channel settings and allow external services to post messages without a full bot setup.

For simple alerts, fill in the Content field only. For richer messages with a title, description, and a coloured border stripe, provide the optional embed fields. Both Content and embed fields can reference workflow variables using {{ variable }} syntax, making it straightforward to include dynamic values such as run status, error messages, or record IDs.

Configuration

FieldStatusDescription
Webhook URL Required The Discord channel webhook URL. Create one in Discord channel settings → Integrations → Webhooks.
Content Required The text message to send. Supports {{ variable }} references. Supports Discord markdown (**bold**, _italic_, `code`, multi-line code blocks).
Username Optional Override the webhook's default display name, e.g. Flusso Bot.
Avatar URL Optional URL to an image to use as the webhook's avatar. Overrides the default.
Embed Title Optional If set, adds a rich embed card below the message with this title.
Embed Description Optional Body text of the embed card.
Embed Colour Optional Hex colour for the embed's left border stripe, e.g. #5865F2 (Discord blurple).

Output Data

After the message is sent, the following fields are available on the step output:

FieldTypeDescription
successbooleanTrue if the message was accepted by Discord.
message_idstringThe ID of the sent message (when using a bot token; not available with webhooks).
{{ step_key.output.success }} {{ step_key.output.message_id }}

Example Usage

  1. Add an Error Trigger node as the workflow trigger, so the workflow fires whenever another workflow encounters an error.
  2. Add a Discord Message node. Set Webhook URL to your team's alert channel webhook. Set Content to reference the error details:
    **Workflow error** in `{{ trigger.output.workflow_name }}` Error: {{ trigger.output.error_message }} Run: {{ trigger.output.run_url }}
  3. Optionally set Embed Title to Error Details, Embed Description to {{ trigger.output.stack_trace }}, and Embed Colour to #ED4245 (Discord red) for visually prominent alerts.

Tips & Notes

Related Nodes