Skip to main content

Routing Overview

Flo AI provides powerful routing capabilities that allow you to create intelligent workflows where requests are dynamically routed to the most appropriate agents based on content, context, or custom logic.

Routing Types

Conditional Routing

Route based on simple conditions or content analysis:

LLM-Powered Routing

Use AI to make intelligent routing decisions:
smart-routing.yaml

Reflection Routing

Implement A→B→A→C feedback patterns:
reflection-routing.yaml

Plan-Execute Routing

Cursor-style development workflows:
plan-execute-routing.yaml

Advanced Routing Patterns

Multi-Criteria Routing

Context-Aware Routing

Load Balancing

YAML Router Configuration

Smart Router

Conditional Router

Reflection Router

Custom Router Implementation

Creating Custom Routers

Using Custom Routers

Router Performance

Caching Routes

Performance Monitoring

Error Handling in Routing

Fallback Routes

Retry Logic

Best Practices

Router Design

  1. Keep it simple: Start with basic conditional routing
  2. Use LLM routing: For complex content analysis
  3. Implement fallbacks: Always have a default route
  4. Monitor performance: Track routing metrics
  5. Test thoroughly: Validate routing logic with various inputs

Performance Optimization

Security Considerations

This comprehensive routing system allows you to create intelligent, adaptive workflows that can handle complex routing scenarios with high performance and reliability!