Message Display icon

Message Display

Display custom messages and notifications in workflows

Message Display

AI-generated

Overview

This node displays custom messages and notifications within n8n workflows. It allows users to specify the type of message (e.g., information, warning, error, success, comment), the message text, an optional title, and whether to show the message in the n8n execution log. It can also optionally add a timestamp to the message. This node is useful for workflow debugging, notifications, or providing contextual information during workflow execution.

Use Case Examples

  1. A user wants to log a warning message with a timestamp during a workflow execution to highlight a potential issue.
  2. A workflow sends a success message to the log after completing a task to confirm successful execution.
  3. A user adds informational messages to the workflow output to provide context for downstream nodes.

Properties

Name Meaning
Message Type Type of message to display, such as information, warning, error, success, or comment.
Message The text content of the message to display. This is a required field.
Title (Optional) An optional title for the message to provide additional context.
Show in Log Whether to display the message in the n8n execution log.
Add Timestamp Whether to prepend a timestamp to the message text and include a timestamp property in the output.

Output

JSON

  • messageDisplay
    • type - The type of the message as specified by the user.
    • message - The message text, optionally prefixed with a timestamp if enabled.
    • title - The optional title of the message, if provided.
    • timestamp - The ISO timestamp when the message was created, included only if timestamping is enabled.

Troubleshooting

  • If the 'Message' property is empty or contains only whitespace, the node throws an error 'Message cannot be empty'. Ensure the message text is provided.
  • If 'Show in Log' is enabled, the message is logged to the console with an icon corresponding to the message type. If the message does not appear in the log, verify that logging is enabled and check the console output.
  • Timestamping adds the current ISO timestamp to the message text and output. If the timestamp is not appearing, ensure 'Add Timestamp' is enabled.

Discussion