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

# Calls & Runs

> The lifecycle of a call and how runs capture its results

Every time a workflow executes, Tig.ai creates a **run**. The run is the record of that execution: what was said, what data was collected, how long it took, and what it cost.

## Calls vs runs

A **call** is the audio connection — whether over the phone via a telephony provider, or through the browser via Web Call.

A **run** is the Tig.ai record of the workflow execution. Every inbound phone or browser conversation creates a run containing its transcript, recording, gathered context, usage, and cost.

## Call lifecycle

The call lifecycle tracks the telephony connection — from the moment a number is dialed to when the line drops.

```mermaid theme={null}
stateDiagram-v2
    [*] --> Ringing: Number dialed
    Ringing --> Connected: Caller answers
    Ringing --> Ended: No answer
    Connected --> Ended: Conversation completes
    Connected --> Ended: Error or disconnect
    Ended --> [*]
```

For inbound calls, the flow starts when the caller dials in and the telephony provider routes the call to Tig.ai.

## Inbound calls

Inbound calls are initiated by the caller. Your telephony provider routes incoming calls to a Tig.ai agent via a webhook URL. Use them for support lines, hotlines, and IVR replacement.

## Web Calls

Web Call lets you talk to your agent directly from the browser — no phone number or telephony setup required. It runs the full pipeline: STT, LLM, TTS, recording, and transcript, exactly the same as a phone call.

Use it to try out your agent before going live. The run view shows the live transcript as the conversation progresses, node transitions as the workflow moves through the graph, and any tool or function calls the agent makes in real time.

## What a run contains

After a call completes, the run record includes:

| Field              | Description                                            |
| ------------------ | ------------------------------------------------------ |
| `status`           | Final run state                                        |
| `recording_url`    | Download URL for the call audio                        |
| `transcript_url`   | Download URL for the conversation transcript           |
| `gathered_context` | Structured data extracted by the agent during the call |
| `initial_context`  | The data available when the conversation starts        |
| `usage_info`       | Duration in seconds, token count                       |
| `cost_info`        | Cost in USD                                            |
