The Visual Workflow Builder is embedded in the Cody AI VS Code extension that lets you create automated workflows combining Cody AI capabilities with command-line operations. Using an intuitive drag-and-drop interface, you can chain together different actions to automate repetitive tasks.
-
CLI Actions
- Execute shell commands
- Access inputs using ${1}, ${2} syntax where numbers correspond to parent node connections
- Safety measures prevent execution of system-critical commands
-
Cody LLM Actions
- Interact with Cody AI
- Create custom prompts with ${1}, ${2} placeholders for specific parent outputs
- Process outputs from multiple parent nodes in order
-
Preview Nodes
- View all parent outputs separated by newlines
- Verify workflow outputs
- Debug data transformations
-
Input Text Nodes
- Add custom text content
- Create template messages using ${1}, ${2} syntax
- Store reusable snippets
-
Adding Nodes
- Click desired node type in sidebar
- Nodes automatically position in viewport
- Each node can be freely moved and arranged
-
Connecting Nodes
- Drag from node endpoints to create connections
- Connection order determines input numbering (${1}, ${2}, etc.)
- Multiple inputs/outputs supported with indexed access
-
Configuring Nodes
- Click node to open Property Editor
- Set node-specific parameters:
- CLI commands with ${1} for first input, ${2} for second, etc.
- Cody prompts with indexed inputs
- Input text with variable substitution
- Preview settings showing all inputs
-
Workflow Management
- Save workflows for later use
- Load existing workflows
- Execute entire workflow chain
-
Real-time Status
- Visual feedback during execution
- Error highlighting
- Execution progress tracking
-
Data Flow
- Indexed access to parent node outputs
- Input sanitization for security
- Preview all inputs in order
-
Error Handling
- Clear error messages
- Failed node highlighting
- Execution stop on errors
-
Workflow Design
- Start with input nodes
- Add processing steps with clear input references
- Use preview nodes to verify data flow
- Test incrementally
-
Using Input References
- Use ${1}, ${2} to reference specific parent outputs
- Connection order determines input numbers
- Preview nodes show all inputs for verification
-
CLI Integration
- Test commands individually
- Reference specific inputs clearly with ${n} syntax
- Maintain security awareness
This workflow builder empowers you to create powerful automation chains combining Cody's AI capabilities with system commands, all within the familiar VS Code environment.