Working with Workflows
This guide explains how to create, configure, and execute workflows in Raikoo. Workflows are the primary way you'll orchestrate AI tasks and automate processes on the platform.
Understanding Workflows
A workflow in Raikoo is a structured sequence of operations designed to accomplish a specific task or process. Workflows enable you to:
- Combine multiple AI and programmatic operations
- Define dependencies between operations
- Process and transform data through multiple steps
- Maintain context across the entire process
Each workflow operates within a dedicated workspace, which serves as a virtual file system for storing inputs, outputs, and intermediate results.
Creating a New Workflow
To create a new workflow:
- Navigate to your project in the Raikoo dashboard
- Click on "Workflow Builder" in the main navigation
- Click the "New Workflow" button
- Enter a name and optional description for your workflow
- Click "Create" to open the workflow builder canvas
The Workflow Builder Interface
The Workflow Builder provides a visual interface for designing workflows:
- Canvas - The central area where you design your workflow by adding and connecting operations
- Operations Panel - A sidebar listing available operations that can be dragged onto the canvas
- Properties Panel - Shows configuration options for the currently selected operation
- Toolbar - Contains actions like save, run, and undo/redo
- Minimap - Provides a zoomed-out view of your workflow for easier navigation
Adding Operations to a Workflow
To add operations to your workflow:
- Browse or search for the desired operation in the Operations Panel
- Drag the operation onto the canvas
- Position it in the appropriate location in your workflow
Configuring Operations
Each operation has its own set of configuration options. To configure an operation:
- Click on the operation in the canvas to select it
- Use the Properties Panel to set parameters such as:
- Input/Request - The data or prompt for the operation
- Output - Where to store the operation's results
- Persona - The AI persona to use (for AI-based operations)
- Parameters - Additional settings specific to the operation type
Creating Dependencies Between Operations
Dependencies define the execution order of operations in your workflow:
- Hover over an operation to see its connection points
- Click and drag from an output connection point to an input connection point of another operation
- Release to create the dependency
You can also: - Select an operation and use the Properties Panel to explicitly set dependencies - Use the "Auto-arrange" feature to organize operations based on their dependencies
Using Workflow Parameters
Workflow parameters allow you to create reusable workflows with configurable inputs:
- Click on the workflow canvas background to select the workflow itself
- In the Properties Panel, navigate to the "Parameters" section
- Add parameters with:
- Name - A unique identifier for the parameter
- Type - The data type (string, number, boolean, etc.)
- Default Value - An optional default if no value is provided
- Description - Helpful context for users of the workflow
To use a parameter within an operation, reference it with {{ThreadParameters.ParameterName}} syntax in applicable fields.
Saving and Versioning Workflows
Raikoo provides versioning capabilities for your workflows:
- Click the "Save" button in the toolbar to save your current work
- Add a descriptive comment about the changes you've made
- Use the version history dropdown to:
- View previous versions
- Compare changes between versions
- Restore earlier versions if needed
Executing Workflows
To run a workflow:
- Click the "Execute" button in the Workflow Builder toolbar, or
- Navigate to the "Execute Workflow" section from the main navigation
- Select the workflow you want to run
- Provide values for any workflow parameters
- Click "Run" to start execution
During execution, you can: - Monitor progress in real-time - View logs and outputs from individual operations - Access the workspace to see generated files and data
Handling Errors and Debugging
When workflows encounter issues:
- Review the error message and logs for the failed operation
- Check input data and configuration settings
- Use the workspace inspector to examine intermediate results
- Adjust operation settings or add error handling operations
- Re-run the workflow to test your fixes
Sharing and Collaborating on Workflows
Workflows can be shared with team members:
- From the Workflow Builder, click the "Share" button
- Select the appropriate permission level for collaborators
- Add team members or generate a shareable link
- Optionally, add comments or instructions for collaborators
Best Practices for Workflow Design
For efficient and maintainable workflows:
- Start simple - Begin with core functionality before adding complexity
- Use clear naming - Give operations descriptive names that indicate their purpose
- Group related operations - Use folders or visual grouping for better organization
- Build incrementally - Test each section of your workflow before expanding
- Document your design - Add comments and descriptions to operations and the workflow itself
- Reuse common patterns - Create reusable sub-workflows for frequently used sequences
- Plan for failures - Add error handling operations for critical points in your workflow
- Optimize performance - Use parallel execution where appropriate
- Monitor resource usage - Be aware of execution time and storage requirements
Next Steps
- Explore the Workflow Settings guide to learn about advanced configuration options
- Learn about Iterator Operations to process collections of data
- Discover System Operations for file handling and code execution
- Check out Text Replacements to make your workflows more dynamic