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

# Visualize a saved result | Agent guide

> Inspect existing run output, export the intended dataset, and build a chart with traceable counts.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/sdk-v2/visualize-data.md)

Start with the saved run or result file from [Run Plays and view results](https://deepline.com/docs/sdk-v2/calling-plays.md).
Use that output to answer one question, such as accounts by segment or unresolved
rows by reason. Reading and exporting a saved run does not execute the Play again.

## Inspect the result in the app

Open [Plays](https://code.deepline.com/dashboard/plays) in the intended org,
find the execution in **Recent runs**, and inspect **Run results**. Open output
values or dataset cells to read the underlying records and compare inputs,
outputs, and errors.

The dashboard presents result tables and run activity. For a chart of arbitrary
result columns, have your agent create a chart or report from the saved output.

## Select the full dataset

Inspect the existing run to find its dataset paths and exact export commands:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline runs get <run-id> --json
```

Use the returned `actions.exportDatasetCmds` entry for the intended dataset.
The [Run guide](https://deepline.com/docs/sdk-v2/calling-plays.md#inspect-and-export-an-existing-run) covers
export. A scalar result may have no dataset; inspect its saved result instead.

`datasets[].preview.rows` is a sample. Use the exported population for counts,
including failed rows with blank outputs and attempt evidence. If export says
the saved dataset is not ready, retry that export as directed; do not rerun the
Play to recover rows.

## Ask for the chart and its numbers

Give your agent the exported file, source run ID and dataset, and the decision
the chart should support. Use the [visualization prompt](https://deepline.com/docs/human/sdk-v2/visualize-data.md)
as a starting point, then specify the output, for example:

```text theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
Create accounts-by-segment.svg and accounts-by-segment-summary.csv from the
saved CSV. Count every exported row, keep missing segment values in a separate
category, and label the chart with the source run and total row count. State
whether rows represent unique accounts or repeated observations. Preserve
failed and unresolved outcomes; do not infer acceptance from a populated field.
```

The deliverable is a rendered chart and a summary with the exact numbers used
to draw it. For a share or percentage, state the denominator: all source rows,
matched identities, accepted records, or another explicit population. Retain
any filters and exclusions so the total can be reproduced.

> [!TIP]
>
> * Confirm source IDs and row grain before grouping; deduplicating accounts can
>   change both the numerator and denominator.
> * Missing categories need their own count. Missing numeric values remain
>   unknown rather than becoming zeros.
> * Check export scope: dataset views can span runs, and **Download runs CSV**
>   exports run records rather than a single run's dataset rows.
> * A completed run does not mean every row passed the task's acceptance rule.
>   Keep provider errors, no-matches, and held records visible in the analysis.

Use [Use a CSV as Play input](https://deepline.com/docs/sdk-v2/batch-csv.md) for input identity and
[Run logs and events](https://deepline.com/docs/sdk-v2/run-events.md) to investigate failed execution.

## Verify this task

Open the generated chart and reconcile its summary with the exported row count.
Confirm the selected run, dataset, filters, denominator, missing-value counts,
and unresolved outcomes. A list of printed counts alone is not a visualization.

Next, review this run’s usage and set limits for future work in [Cost control](https://deepline.com/docs/cost-control.md).


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