Skip to main content

Overview

The Task Agent is inspired by CrewAI’s task functionality, allowing you to assign specific and well-defined tasks to individual agents. Each Task Agent encapsulates a single task with structured prompt, expected output, and responsible agent, creating a clear and focused work unit. This pattern is fundamental for creating organized agent systems, where each agent has specific and well-defined responsibilities, similar to the “tasks” concept in CrewAI that enables efficient orchestration of specialized agent teams.
Inspired by CrewAI: Implementation based on the CrewAI Tasks concept for structured task assignment to specialized agents.

Key Features

One Task per Agent

Each Task Agent encapsulates exactly one specific task

Structured Prompt

Clear and detailed task prompt for the assigned agent

Expected Output

Clear definition of the expected task result

Assigned Agent

Selection of specific agent responsible for execution

When to Use Task Agent

✅ Use Task Agent when:
  • Well-defined tasks: You have a specific and clear task
  • Single responsibility: One agent should be responsible for one task
  • Structured output: You know exactly what to expect as a result
  • Specialization: Agent has specific expertise for the task
  • Simple orchestration: Task is part of a larger process
Practical examples:
  • Sentiment analysis of specific text
  • Executive summary generation from a report
  • Input data validation
  • Content translation to specific language
  • Information extraction from documents
❌ Avoid Task Agent when:
  • Multiple tasks: Need to execute several related tasks
  • Complex workflow: Requires conditional logic or loops
  • Agent interaction: Agents need to collaborate directly
  • Dynamic process: Workflow changes based on results
  • Too simple task: Can be solved with direct prompt

Creating a Task Agent

Step by Step on Platform

  1. On the Evo AI main screen, click “New Agent”
  2. In the “Type” field, select “Task Agent”
  3. You’ll see specific fields for task configuration
Creating Task Agent
Name: Descriptive name of the task
Description: Summary of the specific task
Goal: Specific objective of the task
Assigned Agent: Choose the agent that will execute the taskAvailable options:
  • Existing LLM agents on the platform
  • Configured A2A agents
  • Previously created specialized agents
Selection criteria:
  • Agent specialization in the task area
  • Required technical capabilities
  • Historical performance on similar tasks
  • Availability and resources
Example:
Complete Task Agent Configuration
Task Prompt: Detailed and specific prompt for the taskRecommended structure:
Expected Output: Clear and detailed description of expected resultExpected output structure:
Output specifications:
  • Format: Structured JSON
  • Required fields: All main fields must be present
  • Data types: Specify types (string, number, array, object)
  • Validation: Criteria to validate if output is correct
  • Examples: Concrete examples of expected format
Timeout: Time limit for task execution
Retry Policy: Retry policy in case of failure
Output Validation: Automatic result validation
Context Injection: Additional context injection
Output Key field in interface:The Output Key allows the Task Agent to save the task result in a specific variable in the shared state, making it available for other agents or subsequent tasks.How it works:
  • Configure the Output Key field with a descriptive name
  • The task result will be automatically saved in this variable
  • Other agents can access using placeholders {{output_key_name}}
  • Works in workflows, loops, and multi-agent systems
Configuration examples:
Use in subsequent tasks:
Best practices:
  • Use snake_case: task_result, processed_data
  • Be specific: form_validation instead of validation
  • Avoid conflicts with other state variables
  • Document output format in instructions
  • Use names that reflect task content

Practical Examples

1. Product Review Sentiment Analysis

Scenario: Analyze sentiment of product reviews for e-commerceTask Agent Configuration:Basic Information:
  • Name: sentiment_analysis_task
  • Description: Detailed sentiment analysis of product reviews
  • Goal: Provide actionable insights about customer satisfaction
Agent Assignment:
  • Assigned Agent: sentiment_specialist_v2
  • Agent Type: Specialized LLM Agent
  • Specialization: Sentiment analysis in Portuguese
Task Prompt:
Expected Output:

2. Executive Summary Generation

Scenario: Generate executive summary of long reportsTask Agent Configuration:Basic Information:
  • Name: executive_summary_task
  • Description: Generation of concise and informative executive summaries
  • Goal: Create summaries that capture key points for decision-making
Agent Assignment:
  • Assigned Agent: document_summarizer_pro
  • Specialization: Corporate document summarization
Task Prompt:
Expected Output:

3. Input Data Validation

Scenario: Validate form data before processingTask Agent Configuration:Basic Information:
  • Name: data_validation_task
  • Description: Intelligent validation of input data
  • Goal: Ensure data quality and completeness before processing
Agent Assignment:
  • Assigned Agent: data_validator_agent
  • Specialization: Data validation and cleaning
Task Prompt:
Expected Output:

Integration with Other Agents

Using Task Agents in Workflows

Example: Content Processing Pipeline
Example: Complete Product Analysis
Example: Complex Visual Workflow

Monitoring and Performance

Tracking Task Agents

Specific metrics for Task Agents:Execution Metrics:
Common issues with Task Agents:1. Output Format Mismatch
2. Task Scope Creep
3. Quality Inconsistency
4. Performance Degradation

Best Practices

Principles for effective Task Agents:
  • Single responsibility: One specific and well-defined task
  • Clear prompt: Precise and unambiguous instructions
  • Structured output: Well-specified output format
  • Appropriate agent: Choose agent with appropriate specialization
  • Robust validation: Clear criteria to validate result
Task-agent matching:
  • Text analysis: Use agents specialized in NLP
  • Data processing: Use agents with analytical capabilities
  • Content generation: Use creative and specialized agents
  • Validation: Use agents focused on quality and precision
  • Translation: Use specialized multilingual agents
Ensuring consistent execution:
  • Testing: Test tasks with different inputs
  • Validation: Implement automatic output validation
  • Monitoring: Continuously monitor performance and quality
  • Feedback loop: Use results to improve prompts
  • Version control: Maintain history of task changes

Common Use Cases

Content Analysis

Analytical Tasks:
  • Sentiment analysis
  • Entity extraction
  • Text classification
  • Document summarization

Data Processing

Data Tasks:
  • Input validation
  • Data cleaning
  • Format transformation
  • Information enrichment

Content Generation

Creative Tasks:
  • Summary generation
  • Report creation
  • Text translation
  • Document formatting

Verification and Quality

Control Tasks:
  • Compliance verification
  • Quality control
  • Data auditing
  • Rule validation

Next Steps

Workflow Agent

Use Task Agents in complex visual workflows

Sequential Agent

Combine Task Agents in ordered sequences

LLM Agent

Understand the agents that execute tasks

A2A Agent

Use external agents as task executors

The Task Agent is perfect for creating well-defined and specialized work units. Use it when you want to assign specific responsibilities to specialized agents, following the CrewAI pattern for efficient organization of agent teams.