Skip to content

Flow Steps Overview

Steps are the building blocks of Flows in Cognipeer. Each step performs a specific function, from querying language models to executing database operations. This guide provides an overview of the different types of steps available for building your Flow workflows.

Understanding Steps

Each step in a Flow:

  • Accepts inputs (either from App inputs or previous steps)
  • Performs a specific operation
  • Produces outputs that can be used by subsequent steps

Steps are executed in sequence, creating a flow of operations that process data and produce results.


Available Step Types

Cognipeer offers a diverse range of step types to build powerful workflows:

AI and Language Model Steps

Data and Search Steps

Web & Internet Steps

Workflow Control

Utilities

Variable Manipulation

Memory Management


Combining Steps

The power of Flows comes from combining multiple steps into cohesive workflows. Here are some common patterns:

Sequential Processing

The simplest pattern is sequential processing, where steps are executed one after another, with each step using the output of the previous step.

Example:

  1. HTTP Request step fetches data from an API
  2. Execute Node.js step processes the data
  3. Ask LLM step generates insights based on the processed data

Conditional Branching

Use the Condition step to branch flows. You can also pre-compute flags in Execute Node.js when needed.

Data Enrichment

Combine search and AI steps to enrich data:

  1. Search Knowledgebase step retrieves relevant information
  2. HTTP Request step fetches additional data from an external API
  3. Ask LLM step combines and synthesizes the information

Best Practices for Using Steps

  • Start Simple: Begin with a few steps and test thoroughly before adding complexity
  • Use Descriptive Names: Give each step a clear, descriptive name that indicates its purpose
  • Plan Your Data Flow: Consider how data will flow between steps and what transformations are needed
  • Handle Errors: Use Node.js steps to implement error handling where appropriate
  • Test Incrementally: Test your workflow after adding each new step to identify issues early

Next Steps

Explore the detailed documentation for each step type to learn about their specific configurations, inputs, and outputs:

  • See the Step Reference sections above for links to all steps.

By understanding the capabilities of each step type, you can design effective workflows that automate tasks, integrate systems, and leverage AI to solve business problems.

Built with VitePress