> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beam.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Task Executions

> Monitor agent task executions, analyze workflow steps, track performance metrics, and debug agent behavior in real-time

Task executions provide complete visibility into how your agents process work. Every triggered task creates an execution record showing the full workflow path, tool outputs, evaluation scores, and decision logic.

## Understanding Task Executions

Every task execution represents a single workflow run from trigger to completion. Beam captures the complete execution trace including:

**Execution Metadata** - Task ID, trigger source, start/end timestamps, overall status

**Workflow Steps** - Every node executed with inputs, outputs, and tool usage

**Branch Decisions** - Which paths were selected and why based on conditions

**Evaluation Metrics** - Accuracy scores and validation results per step

**Performance Data** - Execution duration, token usage, API calls made

<iframe src="https://app.supademo.com/embed/cmgjeqx4m1hzjkrn977nhry0z" frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen style={{width: "100%", height: "450px"}} />

## Viewing Task Executions

### Tasks Overview

The Tasks page displays all executions for your agent in chronological order.

<Frame>
  <img src="https://mintcdn.com/beamai/YDqllBKSmU7636m6/03-running-operations/task-management/task-executions/S6LlgAcwQ79aOG-DcQ7EO.jpg?fit=max&auto=format&n=YDqllBKSmU7636m6&q=85&s=6a49a76fed1c7054906f7dd491efdebe" alt="" width="2560" height="1440" data-path="03-running-operations/task-management/task-executions/S6LlgAcwQ79aOG-DcQ7EO.jpg" />
</Frame>

**Task List Features:**

* **Task ID**: Unique identifier and custom task number
* **Description**: Auto-generated summary from trigger input or manual entry
* **Status Indicator**: Completed (green), In Progress (blue), Failed (red), Pending (gray)
* **Timestamp**: Execution start time and date
* **Search & Filter**: Find tasks by name, status, or date range
* **Create Task**: Manually trigger new execution

**Status Types:**

<CardGroup cols={2}>
  <Card title="Completed" icon="circle-check">
    Workflow finished successfully through all nodes to exit point
  </Card>

  <Card title="In Progress" icon="spinner">
    Currently executing - real-time updates as nodes complete
  </Card>

  <Card title="Failed" icon="circle-xmark">
    Stopped due to error, timeout, or validation failure
  </Card>

  <Card title="Pending" icon="clock">
    Queued for execution or awaiting human approval (HITL mode)
  </Card>
</CardGroup>

### Task Execution Details

Click any task to view the complete execution breakdown in the right panel.

<Frame>
  <img src="https://mintcdn.com/beamai/YDqllBKSmU7636m6/03-running-operations/task-management/task-executions/KJlE2kuysOyMzdRLm_-02.jpg?fit=max&auto=format&n=YDqllBKSmU7636m6&q=85&s=4e29ea4b9f3dc2069a57d5dc07af5d90" alt="" width="2560" height="1440" data-path="03-running-operations/task-management/task-executions/KJlE2kuysOyMzdRLm_-02.jpg" />
</Frame>

**Execution Panel Sections:**

**Task Header** - Shows current step progress (2/6), task name, completion status

**Attachments** - Files uploaded with the task (PDFs, images, documents)

**Task Execution Timeline** - Visual flowchart of all workflow steps

**Output Panel** - Final results, messages, and extracted data

**Input Panel** - Original trigger data or manual input provided

## Analyzing Executions

### Workflow Step Breakdown

Each step in the timeline shows the exact sequence of agent actions.

<Frame>
  <img src="https://mintcdn.com/beamai/YDqllBKSmU7636m6/03-running-operations/task-management/task-executions/dd9AZXxU4Wh8vQaW7LrMx.jpg?fit=max&auto=format&n=YDqllBKSmU7636m6&q=85&s=c89eab2d921ba3506a1b3d1f066d13eb" alt="" width="2560" height="1440" data-path="03-running-operations/task-management/task-executions/dd9AZXxU4Wh8vQaW7LrMx.jpg" />
</Frame>

**Step Information:**

* **Step Name**: Node objective (e.g., "Extract the Required Information from the Invoice")
* **Tool Used**: Integration or Custom GPT tool icon
* **Accuracy Score**: Evaluation percentage (100%, 95%, etc.)
* **Status Icon**: Green checkmark (passed), red X (failed), yellow warning (needs review)

