Copilot Thinking Text Block
Generate dynamic text using Jinja templating
The Copilot Thinking Text block is designed to generate dynamic text within your workflow by leveraging Jinja templating. This block enables the creation of customized text outputs that are context-aware and adaptable to the current state of the workflow.
Configuration (Required)
The text parameter is a required field where you define the Jinja template that will be rendered. This template can incorporate dynamic variables from the workflow’s state, allowing for flexible and context-sensitive text generation.
Outputs
The block outputs the rendered text based on the provided template and the current state of the workflow. The output is formatted as a string.
Usage Context
Use this block to dynamically generate text content based on the current state and context within a workflow. It is particularly useful for creating personalized messages or content that adapts to changing data.
Best Practices
- Ensure the input text is a valid Jinja template: Proper formatting is crucial for successful template rendering and to avoid errors.
- Verify that all variables used in the template are available in the current state: Ensure that the workflow state includes all variables referenced in the template to prevent rendering issues.
- Handle exceptions where the input text is not provided or is invalid: Implement error handling to manage potential issues with input text.