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

# Data Analysis

> Plan a traceable data analysis workflow with an AI Agent and optional DeepAgents workspace.

# Data Analysis

A data analysis AI Agent can help structure questions, inspect data, draft analysis code, and explain results. DeepAgents can support multi-step work with tasks and workspace files. The analyst remains responsible for data quality, method selection, and interpretation.

## Define the Analysis

Before providing data, state:

* The decision or question the analysis should support
* The meaning, units, and time range of important fields
* Known quality issues and missing values
* Required filters, comparison groups, and assumptions
* The expected output format
* Privacy or access restrictions

Do not upload data that the selected model, provider, or environment is not approved to process.

## A Reviewable Workflow

<Steps>
  <Step title="Inspect">
    Identify the file structure, field meanings, row counts, date ranges, and obvious quality issues. Do not begin with conclusions.
  </Step>

  <Step title="Plan">
    Write the proposed transformations, calculations, and checks. Use DeepAgents tasks when the work benefits from visible stages.
  </Step>

  <Step title="Prepare">
    Handle missing values, duplicates, types, and exclusions. Preserve the original input and document each change.
  </Step>

  <Step title="Analyze">
    Perform the agreed calculations. Save reusable code or queries where the configured workspace supports files.
  </Step>

  <Step title="Validate">
    Reconcile totals, inspect samples, test edge cases, and compare important calculations with an independent method.
  </Step>

  <Step title="Communicate">
    Present findings with assumptions, limitations, and enough detail for another person to reproduce the work.
  </Step>
</Steps>

## Example Request

```text theme={null}
Analyze the attached sales data for January through June.

First, describe the schema and report missing or invalid values.
Then propose an analysis plan for revenue by month and region.
Do not modify the source file.
Save transformation steps and calculations separately.
For every finding, include the calculation and relevant filters.
Flag any conclusion that depends on incomplete data.
Wait for approval before adding a forecast.
```

## Using DeepAgents

DeepAgents is useful when an analysis needs a visible plan and several intermediate files. A workspace might contain:

```text theme={null}
tasks
  - inspect source data
  - document cleaning rules
  - calculate agreed metrics
  - validate totals
  - draft report

files
  - data-quality-notes.md
  - cleaning-script.py
  - metric-definitions.md
  - validation-results.md
  - report-draft.md
```

These names illustrate an organization pattern. Actual file types and execution capabilities depend on the configured environment.

## Validation Checklist

* Are the source, extraction time, and filters recorded?
* Are units, currencies, time zones, and date boundaries explicit?
* Can totals be reconciled with the source?
* Are missing values and exclusions reported?
* Are correlations presented without unsupported causal claims?
* Are forecasts separated from observed results?
* Can another analyst reproduce the transformations?
* Has a qualified person reviewed high-impact conclusions?

<Warning>
  Generated code and calculations can be wrong even when the explanation sounds confident. Review code before execution and verify important results independently.
</Warning>

## Related Guides

<CardGroup cols={2}>
  <Card title="DeepAgents Concepts" icon="robot" href="/concepts/deepagents/introduction">
    Understand tasks, workspace files, and review controls.
  </Card>

  <Card title="DeepAgents Workspace" icon="folder-tree" href="/essentials/deepagents-workspace">
    Learn how to use the workspace in B-Bot Hub.
  </Card>

  <Card title="Multimodal AI" icon="layer-group" href="/concepts/multimodal/introduction">
    Plan workflows that use files, images, and text.
  </Card>

  <Card title="Tasks" icon="calendar-check" href="/essentials/tasks">
    Review the product guide for scheduled work.
  </Card>
</CardGroup>
