Text Block

The Text Block is designed for creating and managing variables within a workflow. It allows users to define Jinja-rendered text that can be used across multiple blocks, making it particularly useful for handling large prompts or reusable text segments. By acting as a variable, the Text Block enhances the modularity and readability of your workflow, enabling efficient text management and dynamic data handling.

Input (Required)

Text
stringRequired

The Text input is a required field where you define the string content that the block will render. This content can be referenced in subsequent blocks, allowing it to function as a variable throughout your workflow. The flexibility of Jinja templates within this input offers dynamic text generation and transformation capabilities, adapting to various workflow scenarios and requirements.

Utilize dynamic variables to integrate and format data from different workflow blocks into your text structure. Refer to Workflow Logic & State > State Management for guidance on using these dynamic variables effectively.

Best Practices

  • Reusable Text: Utilize the Text Block to define reusable text segments that can be referenced across multiple workflow blocks to maintain consistency and efficiency.
  • Dynamic Content: Leverage Jinja templates to create dynamic content that adjusts based on workflow data and conditions, providing tailored and contextually relevant outputs.
  • Workflow Organization: Use Text Blocks to break down complex prompts or instructions into manageable components, improving workflow organization and readability.