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

# Messages tab

> Read a conversation the way your user saw it in BotGauge Logs, then open any reply to see each step your agent took, what it cost, and how long it took.

Open a session in Logs, read the chat, and open any reply to see the steps your AI agent took behind it. The Messages tab shows what each step cost and how long it took.

<video src="https://mintcdn.com/botguage/ieyhanX4ZD11axgg/videos/messages-tab.mp4?fit=max&auto=format&n=ieyhanX4ZD11axgg&q=85&s=c72ddf276e83e7ceba8f4d5f2bfddefa" controls />

## What the Messages tab shows

A conversation with an AI agent looks simple from the outside. The user asks something and the agent answers. Behind each answer the agent may have asked a model what to do, looked something up, charged a card, or retried a call that failed.

The Messages tab puts both views side by side. On the right you read the chat. On the left you see an outline of the work behind each reply. Use it when you want to know:

* What did the user ask, and what did the agent say back?
* How long did a reply take, and what did it cost?
* What did the agent do before it answered?
* What was a model or a tool given, and what did it return?

### Three words to know

| Word | Meaning |
| - | - |
| **Session** | A whole conversation with one user. |
| **Turn** | One message from the user and the agent's complete reply. A session holds one or more turns. |
| **Step** | One thing the agent did while working on a reply, such as calling a model or using a tool. |

The booking turn used through this page, with its steps in the order they ran:

```mermaid theme={null}
flowchart TD
  S["Session: ses_travel_booking (a whole conversation)"] --> T["Turn: the user says 'Book the 9:40 one.'"]
  T --> A["llm:chat claude-opus-5-5: decides to hold a fare"]
  A --> B["tool hold_fare: reserves the seat"]
  B --> C["tool charge_card: takes the payment"]
  C --> D["tool confirm_booking: completes the booking"]
  D --> E["llm:chat claude-opus-5-5: writes the confirmation"]
```

### What the icons mean

Every row in the outline has a small icon that tells you what kind of item it is. The colors match the other BotGauge views.

| Color | What it is |
| - | - |
| Red | The session, always the first row. |
| Blue | A turn, labeled `turn`. One user message and the agent's reply. |
| Teal | A call to a language model, labeled `llm:chat` followed by the model name. |
| Orange | A tool call or a lookup, labeled `tool` followed by the tool's name. |
| Pink | An agent, or a hand-off between agents. The sample project used in these screenshots has none. |

## Open the Messages tab

**1. Go to Logs**

In the left menu, under **Observability**, choose **Logs**. (1 in the screenshot)

**2. Pick a tab**

**Sessions** shows whole conversations, **Traces** shows single turns, and **Spans** shows single steps. (2)

**3. Click any row**

A panel opens on the right, and **Messages** is the tab it opens on. (3)

![The Logs page with numbered callouts on the Logs menu item, the Sessions, Traces, and Spans tabs, and a session row](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/observability/messages-logs-list.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=e5e1358e30d74cc59952fbd950004864)

The Logs page. Select a row to open it.

> [!NOTE]
>
> **If the list is empty.** Logs only lists activity from the time range in the button at the top right, which starts at **Last 24 hours**. Open the button and choose a longer range, such as **Last 30 days**, to see older conversations.

## The two halves of the tab

The Messages tab is split in two. The left half is an outline of the conversation. The right half shows whatever you have selected in the outline.

![Messages Two Halves](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/messages-two-halves.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=002072f3433e03f799c52a24258ecef8)

The Messages tab with the whole session selected.

1. **Messages tab.** Messages, Graph view, and Timeline are three ways to look at the same conversation. They sit side by side at the top of the panel.
2. **The outline.** The conversation as a list. The session is the first row, each turn is under it, and each turn can be opened to show its steps. Click the small arrow beside a turn to open or close it. The first turn starts open and the others start closed.
3. **The reading area.** It shows what is selected on the left. With the session selected, it shows the whole conversation as a chat.
4. **Session arrows.** They move to the next or previous row of the list you opened the panel from, such as "Session: 1 of 4".

## Read the conversation

When the session row is selected, the right half is the **Transcript**. It is the whole conversation as a chat, with the user on one side and the agent on the other.

![Messages Transcript](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/messages-transcript.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=fb37b50cad9a30b639d8a59e3480c52f)

The Transcript for the booking session.

