Skip to main content

Agent Executions

View execution history with metrics, costs, and filtering options.

Overview

The Agent Executions page is your central hub for monitoring agent activity. Every time an agent processes an email or responds to a chat message, it creates an execution record with detailed information about what happened, how long it took, and how much it cost.

Both email executions and chat executions from the Test Chat feature appear in this unified view.

Accessing Executions

Navigate to Monitor > Activity > Agent Activity to view the execution list.

Understanding the Execution List

List View

The execution list shows:

ColumnDescription
StatusExecution outcome (Success, Failed, In Progress)
AgentWhich agent processed the email
SubjectEmail subject line
FromEmail sender
DurationHow long the execution took
TokensTotal tokens used (input + output)
CostCalculated cost for this execution
TimeWhen the execution occurred

Status Indicators

  • Green (Success) - Execution completed without errors
  • Red (Failed) - Execution encountered an error
  • Yellow (In Progress) - Execution is still running
  • Gray (Cancelled) - Execution was stopped
  • Blue (Paused) - Long-running execution paused for later resumption
  • Purple (Scheduled) - Long-running execution waiting to resume
  • Purple Timer (Resume Pending) - Execution hit a transient error and is queued for automatic retry

Note: For agents with long-running tasks enabled, executions may span multiple sessions. Paused and Scheduled statuses indicate the execution will continue later.

Note: The Resume Pending indicator appears when an execution encounters a transient infrastructure failure (such as an LLM provider credit balance issue or rate limit) and has been automatically queued for retry. See Auto-Resume below for details.

Filtering Executions

Use the timeframe filter and other controls to find specific executions:

By Timeframe

The timeframe selector at the top of the page lets you quickly filter executions by time period:

PresetDescription
Past HourExecutions from the last 60 minutes (default)
Past DayExecutions from the last 24 hours
Last 7 DaysExecutions from the past week
Custom RangeSelect specific start and end dates

When you select Custom Range, two date pickers appear where you can specify exact start and end dates.

Tip: The timeframe filter helps manage large execution volumes and improves page load times by limiting results.

By Status

Filter by execution outcome:

  • All
  • Completed (Success)
  • Failed
  • In Progress

By Agent

Select a specific agent to see only its executions.

Search for text in:

  • Email subject
  • Sender email
  • Sender name

Combining Filters

Filters combine with AND logic. For example:

  • Timeframe: Past Day + Status: Failed
  • Shows all failed executions from the last 24 hours

Sorting and Pagination

Sorting

Click column headers to sort:

  • Click once for ascending
  • Click again for descending
  • Sortable columns: Time, Duration, Cost, Tokens

Pagination

At the bottom of the list:

  • Change rows per page (10, 25, 50, 100)
  • Navigate between pages
  • See total execution count

Key Metrics

Duration

How long the execution took from start to finish:

  • Fast (<5s): Simple processing
  • Normal (5-30s): Typical with tool calls
  • Slow (>30s): Complex reasoning or many tools

Token Usage

Combined input and output tokens:

  • Input tokens: Prompt + email content
  • Output tokens: Agent response

Understanding tokens:

  • ~4 characters = 1 token (English)
  • Higher tokens = higher cost
  • Large emails or long responses increase tokens

Cost

Calculated based on:

  • Model pricing (configured per model)
  • Input token count × input price
  • Output token count × output price

Note: Costs are estimates based on your configured pricing. Verify against provider billing for accuracy.

Common Tasks

Finding Failed Executions

  1. Set Status filter to "Failed"
  2. Review the list
  3. Click each to see error details
  4. Take corrective action

Analyzing Costs

  1. Sort by Cost (descending)
  2. Review high-cost executions
  3. Click to see why they were expensive
  4. Consider optimization (smaller model, shorter prompts)

Reviewing Agent Performance

  1. Filter by specific agent
  2. Look at success rate (failures vs. successes)
  3. Check average duration
  4. Review cost patterns

Finding Recent Activity

  1. Sort by Time (descending)
  2. Review latest executions
  3. Verify system is processing emails
  4. Check for any immediate issues

Export and Reporting

Exporting Data

Currently, executions can be:

  • Viewed in the UI
  • Accessed via API for custom reporting
  • Individual execution details can be copied

Metrics to Track

MetricPurposeHow to Calculate
Success RateAgent reliabilitySuccesses / Total × 100
Average CostBudget planningSum of costs / Total executions
Average DurationPerformance monitoringSum of durations / Total
Daily VolumeUsage trendsCount by day

Best Practices

Regular Monitoring

Check executions daily:

  • Look for unexpected failures
  • Monitor cost trends
  • Verify agents are active
  • Catch issues early

Investigating Anomalies

When you see unusual patterns:

  • Spike in failures → Check provider status, recent changes
  • High costs → Review specific executions
  • No activity → Verify subscriptions active

Using Filters Effectively

  • Start broad, then narrow down
  • Save common filter combinations (browser bookmarks)
  • Use date ranges for trend analysis

Long-Running Executions

For agents with long-running tasks enabled, executions behave differently:

Multi-Session Workflows

A single email might trigger an execution that spans multiple sessions:

  • Session 1: Initial processing, agent pauses to wait for more information
  • Session 2: Resumption 24 hours later, continues work
  • Session 3: Final completion

Each session appears as part of the same execution, with:

  • Session Count: Shows which session number this is
  • Total Duration: Cumulative time across all sessions
  • Checkpoint Info: Last saved state for recovery

Tracking Progress

For paused or scheduled executions:

  1. Look for "Paused" or "Scheduled" status
  2. Check the execution details for:
    • Agent's notes about what it was doing
    • When it will resume
    • Number of sessions so far
  3. View related Scheduled Reminders for resumption timing

Understanding Costs

Long-running executions accumulate costs across sessions:

  • Each session adds to the token count
  • Total cost reflects all sessions combined
  • Cost per session visible in execution details

Auto-Resume

When an agent execution encounters a transient infrastructure failure, the system can automatically queue a retry instead of marking the execution as failed. This prevents lost work when temporary issues like LLM provider credit balance exhaustion or rate limiting occur.

How It Works

  1. The agent detects a transient, resumable error during execution
  2. A checkpoint is saved with a summary of work completed so far
  3. The execution is queued for automatic retry with a backoff delay
  4. A purple timer icon appears in the execution list showing resume status

Resume Status Indicator

The purple timer icon in the execution list shows:

  • Attempt number - Which retry attempt this is (e.g., 2/5)
  • Max attempts - The maximum number of retries before the system gives up
  • Error class - The type of transient error (e.g., balance_exhausted, rate_limit)

Hover over the icon to see the full status detail.

Retry Schedule

The system uses a fixed backoff schedule for retries:

AttemptDelay
15 minutes
215 minutes
31 hour
44 hours
524 hours

After 5 failed attempts, the execution is marked as abandoned and no further retries are attempted.

Resume States

StateMeaning
PendingRetry is queued and waiting for the next attempt
ResumedThe execution has been retried and is currently running
CompletedThe retry succeeded and the execution finished
AbandonedAll retry attempts were exhausted without success

What Gets Preserved

When an execution resumes after a transient failure:

  • Previously completed read-only operations (searches, lookups) are re-executed safely
  • Email duplicate-send guards are restored to prevent sending the same email twice
  • The agent receives a summary of prior progress so it can continue where it left off

When to Investigate

  • Repeated resume attempts for the same execution - The underlying issue may not be transient. Check your LLM provider account balance or service status.
  • Abandoned executions - All retry attempts failed. Review the error class and original error in the Execution Details to determine if manual intervention is needed.