Skip to main content

Header

Displays a header text 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.
  • Text - Content of the header.
  • Level - Header level (1-6).

Options

  • None

Output

  • None (this is a display-only widget)

How It Works

The Header node creates a header text widget with specified level and content. When executed, the node:

  1. Validates the provided Session ID, Text, and Level
  2. Retrieves the session information for the provided ID
  3. Creates a header widget with the specified level and text content
  4. Sends the widget to the client with the specified session ID

Requirements

  • A valid session ID for an active client connection
  • Valid header text content
  • Header level between 1 and 6
  • Properly configured client interface that can display header 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
  • Text is required but not provided or empty
  • Level is required but not provided
  • Failed to send widget to client

Usage Notes

  • The Session ID must match an active client connection
  • The header widget is a visual element only and does not collect user input
  • Header levels follow standard HTML heading conventions (1 = largest, 6 = smallest)
  • Headers can be used to organize and structure content in chat interfaces