**Step Status Indicators:**

* ✅ **Green Checkmark**: Step completed successfully, passed all evaluations
* ❌ **Red X**: Step failed validation or encountered error
* ⚠️ **Yellow Warning**: Step completed but flagged for review
* 🔄 **Blue Spinner**: Currently executing in real-time

<AccordionGroup>
  <Accordion title="Step Input & Output">
    **Step Input** - Shows the exact data the node received:

    * Variables from trigger (`task_query`)
    * Outputs from previous nodes
    * Static configuration values
    * Memory file references

    **Step Output** - The result generated by the node:

    * Extracted data from documents
    * API responses from integrations
    * Generated text or classifications
    * Structured JSON objects

    **Example:**

    ```json theme={null}
    {
      "extracted_invoiced_details": {
        "Buyer Name": "Quantum Technologies",
        "Tax Amount": "$384.00",
        "Invoice Date": "May 15, 2024",
        "Total Amount": "$5,184.00"
      }
    }
    ```
  </Accordion>

  <Accordion title="Tool & Reasoning">
    Explains how the agent approached the task:

    * Which tool was selected and why
    * Decision logic and confidence scores
    * Alternative approaches considered
    * Evaluation criteria applied

    Access via "View tool details" link in step panel.
  </Accordion>

  <Accordion title="Evaluation Metrics">
    Shows accuracy and quality scores:

    * Overall step accuracy percentage
    * Individual criterion pass/fail status
    * Auto-generated evaluation rules
    * Feedback and improvement suggestions

    Expandable "Evaluation metrics" section at step bottom.
  </Accordion>
</AccordionGroup>

### Branch Logic & Path Selection

Agents make decisions on which workflow path to follow based on conditions.

<Frame>
  <img src="https://mintcdn.com/beamai/YDqllBKSmU7636m6/03-running-operations/task-management/task-executions/XhJSBny065QDI4V8n7bTb.jpg?fit=max&auto=format&n=YDqllBKSmU7636m6&q=85&s=902fe503fbda29e6a0c03ca5be5d35e7" alt="" width="2560" height="1440" data-path="03-running-operations/task-management/task-executions/XhJSBny065QDI4V8n7bTb.jpg" />
</Frame>

**Branch Visualization:**

* **Selected Path**: Highlighted with green checkmark icon
* **Not Selected Path**: Grayed out with red X icon
* **Condition Logic**: Expandable dropdown showing "If the validation is successful" vs "If the validation is unsuccessful"
* **Reasoning**: Why agent chose specific path based on previous step outputs

This transparency allows you to trace exactly why the agent took specific actions.

## Creating & Managing Tasks

### Manual Task Creation

Trigger tasks manually for on-demand processing or testing using the **Create Task** button.

<AccordionGroup>
  <Accordion title="Custom Instructions">
    Enter natural language instructions for the agent to process.

    **Example:**

    ```
    Extract customer information from the attached contract
    and update the CRM system
    ```

    Agent interprets instructions and routes to appropriate workflow nodes.
  </Accordion>

  <Accordion title="File Upload">
    Attach documents for the agent to process:

    * PDFs, Word docs, Excel spreadsheets
    * Images (JPEG, PNG for OCR)
    * CSV data files
    * URLs to parse

    Files become available via `task_query.encodedContextFiles`.
  </Accordion>

  <Accordion title="Re-run Previous Task">
    Select from recent executions to rerun with same inputs.

    **Use Cases:**

    * Test workflow changes with known data
    * Debug failed executions
    * Verify fixes after agent modifications
    * Compare results before/after optimization
  </Accordion>

  <Accordion title="JSON Input">
    Provide structured data directly for precise testing.

    **Example:**

    ```json theme={null}
    {
      "task": "Validate invoice data",
      "invoice_number": "INV-2025-001",
      "amount": 1500.00,
      "vendor": "Acme Corp"
    }
    ```

    Matches webhook payload format for integration testing.
  </Accordion>
</AccordionGroup>

### Performance Metrics

Track agent performance across all task executions:

**Completion Rate** - Percentage of tasks finishing successfully

**Average Runtime** - Mean execution duration from start to completion

**Evaluation Scores** - Average accuracy across all steps and tasks

**Success by Trigger** - Completion rates by trigger source (Email, Webhook, Manual, Timer)

