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 receives request
- Calls Workflow Tool
- Workflow executes (multiple steps)
- Returns result to agent
- Agent continues
Use Cases
Lead Processing Workflow
An agent receives a new sales lead and needs to process it:- Agent calls “Lead Processing” workflow
- Workflow validates lead data
- Enriches lead with additional info
- Creates ticket in CRM
- Returns processed lead data to agent
Document Processing
An agent receives a document for analysis:- Agent calls “Document Processing” workflow
- Workflow extracts text from document
- Classifies document type
- Stores in database
- Returns classification results
Multi-Provider API Integration
An agent needs data from multiple APIs:- Agent calls “Data Aggregation” workflow
- Workflow calls API 1 for customer data
- Workflow calls API 2 for order history
- Workflow calls API 3 for preferences
- 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:- Identify the need for a workflow
- Call the Workflow Tool with:
- Workflow name or ID
- Input parameters
- Receive the workflow result
- Continue with its response
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
Workflow not found
Workflow not found
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
Workflow fails during execution
Workflow fails during execution
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
Timeout waiting for workflow
Timeout waiting for workflow
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
Agent doesn't call workflow
Agent doesn't call workflow
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
- Workflows Documentation - Understand workflow design
- Agent Tools - Learn about agent-to-agent communication
- Agent Configuration - Add tools to agents
- Create Your First Agent - Get started with agents