Text
Displays text content 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 text to display.
Options
- Content Type - Specifies the content type. Can be either "Text" or "Markdown".
Output
- None (this is a display-only widget)
How It Works
The Text node creates a widget that displays text content in chat interfaces. When executed, the node:
- Validates the provided Session ID and Text
- Retrieves the session information for the provided ID
- Creates a text widget with the specified content and content type
- Sends the widget to the client with the specified session ID
Requirements
- A valid session ID for an active client connection
- Valid text content to display
- Properly configured client interface that can display text 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
- Failed to send widget to client
Usage Notes
- The Session ID must match an active client connection
- The text widget is a visual element only and does not collect user input
- When Content Type is set to "Markdown", the text will be rendered with Markdown formatting
- When Content Type is set to "Text", the text will be displayed as plain text