Skip to main content

Flow Steps

Flow steps are the building blocks of your workflows. After a trigger activates your flow, steps execute in sequence to accomplish your business logic. Each step performs a specific function—from running AI agents to transforming data to making decisions.
Agent-Centric Design: QuivaWorks flows are designed to be agent-first. Start with an AI agent, attach tools (connectors) to it, and add supporting steps as needed. This approach maximizes the intelligence and autonomy of your workflows.

Step Types

Agents

Run AI agents with tools and context

Condition

Branch flows with if/then/else logic

HTTP Request

Call external APIs and services

Map

Transform and iterate over data

Rules

Apply business rules and calculations

Human in the Loop

Add manual approval steps

Delay

Pause workflow execution

Eval

Execute custom JavaScript

Functions

Use utility functions

How Steps Work

Steps execute sequentially after your trigger fires. Each step:
  1. Receives input from the trigger or previous steps
  2. Performs its function (run agent, make decision, transform data, etc.)
  3. Outputs results that subsequent steps can use
  4. Passes control to the next step

The Agent-Centric Approach

Start with agents, not automation. Traditional workflow tools force you to map out every step explicitly. QuivaWorks is different—you delegate work to intelligent agents and let them figure out the details.

Traditional Approach (Step-by-Step)

Problem: Breaks when anything unexpected happens

Agent-Centric Approach

Benefit: Agent adapts to any scenario
Best Practice: Let agents handle complexity. Only add additional steps (Conditions, Maps, HTTP Requests) when you need:
  • Explicit branching logic that you control
  • Data transformation before/after agents
  • Direct API calls without agent interpretation
  • Business rules that must be enforced

Common Step Patterns

Let agent make decision, branch based on outcome, take action.
Use when: Agent provides intelligence, but you need explicit control over outcomes.
Transform data before agent, process with agent, format after.
Use when: Agent needs clean input or output needs specific structure.
Evaluate business rules first, then let agent handle complexity.
Use when: Hard requirements must be met before agent processes.
Agent proposes, human approves, agent executes.
Use when: High-stakes decisions need human oversight.
Fetch external data, transform it, let agent process.
Use when: Agent needs context from external systems.
Wait for time-based conditions, then process with agent.
Use when: Time-based workflows or retry logic.

Step Best Practices

Start Simple

Begin with one agent. Add steps only when needed. The simpler your flow, the easier to maintain.

Let Agents Decide

Don’t hard-code logic that agents can figure out. Use Conditions only for business-critical branching.

Name Steps Clearly

Use descriptive names: “Analyze Customer Request” not “Agent 1”. Makes flows self-documenting.

Test as You Build

Test each step before adding the next. Catch issues early, iterate quickly.

Handle Errors

Add error handling for critical steps. Use Conditions to route failures appropriately.

Use Variables

Reference previous step outputs with variables. Keep data flowing smoothly.

When to Use Each Step


Step Variables

Every step outputs data you can reference in subsequent steps. Use the variable syntax to access step outputs:
Examples:
Learn more about variable syntax in Variable Mapping

Next Steps

Ready to build your flow? Start with the most important step:

Agents

Configure AI agents with tools and context

Condition

Add branching logic to your flows

All Step Types

Explore all available step types

Variable Mapping

Pass data between steps