Skip to main content
Unlike most tools, the call is synchronous: the agent pauses until the workflow finishes running and gets its result back before continuing. This makes it a good fit for multi-step logic (like enrichment, validation, or aggregation across several APIs) that you’d rather maintain once as a workflow than duplicate inside an agent’s instructions.

What is a Workflow Tool?

A Workflow Tool lets you:
  • ✅ Call another workflow from within an agent
  • ✅ Pass custom input to the workflow
  • ✅ Wait for the workflow to complete and get results
  • ✅ Chain multiple workflows together
  • ✅ Reuse workflow logic across agents
Agent Process:
  1. Agent receives request
  2. Calls Workflow Tool
  3. Workflow executes (multiple steps)
  4. Returns result to agent
  5. Agent continues

Use Cases

Lead Processing Workflow

An agent receives a new sales lead and needs to process it:
  1. Agent calls “Lead Processing” workflow
  2. Workflow validates lead data
  3. Enriches lead with additional info
  4. Creates ticket in CRM
  5. Returns processed lead data to agent

Document Processing

An agent receives a document for analysis:
  1. Agent calls “Document Processing” workflow
  2. Workflow extracts text from document
  3. Classifies document type
  4. Stores in database
  5. Returns classification results

Multi-Provider API Integration

An agent needs data from multiple APIs:
  1. Agent calls “Data Aggregation” workflow
  2. Workflow calls API 1 for customer data
  3. Workflow calls API 2 for order history
  4. Workflow calls API 3 for preferences
  5. Returns aggregated data to agent

Configuration

Adding a Workflow Tool to an Agent

1

Go to Agent Settings

Open the agent where you want to use the Workflow Tool
2

Open Tools Tab

Navigate to the Tools configuration section
3

Add New Tool

Click “Add Tool” and select “Workflow”
4

Configure Tool

  • Give the tool a descriptive name
  • Add a description for the agent
  • No additional parameters needed
5

Save

The Workflow Tool is now available to the agent

Tool Configuration Options


How to Use

In Agent Chat

When the agent needs to run a workflow, it will:
  1. Identify the need for a workflow
  2. Call the Workflow Tool with:
    • Workflow name or ID
    • Input parameters
  3. Receive the workflow result
  4. Continue with its response
Example Agent Prompt:

Workflow Input Format

The agent can pass data to the workflow:

Workflow Response

The workflow returns results that the agent can use:

Workflow Tool vs Agent Tool


Best Practices

Clear Naming

Use descriptive workflow names so agents can identify the right one

Input Validation

Design workflows to validate input before processing

Error Handling

Handle workflow failures gracefully in your agent prompt

Monitor Usage

Track workflow executions in project analytics

Example: Agent Calling Workflow


Troubleshooting

Symptoms: Workflow Tool can’t locate the workflowSolutions:
  • Verify workflow name is spelled correctly
  • Ensure workflow is in the same project
  • Check workflow is published/active
  • Review agent prompt for workflow reference
Symptoms: Workflow starts but encounters an errorSolutions:
  • Check workflow input matches expected schema
  • Review workflow logs for specific errors
  • Verify all workflow dependencies are available
  • Test workflow directly before adding to agent
Symptoms: Workflow takes too long to completeSolutions:
  • Check workflow step performance
  • Optimize slow steps or API calls
  • Increase timeout if appropriate
  • Consider breaking workflow into smaller steps
Symptoms: Agent has tool but doesn’t use itSolutions:
  • Review agent prompt - it should mention when to use workflow
  • Check if input clearly triggers workflow usage
  • Add examples to agent prompt
  • Test with explicit instruction to use workflow

Advanced Usage

Conditional Workflow Execution

Chaining Multiple Workflows

Using Workflow Results in Agent Logic


Next Steps