Skip to main content

Error

Displays an error message widget in chat interfaces.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Session Id - Unique identifier for the UI client connection.
  • Error Label - Label for the error message.
  • Error Message - Content of the error message.

Options

  • None

Output

  • None (this is a display-only widget)

How It Works

The Error node creates a widget that displays an error message to the user. When executed, the node:

  1. Validates the provided Session ID, Error Label, and Error Message
  2. Retrieves the session information for the provided ID
  3. Creates an error widget with the specified label and message content
  4. Sends the widget to the client with the specified session ID

Requirements

  • A valid session ID for an active client connection
  • Valid error label and message content
  • Properly configured client interface that can display error widgets

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Session ID
  • Session not found for the provided ID
  • Error Label is required but not provided
  • Error Message is required but not provided
  • Failed to send widget to client

Usage Notes

  • The Session ID must match an active client connection
  • The error widget is a visual element only and does not collect user input
  • Error messages can be used to inform users about issues or problems in the flow
  • The error widget has a distinct visual style to make it easily recognizable