Say Node
Overview
The Say Node enables dynamic text output within workflows, leveraging mustache templating to incorporate data from previous nodes dynamically. This node is crucial for creating responsive and personalized interactions in workflows by formatting text based on user or system input captured in earlier stages.
Configuration
Text Input and Mustache Templating
The Say Node features an input field for text that supports mustache syntax, allowing users to embed variables directly into the text:
- Mustache Templating: Users can include placeholders in the format
{{variable_name}}
within the text. These placeholders are replaced at runtime with values from slots or global data collected by previous nodes, enabling dynamic text outputs based on the workflow context.
Advanced Text Customization
For more complex scenarios, such as inserting multiple variables or customizing text based on conditional logic, the Say Node provides a settings dialog with enhanced editing features:
- Template Select: A dropdown menu that lists available slots or variables which can be inserted into the text. Selecting an item automatically inserts the corresponding mustache tag at the current cursor position in the text area.
- Dynamic Text: Users can edit the text to format it according to specific requirements, using mustache tags to ensure that the output adapts to changing data throughout the workflow execution.
Output
- Output Handle (Right): After processing, the text, now populated with real values from the specified variables, is output to the user.