1. **Session name.** The name of the whole conversation.
2. **Capture label.** How much of the conversation BotGauge recorded. **Complete** means all of it. See [Is everything there?](#is-everything-there) for the other labels.
3. **Latency and cost.** How long the conversation took and what it cost in total.
4. **Transcript tab.** The chat view. The **Evaluations** tab next to it, and the colored result labels beside that, show results from [evals](https://www.botgauge.com/docs/evals/overview.md) and are not covered on this page.
5. **The user's message.** User messages sit on the right with a white background.
6. **The agent's reply.** Agent replies sit on the left with a tinted background.

Click any message to open its turn. The turn is highlighted in the outline, and the right half switches from the chat to that turn's details. Click the session row at the top of the outline to come back to the chat.

A very long message shows its first part with a **Show more** link under it. If the conversation includes other kinds of messages, such as system instructions, they appear on the left with their role written above them.

## Follow the work behind a reply

Each turn in the outline is one reply. Click the arrow beside a turn to open it. Underneath you see the steps the agent took, from top to bottom in the order they ran.

![The outline with the first turn open and numbered callouts on the session, a turn, a model call, a tool call, the token numbers, and the arrow](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/observability/messages-outline-turn-open.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=fe6f77dc6d607f9ac1f52858511ca393)

The outline with a turn open.

1. **Session.** The whole conversation, with its total time and total cost on the second line.
2. **Turn.** One user message and the agent's reply. The selected turn is highlighted.
3. **Model call.** Teal. The name includes the model that was called.
4. **Tool call.** Orange. It shows only how long the tool took.
5. **The numbers on a model call.** They show how much text went in and out, and what the call cost. The next section explains how to read them.
6. **Arrow.** Opens or closes a turn. A turn that is closed still shows its totals.

### How to read the numbers

Models read and write text in small pieces called tokens. A token is roughly three quarters of an average English word. The text a model reads is counted as input tokens, and the text it writes back is counted as output tokens. A model call is priced by the tokens it reads and writes, so the numbers on the second line of a model call show how big the call was.

For example, `231 → 74 (Σ 305) $0.002404` reads as follows.

| Part | Meaning |
| - | - |
| `231` | **Input tokens.** The text the model was given to read: the instructions, the conversation so far, and the user's message. |
| `→ 74` | **Output tokens.** The text the model wrote back, such as its reply or a request to run a tool. |
| `(Σ 305)` | **Total tokens.** Input plus output: 231 + 74 = 305. The sigma sign means "sum". |
| `$0.002404` | **Cost.** What this one call cost, worked out from its tokens. |

A turn shows the totals for all of its model calls. In the booking turn, the two model calls have 231 and 574 input tokens, and the turn shows 805. Its output tokens add up the same way: 74 + 59 = 133. A tool shows only its time, because it is not a model call.

## Look inside a step

Click any row in the outline. The right half shows what that item received and what it returned. The three kinds of rows you will click most are shown below.

### A turn

For a turn, the input is the user's message and the output is the agent's reply.

![Messages Turn Details](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/messages-turn-details.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=314f769899573e84798bbf4e45526c26)

A turn selected in the outline.

1. **Selected row.** Highlighted in the outline.
2. **Time and cost.** How long this turn took and what it cost. The cost covers all of the turn's steps.
3. **Input.** What came in. For a turn, the user's message.
4. **Output.** What went out. For a turn, the agent's reply.
5. **Formatted or Raw.** Formatted lays the content out for reading. Raw shows it as it was stored.
6. **Attributes.** The item's ID, name, type, created and updated times, project, trace and parent IDs, status code, and tags.

### A model call

A teal row is a call to a language model. Its details show the conversation the model was handed and what the model answered.

![A selected model call with numbered callouts on the selected row, time and cost, the system instructions, the conversation so far, and the output](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/observability/messages-model-call.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=928fa0dea1bb8bb6ac07e715e1a3fb98)

A model call selected in the outline.

1. **Selected row.** The model call you clicked.
2. **Time and cost.** How long this one call took and what it cost.
3. **System.** The standing instructions the agent gives the model.
4. **The conversation so far.** The user and assistant messages the model saw.
5. **Output.** What the model replied. Here it asked to run `search_flights` twice. The two orange `tool search_flights` rows below it are the calls that carried that out.

### A tool call

An orange row is a tool the agent used. Tools and lookups call their two boxes **Query** and **Response**. Every other kind of row uses **Input** and **Output**.

![Messages Tool Call](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/messages-tool-call.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=a0724baff381106d993412f2a9300228)

A tool call selected in the outline.

1. **Selected row.** The tool call you clicked.
2. **A dash.** No cost is recorded for this step.
3. **Query.** What the tool was asked. Here, a search for flights from London to Lisbon next Friday.
4. **Response.** What the tool sent back. Here, the two flights it found.

If a value is very large, BotGauge cuts it and says so in a line above it, for example "Truncated: showing the first 8 KB and last 8 KB". The start and end are kept so you can still tell what the value was.

## Find a step

A long session can have dozens of steps. Type part of a step's name in the **Find in trace** box at the top of the outline. Press **⌘F** on a Mac, or **Ctrl+F** on Windows, to jump straight to the box.

![The outline filtered by a search for hold\_fare, with callouts on the search box, the match count, and the highlighted match](https://mintcdn.com/botguage/ieyhanX4ZD11axgg/images/observability/messages-find-step.jpg?fit=max\&auto=format\&n=ieyhanX4ZD11axgg\&q=85\&s=b697843c3d7493ce9f3ef726cf46fefc)

Searching the outline for hold\_fare.

1. **Find in trace.** Type part of a name. It does not matter whether you use capitals.
2. **Match count.** "1 match", "3 matches", or "No matches".
3. **The match.** The matching part of the name is highlighted, the other rows fade, and any turn that contains a match opens by itself. Click the row to see its details.

The box searches the names in the outline, such as `tool hold_fare`. It does not search the text of the messages. Press **Esc**, or the cross in the box, to clear it.

## Is everything there?

Next to the session name, a small label says how much of the conversation BotGauge recorded. Every session in the sample project shows **Complete**. The other four labels appear when they apply to your own sessions.

| Label | What it tells you |
| - | - |
| **Complete** | Every turn has both the user's message and the agent's reply. |
| **Fitted: some earlier messages omitted** | The agent sent a shortened history for some turns. Its start, the current question, and the newest messages were kept, and the middle was left out. Hover over the label for the number of turns. The chat shows a dotted line saying how many earlier messages were omitted. |
| **Partial** | At least one turn is missing its message or its reply. |
| **Redacted** | The message text was replaced by a redaction marker before it was stored, in every turn, so nothing readable can be shown. See [Capture and redaction](https://www.botgauge.com/docs/tracing/capture-and-redaction.md). |
| **Not captured** | No message content was recorded. |

### Where the messages come from

The chat is built from the content your app recorded on each turn. If a turn has none, BotGauge reads the message attributes on its steps instead. When it still has no conversation messages, the Transcript shows each turn's own input and output. The outline, times, and costs come from the steps your app reports.

## Which tab should I use?

Messages, Graph view, and Timeline show the same conversation in three ways. Pick the one that answers your question.

| | Messages | [Graph view](https://www.botgauge.com/docs/observability/trace-graph.md) | [Timeline](https://www.botgauge.com/docs/observability/timeline-tab.md) |
| - | - | - | - |
| **Best for** | Reading the conversation as the user saw it, then opening any reply | Seeing the shape of one reply: what called what, retries, and failures | Seeing the order of steps and where the time went |
| **Shows** | The chat, and an outline with tokens, time, and cost beside each row | One box per step, joined by lines, with status and time | One row per step with a bar on a time ruler. Switch between Duration, Tokens, and Cost. |
| **Order of steps** | Top to bottom, in the order they ran | Left to right, in the order they started | Top to bottom, in the order they ran |

Open the Messages tab in the consoleGo to [BotGauge](https://cloud.botgauge.com), open a session in Observability, Logs, and choose Messages.

[Try BotGauge →](https://cloud.botgauge.com)

## Common questions

> [accordion] Why does a tool show no cost?
>
> A dash means no cost is recorded for that step. In the sample project, only model calls carry a cost. A turn's cost covers all of its steps.

> [accordion] What do the colored labels next to the Transcript and Details tabs mean?
>
> They show results from BotGauge's evaluations. See the [Evals overview](https://www.botgauge.com/docs/evals/overview.md) and [Reading results](https://www.botgauge.com/docs/evals/reading-results.md).

> [accordion] Why is some text cut off?
>
> A long message in the chat shows its first part with a **Show more** link. A very large value in a step's details is cut by BotGauge, and a line above it says which part you are seeing. **Raw** shows the value as it was stored.

> [accordion] Why are only some turns open in the outline?
>
> The first turn is open when you load the tab and the others start closed. Click the arrow beside a turn to open it. Searching opens any turn that contains a match.

> [accordion] The tab says 'No turns in this session'. What now?
>
> BotGauge has no turns or steps to show for that session. The panel does not refresh by itself, so if you expect conversation data, close the panel and open the session again after a minute. If the message stays, no steps have been read for that session. Check that your app is sending spans for it. [What your app needs to send](https://www.botgauge.com/docs/observability/trace-graph.md#what-your-app-needs-to-send) explains what each step should carry, and [Tracing troubleshooting](https://www.botgauge.com/docs/tracing/troubleshooting.md) lists common fixes.

> [accordion] How do I see the same conversation as a diagram?
>
> Choose **Graph view** at the top of the panel. It draws the steps of one turn as boxes joined by lines. See [Trace Graph](https://www.botgauge.com/docs/observability/trace-graph.md).

The screenshots and the video use the BotGauge sample project, which holds a travel assistant, a shop support agent, an IT helpdesk, and a clinic assistant. The interface can change between releases.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.