Templates
Template Data
Setting data that is common across all stubs that use a template.
Uses
- API Endpoints: You can set different API endpoints for each branch of a template.
- LLM Prompts: You use template data to expose prompts as a text box on the flow canvas.
- Settings: You can use template data to store settings that are common across all stubs that use a template.
- Messages: Store messages that are used in various actions in the template.
How to use template data
- Open the template flow
- Select the Add Template Data tool from the toolbar
- Set the data path for the template data
- A new template data text input will appear on the flow canvas
Once you have set the template data, you can use variable substitution to use the template data in the flow. For example:
Viewing full structure
You can view the full structure of the template data by clicking on the top level template data icon.
This will open a modal with the full structure of the template data.