Copilot Thinking Text Block
Render text using Jinja templating within Scout workflows
The Copilot Thinking Text block is a special component designed to be used with the Scout Copilot, designed to dynamically generate a placeholder message to display to the user while the Copilot Message block is generating the full response. It’s best practice to show the user a descriptive thinking message to help manage expectations, communicate what the Copilot is doing, and ensure the user is aware that the Copilot is working while they wait.
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 from the Jinja template. The response format is a string, providing the final text output based on the current state of the workflow.
Usage Context
Use this block when you need to dynamically generate text based on the current workflow state using Jinja templates. It is ideal for scenarios where text needs to be customized based on variable data inputs.
Best Practices
- Ensure the Jinja template syntax is correct to avoid rendering errors.
- Verify that all variables used in the template are available in the workflow state.
- Handle potential exceptions that may arise during template rendering.