Skip to content

Operations Overview

Operations are the fundamental building blocks of Raikoo workflows. They represent individual tasks that can be combined and sequenced to create complex AI-driven processes. This overview explains the different types of operations, their capabilities, and how they function within the Raikoo platform.

What Are Operations?

An operation is a discrete unit of work that performs a specific function within a workflow. Operations can:

  • Process data from the workspace
  • Generate content using AI models
  • Transform files or data
  • Interact with external systems
  • Control workflow logic (conditions, loops, etc.)

Each operation has inputs, outputs, and a set of configurable parameters that control its behavior. Operations can be connected to form dependency chains, allowing for complex sequences of tasks.

Types of Operations

Raikoo operations fall into two primary categories:

1. AI-Based Operations

These operations leverage large language models (LLMs) and other AI technologies to perform tasks that require intelligence, creativity, and natural language understanding.

Examples include:

  • Multi-step Assistant - A versatile operation that can handle a wide range of AI tasks through conversation
  • Summarization - Condense longer texts into concise summaries
  • Content Generation - Create original content based on specific prompts and guidelines
  • Classification - Categorize and label data based on defined criteria
  • Named Entity Recognition - Identify and extract specific entities from text

AI-based operations can be configured with different personas to enhance their output quality and relevance for specific domains or tasks.

2. Programmatic Operations

These operations perform more traditional computational tasks without necessarily using AI. They handle workflow logic, data transformations, and system interactions.

Examples include:

  • Logic Operations - Implement conditional branching (if-else statements)
  • Iterative Operations - Process lists or collections of items (for each, for loop)
  • System Operations - Execute code, interact with files, or connect to external APIs
  • Data Transformation - Convert between file formats or restructure data
  • File Operations - Create, modify, or delete files in the workspace

Operation Configuration

Each operation can be configured through several key properties:

  • Input/Request - The data or prompt provided to the operation
  • Context - Additional information that helps the operation understand its task
  • Output - Where and how the operation's results are stored
  • Parameters - Specific settings that control the operation's behavior
  • Model Selector - For AI operations, specifies which language model to use
  • Persona - For AI operations, defines the role and expertise of the AI
  • Dependencies - Operations that must complete before this one can execute

Creating Custom Operations

Raikoo allows for the creation of custom operations to address specific needs or integrate with external systems. Custom operations can be developed using:

  1. Operation Templates - Pre-defined configurations that can be customized for specific use cases
  2. JavaScript/TypeScript - Code-based operations that can perform custom logic or integrations
  3. Custom Tools - Specialized components that extend the capabilities of AI operations

Operations Within the Workflow

Operations in a workflow are managed by the Workflow Manager, which:

  1. Determines the execution order based on dependencies
  2. Provides operations with data from the workspace
  3. Captures and stores operation outputs
  4. Handles error conditions and retries
  5. Tracks progress and status throughout execution

Best Practices for Working with Operations

To get the most out of Raikoo operations:

  • Start Simple - Begin with core operations before adding complexity
  • Single Responsibility - Each operation should focus on one specific task
  • Clear Dependencies - Define clear input/output relationships between operations
  • Appropriate Personas - Match AI operations with the right personas for the task
  • Effective Prompting - Craft clear, specific prompts for AI operations
  • Parameter Tuning - Adjust operation parameters to optimize performance
  • Error Handling - Include operations that can handle potential failure points
  • Testing - Validate operations individually before connecting them in complex workflows

Conclusion

Operations are the core components that enable Raikoo to automate complex AI tasks. By understanding and effectively combining different types of operations, you can create powerful workflows that leverage both AI and programmatic capabilities to address a wide range of business needs.