<AccordionGroup>
  <Accordion title="Analytics Dashboard">
    Access detailed performance data through the Analytics tab.

    **Completion Trends** - Visualize task completion rates over time with daily, weekly, monthly aggregation

    **Runtime Analysis** - Identify slowest steps and bottlenecks in execution flow

    **Evaluation Insights** - Track quality improvements and failure patterns

    **Tool Performance** - See which integrations perform best with success rates and response times
  </Accordion>
</AccordionGroup>

## Debugging & Best Practices

### Debugging Failed Executions

Failed tasks appear with red status indicator in task list.

**Common Failure Causes:**

**Validation Failure** - Step didn't meet evaluation criteria (e.g., accuracy \< 90%)

**Tool Error** - Integration API returned error or timeout

**Missing Data** - Required field not present in trigger input or previous step output

**Timeout** - Execution exceeded maximum duration limit

<Steps>
  <Step title="Identify Failed Step">
    Scroll through execution timeline to find red X status icon. Failed step shows error message and which criteria wasn't met.
  </Step>

  <Step title="Check Step Input">
    Verify the node received expected data format. Common issues: incorrect variable mapping, null/empty previous step, data type mismatch.
  </Step>

  <Step title="Review Tool Output">
    Examine what the tool actually returned vs expected. Integration errors often include API error codes.
  </Step>

  <Step title="Analyze Evaluation Scores">
    Look at which evaluation criteria failed. Adjust criteria thresholds or improve prompts based on failures.
  </Step>

  <Step title="Test Fix">
    Make changes to workflow, then re-run the same task to verify fix.
  </Step>
</Steps>

<AccordionGroup>
  <Accordion title="Regular Execution Reviews">
    Check task executions daily during initial deployment:

    * Monitor completion rates
    * Review evaluation scores
    * Identify recurring failures
    * Validate output quality

    Gradually reduce frequency as agent stabilizes (95%+ success rate).
  </Accordion>

  <Accordion title="Set Up Failure Alerts">
    Configure notifications for execution failures via email, Slack, or webhook to ticketing system. Respond quickly to prevent backlog buildup.
  </Accordion>

  <Accordion title="Baseline Performance Metrics">
    Establish expected performance benchmarks:

    * Target completion rate (e.g., 95%)
    * Maximum acceptable runtime (e.g., 2 minutes)
    * Minimum evaluation scores (e.g., 90%)

    Alert when metrics deviate beyond thresholds.
  </Accordion>

  <Accordion title="Test with Production Data">
    Use re-run feature to test changes:

    * Keep 10-20 representative tasks saved
    * Re-run after workflow modifications
    * Compare results before/after changes

    Maintain test case library for regression testing.
  </Accordion>

  <Accordion title="Tasks Stuck in Pending">
    **Cause**: Human-in-the-loop approval required or queue backlog

    **Solution**:

    * Check Automation Modes settings (HITL enabled?)
    * Review pending approvals in Inbox
    * Verify agent has sufficient processing capacity
  </Accordion>

  <Accordion title="Inconsistent Evaluation Scores">
    **Cause**: Evaluation criteria too broad or subjective

    **Solution**:

    * Make criteria more specific and measurable
    * Use exact value matching instead of fuzzy matching
    * Regenerate criteria based on successful tasks
  </Accordion>

  <Accordion title="Execution Timeline Not Updating">
    **Cause**: Real-time connection lost or browser cached state

    **Solution**:

    * Refresh page to reconnect WebSocket
    * Check network connection stability
    * Clear browser cache if issue persists
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Automation Modes" icon="robot" href="/03-running-operations/task-management/automation-modes/automation-modes">
    Configure human-in-the-loop workflows and approval processes
  </Card>

  <Card title="Rerunning Tasks" icon="rotate-right" href="/03-running-operations/debugging-testing/rerunning-tasks/rerunning-tasks">
    Test workflow changes with previous task data
  </Card>

  <Card title="Evaluation Framework" icon="chart-line" href="/04-observability-analytics/evaluation-framework/evaluation-framework">
    Set up quality criteria and accuracy scoring
  </Card>

  <Card title="Optimize Outputs" icon="sparkles" href="/04-observability-analytics/optimize-outputs/optimize-outputs">
    Improve agent performance with AI-assisted optimization
  </Card>
</CardGroup>
