What are Agents?
Agents are LLM-powered systems that can:- Reason about problems and decide which actions to take
- Use Tools to interact with external systems and APIs
- Maintain Memory of previous interactions and context
- Iterate on solutions until a task is complete
Unlike simple LLM chains that follow a predetermined path, agents dynamically decide their next action based on previous results and the current context.
How Agents Work
This loop continues until the agent reaches a conclusion or hits a maximum iteration limit.
Available Agents
Flowise provides several agent types, each optimized for different use cases:LangChain Agents
Tool Agent
Modern agent using function calling for reliable tool execution
ReAct Agent (Chat)
Chat-optimized agent using the ReAct (Reasoning + Acting) framework
ReAct Agent (LLM)
Traditional ReAct agent for completion-based models
Conversational Agent
Agent optimized for natural conversations with tool access
Specialized Agents
OpenAI Assistant
Use OpenAI’s Assistants API with built-in tools
XML Agent
Claude-optimized agent using XML formatting
CSV Agent
Specialized agent for querying and analyzing CSV data
Retrieval Agent
Agent with built-in document retrieval capabilities
Autonomous Agents
AutoGPT
Autonomous agent that can plan and execute complex tasks
BabyAGI
Task-driven autonomous agent with goal decomposition
LlamaIndex Agents
OpenAI Tool Agent
LlamaIndex agent optimized for OpenAI models
Anthropic Agent
LlamaIndex agent optimized for Claude models
Core Components
Every agent in Flowise requires these core components:The language model that powers the agent’s reasoning.Supported Models:
- ChatOpenAI (GPT-3.5, GPT-4)
- ChatAnthropic (Claude)
- ChatGoogleGenerativeAI (Gemini)
- Other compatible chat models
Array of tools the agent can use to accomplish tasks.Examples: Calculator, Web Browser, API tools, Custom tools
Memory system to maintain conversation history and context.Types: Buffer Memory, Summary Memory, Entity Memory
Optional Parameters
Maximum number of tool calls the agent can make.Default: Varies by agent typeTip: Set this to prevent infinite loops in complex scenarios
Instructions that define the agent’s personality and behavior.
Agent Frameworks Explained
ReAct (Reasoning + Acting)
The ReAct framework alternates between reasoning and acting:Function Calling (Tool Agent)
Modern agents use native function calling APIs:XML Format (Claude)
Claude-optimized agents use XML for structured thinking:Common Use Cases
Research Assistant
Research Assistant
Tools: Web Search, Calculator, Document RetrievalExample Tasks:
- Answer questions by searching the web
- Perform calculations on found data
- Retrieve relevant documents from a knowledge base
Data Analysis
Data Analysis
Tools: CSV Query, Calculator, Plotting ToolExample Tasks:
- Query CSV files to extract insights
- Perform statistical calculations
- Generate visualizations
Customer Support
Customer Support
Tools: Knowledge Base Retrieval, Ticket API, Email ToolExample Tasks:
- Answer questions from documentation
- Create support tickets
- Send follow-up emails
Task Automation
Task Automation
Tools: API integrations, File operations, NotificationsExample Tasks:
- Automate multi-step workflows
- Integrate with external systems
- Send notifications based on conditions
Best Practices
Agent Design Tips
- Clear Instructions: Provide detailed system messages that explain the agent’s role
- Appropriate Tools: Give agents only the tools they need for their task
- Set Limits: Use maxIterations to prevent runaway costs
- Test Thoroughly: Agents can be unpredictable; test with various inputs
- Monitor Usage: Track tool calls and token consumption
Agent vs Chain: When to Use What
| Use Agents When | Use Chains When |
|---|---|
| Task requires dynamic decision-making | Workflow is predictable and linear |
| Multiple tools needed | Single operation needed |
| Solution path is unclear | You know the exact steps |
| Autonomy is beneficial | You want deterministic behavior |
Performance Considerations
Monitoring and Debugging
To debug agent behavior:- Enable Verbose Mode: Set
DEBUG=truein environment variables - Check Iterations: Monitor how many steps the agent takes
- Review Tool Calls: Examine which tools were called and with what parameters
- Analyze Reasoning: Read the agent’s thought process in verbose logs
Security Considerations
Next Steps
Tool Agent
Learn about the recommended agent for most use cases
Tools Overview
Explore available tools for your agents
Custom Tools
Create custom tools for specialized tasks
Memory Systems
Understand agent memory options