Overview
The Analyst Agent lets you explore your data through conversation. Ask a question in plain English, and it executes code against your data in a secure AWS Bedrock sandbox, performs statistical analysis, and delivers insights — often accompanied by interactive visualizations you can explore further.What You Can Ask
- “What are our top 10 customers by revenue this quarter?”
- “Find correlation between marketing spend and revenue growth”
- “Identify seasonal trends in sales data over the past 2 years”
- “Segment customers based on purchasing behavior”
- “Compare this month’s performance to last month”
- “Detect anomalies in transaction patterns”
How It Works
- BrightAgent delegates — The orchestrator identifies an analysis task and passes your question along with discovered data assets to the Analyst Agent.
- Reads your data — The agent accesses data files from your organization’s S3 storage, loading them into a secure analysis environment.
- Executes analysis — Runs Python code in an AWS Bedrock Code Interpreter — a fully isolated sandbox with no access beyond your data.
- Iterates until satisfied — The agent evaluates its own results and refines the analysis if needed, typically completing in 3–5 iterations.
- Generates visualizations — When a chart would help, it creates an interactive Vega-Lite visualization rendered directly in BrightAgent.
- Delivers insights — Returns a clear summary with key findings, supporting data, and any charts produced.
Capabilities
Secure Code Execution
All analysis runs in an AWS Bedrock sandbox — fully isolated, stateless, and time-limited. Your data never leaves the secure environment.
Statistical Analysis
Descriptive statistics, distributions, hypothesis testing, correlation analysis, and anomaly detection — all from natural language.
Trend Detection
Identifies patterns, seasonality, and changes over time. Compares periods, segments data, and highlights what’s changing.
Interactive Visualizations
Auto-generates Vega-Lite charts with tooltips, responsive layouts, and intelligent chart type selection based on your data.
Visualization Pipeline
When your question calls for a chart, the Analyst Agent coordinates with a two-phase visualization process: The agent automatically selects the best chart type based on your data:| Data Pattern | Chart Type |
|---|---|
| Categories + numbers | Bar chart |
| Time series | Line or area chart |
| Two numeric variables | Scatter plot |
| Part-of-whole | Arc / pie chart |
| Distributions | Histogram or box plot |
| Correlation matrices | Heatmap |
Data Access
The Analyst Agent works with data that’s already been discovered and prepared:- S3 files — Downloads data from your organization’s S3 storage using secure, scoped access
- Retrieval Agent output — Receives query results that the Retrieval Agent has already fetched from your warehouse
- Filesystem — Reads and writes files in a thread-scoped virtual filesystem backed by S3
Works With Other Agents
The Analyst Agent frequently collaborates with other agents:- Retrieval Agent finds the right data assets and executes SQL queries before analysis begins.
- Visualization Agent handles complex or standalone chart requests.
- Governance Agent ensures data access follows your organization’s policies.
The Analyst Agent is part of the BrightAgent architecture. See capabilities for the full list of what BrightAgent can do.

