Skip to content

Toast Notification

Overview

The Toast Notification node sends a toast notification to the MinuteView interface with a configurable header, message, and success status. This allows workflows to display notifications to users during automation execution.


Purpose

Use this node to notify users of workflow events, statuses, completions, errors, or informational messages directly in the MinuteView interface as toast notifications.


Inputs

InputTypeDescription
HeaderTextThe title or header of the toast notification. Supports placeholders for dynamic data injection.
MessageTextThe body text of the notification. Supports placeholders for dynamic data injection.
SuccessBoolean (string)Determines the type of notification displayed. Use "true" for success notifications and any other value for standard notifications.

Outputs

This node does not produce specific output variables. It sends the notification and returns a success status upon completion.


Execution Details

  1. Validation:

    • Validates that Header, Message, and Success inputs are provided.
  2. Placeholder Replacement:

    • Replaces placeholders within the Header and Message inputs using _fs.PropReplacePlaceholders with current task data.
  3. Notification Sending:

    • Uses SendToastNotification to send the notification to the MinuteView server with:
      • baseUrl: current server URL.
      • header: processed header text.
      • message: processed message text.
      • success: boolean parsed from input.
  4. Logging:

    • Adds debug log entries for execution timestamp, header, and message for traceability.
  5. Cleanup:

    • Removes Header, Message, and Success keys from task data after sending the notification.
  6. Error Handling:

    • Returns failure if required inputs are missing or if an unhandled exception occurs during execution.

Example Use Cases

  • Informing users when a long-running task completes.
  • Displaying error messages or warnings within workflow execution.
  • Sending confirmation notifications when specific conditions are met in the workflow.

Notes

⚠️ Important:

  • Header and Message inputs support dynamic placeholders that will be replaced with current workflow data before sending the notification.
  • The Success input determines the visual style of the notification (e.g., green for success, default for standard information).

Known Limitations

  • This node sends notifications only within the MinuteView interface and does not integrate with external notification systems (e.g., email, SMS) by default.
  • Notifications are sent synchronously within the node execution context; delays in the notification service may impact node completion time.

Tentech 2024