Context Variable Picker in Properties Tab
Easily insert context-aware variables into your node properties with the Context Variable Picker. This feature streamlines referencing workflow inputs, outputs, and global context in any text or prompt field.
Overview
The Context Variable Picker is a user-friendly tool in the Properties Tab that allows you to:
- Browse and search available context variables for the selected node
- Insert variable templates (e.g.,
{{inputs.output1}},{{context.userId}}) directly into property fields - Avoid manual typing and reduce errors when referencing workflow data
How It Works
- Dynamic Enumeration: The picker automatically lists all variables available to the selected node, including:
- Upstream node outputs (inputs)
- Workflow/global context (e.g., userId, workflowId)
- Memory node outputs
- Context Awareness: The list updates based on the node you select and the current workflow graph.
- Insertion: Clicking a variable inserts its template at the end of the current field.
How to Use
- Select a Node: Click on any node in your workflow to open its Properties Tab.
- Find a Text Field: Look for fields that support variable insertion (e.g., prompts, queries, descriptions).
- Click the
<>Button: Next to the text field, click the context variable picker button. - Browse or Search: Use the popup to browse or search for the variable you want.
- Insert: Click a variable to insert its template into the field.
Tip: The picker is only enabled when variables are available for the selected node.
Best Practices
- Use the picker to avoid typos and ensure correct variable paths.
- Combine multiple variables in prompts or queries for advanced logic.
- If you add new nodes or connections, re-select your node to refresh the variable list.
- For advanced users: you can still manually type
{{variable}}templates if needed.
FAQ / Troubleshooting
Q: Why is the picker button disabled?
- The picker is only enabled when there are available variables for the selected node. Try selecting a different node or adding upstream nodes.
Q: Can I insert variables at the cursor position?
- Currently, variables are inserted at the end of the field. Cursor-position insertion is planned for a future update.
Q: What variables are available?
- Inputs from upstream nodes, workflow/global context, and memory node outputs.
Q: Can I use variables in any field?
- The picker is available for all string and multiline fields that support variable templates.
Screenshots
[Add screenshots or GIFs here to illustrate the picker in action]
For more details, see the Properties Tab documentation.