What are Agentflows?
Agentflows are Flowise’s advanced workflow system designed for multi-agent systems, workflow orchestration, and complex AI automation. Unlike chatflows (single-agent systems), agentflows enable multiple AI agents to work together, each with specialized roles and capabilities.Agentflows are ideal for complex workflows requiring coordination between multiple specialized agents, sequential processing, or advanced decision-making logic.
Agentflow Versions
Flowise supports two versions of agentflows:V2 (Recommended)
The latest version with improved performance, better agent coordination, and enhanced features:- Enhanced agent communication protocols
- Better memory management across agents
- Improved error handling and recovery
- Advanced workflow orchestration
- New agent types and capabilities
V1 (Deprecated)
The original multi-agent system. While still functional, it’s recommended to migrate to V2:Why Agentflows Matter
Agentflows unlock capabilities beyond simple chatbots:- Specialized Agents: Each agent focuses on specific tasks (research, writing, code review)
- Workflow Orchestration: Define complex, multi-step processes
- Parallel Processing: Multiple agents work simultaneously
- Advanced Decision Making: Agents can route tasks based on context
- Enterprise Scale: Handle complex business processes
Agentflow vs Chatflow
| Feature | Chatflow | Agentflow |
|---|---|---|
| Agent Count | Single | Multiple |
| Complexity | Simple to Moderate | Moderate to Complex |
| Use Case | Q&A, RAG, Support | Research, Analysis, Automation |
| Coordination | N/A | Built-in orchestration |
| Best For | Direct interactions | Multi-step workflows |
Core Structure
Type Definitions
FlowData Schema
Agentflows extend the basic chatflow structure:Agent Node Types
Agentflows use specialized node types:1. Sequential Agents
Agents execute tasks in a defined order:2. Supervisor Pattern
A supervisor agent coordinates worker agents:3. State Machine Agents
Agents transition through defined states:Creating an Agentflow
Step 1: Choose Version
Select V2 for new projects:Step 2: Design Agent Roles
Define what each agent will do: Example: Content Creation Pipeline- Research Agent: Gathers information from multiple sources
- Writer Agent: Creates initial draft based on research
- Editor Agent: Reviews and improves content
- SEO Agent: Optimizes for search engines
- Fact-Checker Agent: Verifies claims and citations
Step 3: Build the Flow
Step 4: Configure Agent Communication
Agents share context through:- Shared Memory: All agents access common conversation history
- State Passing: Explicit data transfer between agents
- Tool Results: Output from one agent becomes input to another
Real-World Example: Customer Support Automation
Agent Icons & Visualization
Agentflows use special icons to distinguish agent types:Agentflow Features
1. Version Toggle
Switch between V1 and V2 agentflows:2. Agent Memory Management
Agentflows support advanced memory patterns:- Individual Memory: Each agent maintains its own context
- Shared Memory: All agents access global state
- Hierarchical Memory: Parent agents pass context to children
3. Conditional Routing
Route to different agents based on conditions:Performance Considerations
Agentflows involve multiple LLM calls, which can impact:
- Latency: Sequential agents increase response time
- Cost: More agents = more API calls
- Complexity: Debugging multi-agent interactions is harder
Optimization Tips
- Parallel Processing: Run independent agents simultaneously
- Smart Routing: Skip unnecessary agents with conditions
- Caching: Store intermediate results
- Model Selection: Use faster/cheaper models for simple agents
Common Agentflow Patterns
Pattern 1: Research Pipeline
Pattern 2: Code Review System
Pattern 3: Content Moderation
Migration from V1 to V2
API Reference
List Agentflows
Get Specific Agentflow
Determine Canvas Route
Related Concepts
- Chatflows - For single-agent systems
- Nodes and Edges - Building blocks of flows
- Credentials - API keys for agent tools
- Variables - Dynamic configuration
Troubleshooting
Agent Not Executing
- Check agent dependencies are met
- Verify tool configurations
- Ensure proper routing conditions
- Check agent execution order
Infinite Loops
- Review state transitions
- Add maximum iteration limits
- Implement proper exit conditions
Memory Issues
- Clear shared memory between runs
- Limit conversation history length
- Use memory summarization for long interactions
