Agents Overview
Agents are reusable AI assistants with predefined roles and configurations. Unlike one-time tasks, agents maintain consistent behavior and can be shared across your team.Agent vs Task
When to Use Tasks
Tasks are best for:- One-time executions
- Quick exploratory work
- Testing ideas
- Ad-hoc requests
- Temporary workflows
When to Use Agents
Agents are best for:- Reusable workflows
- Repeated operations
- Team collaboration
- Production use cases
- Specialized roles
Comparison
| Feature | Tasks | Agents |
|---|---|---|
| Use case | One-time executions | Reusable workflows |
| Configuration | Auto-generated | Customizable |
| Persistence | Not saved | Saved and shareable |
| Behavior | Varies by request | Consistent |
| Sharing | Not shareable | Can be published |
| Role definition | Per task | Predefined |
Key Agent Features
1. Role Definition
Define your agent’s purpose and behavior:- “You are a customer support assistant”
- “You are a data analyst”
- “You are a research assistant”
2. Execution Mode
Choose how your agent processes tasks:- React Mode: Reasoning → Acting cycle (default)
- Graph Mode: Plan all steps first, then execute
3. Tool Access
Control what tools your agent can use:- Basic tools (web search, calculator)
- File operations
- Image understanding/generation
- Knowledge base operations
- And more
4. Knowledge Integration
Add domain-specific knowledge:- Attach knowledge bases
- Agent retrieves relevant information
- Enhances response accuracy
5. Model Configuration
Select models for different purposes:- General Model: Main reasoning engine
- Fast Model: For simple operations
- Visual Model: For image tasks
- Compact Model: For long conversations
How It Works
Creating Tasks
For one-time tasks, simply:- Go to Task page
- Enter your request
- Upload files if needed
- Xagent executes and shows results
Creating Agents
For reusable workflows:- Go to Build page
- Create new agent
- Configure role, models, tools, knowledge
- Test with live preview
- Save and publish
- Find the agent in the agents list
- Start a conversation with the agent
- Agent uses its configured behavior consistently
Shared Execution Interface
Both tasks and agents use the same execution interface:- Real-time progress tracking
- Step-by-step execution details
- Tool calls and responses
- Chat interaction
- Agent’s logo and name
- Agent’s configuration
- Consistent behavior based on agent’s settings
Typical Workflow
For One-Time Tasks
For Creating Agents
Agent Templates
Jump-start agent creation with pre-built templates:- Customer Support: FAQ handling, documentation search
- Data Analyst: Data processing, visualization, reporting
- Research Assistant: Information gathering, synthesis
- Content Creator: Writing, editing, image generation
Next Steps
- Building Agents - Create and configure your agents
- Templates - Explore pre-built agent templates
- Tasks - Learn about task execution