🎨 Transform Figma mockups into production-ready Dash apps. Join us November 10. Save your spot.

Plotly

Plotly

November 2, 2026

15 Ways to Use AI Agents for Data Analysis

TL;DR

  • AI agents can coordinate data access, preparation, exploration, statistical analysis, forecasting, visualization, reporting, and monitoring when they have the required tools and permissions.
  • Chat is an interface, while agentic behavior describes how independently a system can plan, use tools, evaluate results, and continue toward a goal.
  • The most useful applications include natural-language querying, dataset profiling, data-quality investigation, exploratory analysis, hypothesis generation, code execution, forecasting, anomaly investigation, and recurring monitoring.
  • Agents should expose their sources, queries, code, assumptions, transformations, and actions so people can evaluate how a result was produced.
  • Human judgment remains essential because an agent can execute the wrong analysis correctly or interpret reliable data without the business context needed to explain it.
  • Plotly Studio can perform agentic analysis and produce code-backed artifacts, while Dash turns Python logic into applications that decision-makers can explore and use.
  • Dash 4.3 introduced Dash MCP, allowing compatible external agents to interact with an application’s pages, layout, and callbacks under the controls implemented by the app and its deployment environment.
  • Dash Enterprise is the stronger choice when the application team wants to act as the primary platform administrators while IT runs the underlying infrastructure, because the platform is designed to fit directly into existing IT systems.
  • Start with one defined analytical job, a measurable output, and explicit review gates before increasing an agent’s access or authority.

Data teams are rarely short of questions. The constraint is moving from a question to a trustworthy result without losing the definitions, evidence, and review steps that make the result useful.

AI agents for data analysis can coordinate parts of that process. With access to approved data and tools, an agent can plan a sequence of work, generate and execute queries or code, inspect results, adjust its next step, and initiate permitted follow-up actions.

The important distinction is behavior, not interface. A chat window can be the interface for a one-off answer or for an agent that uses several tools over multiple steps. What makes the second workflow agentic is its ability to pursue a goal through planning, execution, evaluation, and iteration within defined limits.

That does not make every analytical job suitable for autonomous execution. An agent can run valid code against the wrong metric, select an inappropriate statistical method, or produce a convincing explanation from incomplete data. The useful question is not whether an agent can perform a task. It is what context, tools, evidence, and human approval the task requires.

This guide covers 15 practical uses across the analytical lifecycle and shows where Plotly fits. Plotly Studio provides an agentic, code-backed analysis environment. Dash turns Python analysis into an interactive application. Dash Enterprise is the stronger production path when that application must be deployed, secured, scaled, and governed inside an organization.

What makes a data-analysis workflow agentic?

AI systems exist on a spectrum. A single interface may support several points on that spectrum.

Behavior

What the system does

Typical human role

Prompt response

Answers one request from the context provided

Direct every step and verify the answer

Tool-assisted analysis

Calls an approved query, code, search, or visualization tool

Select or approve the task and inspect the evidence

Multi-step agentic analysis

Plans a sequence, uses several tools, evaluates intermediate results, and adapts its next step

Set the objective, constraints, and review points

Action-oriented workflow

Initiates an approved downstream action based on the analysis

Authorize consequential actions and retain accountability

The labels matter less than the controls. Before deployment, teams should be able to answer five questions:

  • What data and tools can the agent access?
  • Which business definitions and policies guide its analysis?
  • What evidence is returned with each conclusion?
  • Which actions can it take without approval?
  • Who is accountable when the result influences a decision?

AI agents for data analysis at a glance

Stage

Use case

What the agent coordinates

Essential human gate

Access

1. Query databases using natural language

Schema inspection, metric selection, query generation, execution, and follow-up questions

Validate definitions, access scope, and generated queries

Access

2. Retrieve and combine multiple sources

API or database calls, entity matching, and dataset assembly

Confirm authorization, identifiers, and source reliability

Preparation

3. Profile unfamiliar datasets

Types, distributions, missingness, cardinality, and candidate relationships

Interpret whether patterns are meaningful in the domain

Preparation

4. Find and resolve data-quality problems

Detection, proposed transformations, validation, and change logging

Approve destructive, imputative, or identity-merging changes

Preparation

5. Build and maintain transformations

SQL or Python generation, tests, dependency inspection, and failure diagnosis

Review code and promote changes through controlled deployment

Exploration

6. Perform exploratory analysis

Segment comparison, visualization, pattern detection, and iterative investigation

Separate observed concentration from causal explanation

Exploration

7. Generate hypotheses

Candidate explanations, required evidence, and test ordering

Judge commercial relevance and missing context

Analysis

8. Write and execute SQL or Python

Code generation, execution, debugging, and reproducible packaging

Review software correctness and analytical validity

Analysis

9. Select and run statistical tests

Method selection, assumption checks, estimation, and explanation

Confirm study design, uncertainty, and practical significance

Analysis

10. Produce forecasts and scenarios

Data preparation, model comparison, validation, and scenario calculation

Approve assumptions and interpret uncertainty

Monitoring

11. Detect anomalies and investigate causes

Baseline comparison, segmentation, related-metric checks, and evidence ranking

Validate whether an anomaly matters and whether a cause is established

Analysis

12. Analyze unstructured feedback

Classification, theme extraction, entity detection, and linkage to structured data

Review sensitive interpretations and trace summaries to source material

Delivery

13. Generate visualizations and interactive views

Chart selection, code generation, filters, drill-downs, and analytical controls

Review analytical honesty, accessibility, and decision relevance

Delivery

14. Generate audience-specific reports

Evidence selection, narrative adaptation, and supporting visuals

Verify that numbers and claims remain consistent across audiences

Action

15. Monitor metrics and initiate workflows

Scheduled checks, investigation, alert enrichment, and permitted follow-up actions

Approve actions affecting customers, finances, access, or production systems

1. Query databases using natural language

Natural-language querying lets a user state a business question without manually translating it into SQL. With the right connections, an agent can inspect the available schema, map business terminology to governed fields, generate a query, execute it, and present the result.

Suppose a revenue leader asks, “Why did enterprise renewal revenue decline last quarter?” A useful workflow may require the agent to identify the organization’s enterprise segment, retrieve renewal records, apply the approved definition of renewal revenue, compare periods, and break the change down by product, region, or customer cohort. It can retain that investigation context when the user asks whether the decline was concentrated among newer customers.

The value is not merely converting a sentence into query syntax. It is coordinating the steps needed to move from the initial question to a more specific investigation.

The agent still needs governed definitions and narrowly scoped access. Terms such as active customer, qualified pipeline, and renewal revenue cannot be inferred reliably from column names alone. Generated queries should be inspectable, and early implementations should generally use read-only credentials with limits on accessible schemas and query cost.

2. Retrieve and combine data from multiple sources

Many analytical questions cross system boundaries. Customer behavior may sit in a product database, account attributes in a CRM, invoices in a billing platform, and customer concerns in support tickets.

An agent can identify the required sources, call approved APIs or query interfaces, map related entities, and assemble the results for analysis. A churn investigation, for example, might combine account segment and contract data, product-usage events, billing status, support volume, and survey responses before comparing churned and retained customers.

This is orchestration, not a substitute for data engineering. Customer identifiers still need to align, APIs must be authorized, data freshness must be known, and each source must be reliable enough for the decision. If entity matching remains uncertain, the agent should expose the unresolved records rather than silently force a join.

3. Profile new or unfamiliar datasets

Before detailed analysis, teams need to understand what a dataset contains. An agent can review fields, infer likely types, calculate descriptive statistics, measure missingness and cardinality, inspect ranges, and surface candidate relationships.

For a manufacturing dataset with hundreds of sensors, the agent might identify sensors with unusual missingness, fields whose distributions shifted after a maintenance event, or variables that move together. It can then suggest targeted next steps, such as comparing readings before and after equipment failures or separating results by machine type and operating period.

Profiling produces leads rather than conclusions. A strong correlation may reflect a shared time trend, two sensors measuring the same physical process, or a collection error. The agent should label these outputs as observations and candidate patterns so domain specialists can decide what deserves deeper investigation.

4. Find and resolve data-quality problems

Agents can scan for missing values, duplicate records, inconsistent categories, invalid formats, broken keys, and unexpected outliers. They can propose a treatment, apply an approved transformation, validate the result, and produce a change log.

The response should depend on the field and the analytical objective. A suspected duplicate may require comparison of domains, billing addresses, and account owners. A missing value may need to remain null, trigger a source-system correction, or be excluded from a specific analysis. An outlier may be an error, fraud signal, or legitimate high-value observation.

Agents should not silently delete, merge, or impute data. Destructive changes, identity resolution, and statistical imputation need explicit policies and review. The transformation log should record the original value, proposed change, applied rule, reviewer, and affected downstream datasets.

5. Build and maintain data transformations and pipelines

An agent can translate a data requirement into SQL or Python transformations, draft validation tests, inspect dependencies, and help diagnose failed jobs.

Given the objective of combining daily product-usage events with account data and creating a weekly adoption table by customer segment, the agent can identify candidate fields, draft joins and aggregations, and add tests for types, row counts, uniqueness, accepted values, and missing keys.

If an upstream schema changes, the agent can inspect the error and propose a repair. It should not modify production logic without understanding downstream effects. Agent-authored changes belong in the same version-control, testing, review, and deployment workflow as human-written code.

6. Perform exploratory analysis and surface potential patterns

Exploratory data analysis is an iterative sequence, not a single calculation. An agent can summarize variables, compare segments, generate visualizations, notice concentrations, and use each result to decide what to examine next.

If e-commerce conversion declines, the agent might compare device, acquisition channel, geography, customer type, landing page, and checkout stage. When the decline appears concentrated among first-time mobile visitors from two paid channels, it can narrow the analysis to campaign targeting, page behavior, performance, and checkout progression for those sessions.

Finding where a pattern occurs is not the same as explaining why it occurred. A marketer may know that targeting changed, a product manager may know about a release, and an analyst may recognize a tracking problem. The agent should accelerate the search for the right question without presenting segment concentration as causal proof.

7. Generate hypotheses and recommend follow-up questions

Once an analysis reveals a pattern, an agent can propose several explanations, identify the evidence needed for each, and recommend an order of investigation.

If churn rises within one segment, candidate explanations might include lower onboarding completion, reduced adoption of a core feature, higher support-ticket volume, contract differences, longer resolution times, or a shift in acquisition source. The agent can determine which hypotheses are testable with current data and which require interviews, experiments, or additional collection.

This widens the hypothesis space and helps teams avoid stopping at the first plausible story. Domain experts must still determine which explanations are commercially meaningful, what relevant facts sit outside the data, and whether the proposed tests can distinguish among competing causes.

8. Write and execute SQL or Python analysis code

An agent can translate an analytical request into executable SQL or Python, select relevant packages, run the code in an approved environment, inspect errors, and refine the implementation.

For a request to compare customer lifetime value across acquisition channels while controlling for tenure, the agent could retrieve the required data, define the cohort rules, generate the analysis, execute it, and return both the method and result. Follow-up instructions could exclude customers in their first 30 days, separate paid and organic acquisition, add confidence intervals, or recalculate the result using contribution margin.

Returning the code is essential. Reviewers need to reproduce the result, inspect how variables were defined, and identify assumptions that affected the output. Successful execution proves that the code ran, not that the metric, model, or interpretation was correct.

9. Select and run statistical tests

Choosing a statistical test requires the question, variable types, sampling process, distribution, study design, and assumptions behind the method. An agent can evaluate those conditions, recommend a candidate test, execute it, estimate uncertainty, and explain the output.

For an experiment, it could identify the outcome and comparison groups, check sample sizes and distributions, test relevant assumptions, calculate an effect estimate and confidence interval, and state why it selected the method.

This is a high-review use case. An agent may overlook clustering, repeated measurements, sequential testing, selection effects, or the difference between statistical and practical significance. Consequential results should expose the method, assumptions, code, and calculations to an analyst or statistician before they influence a decision.

10. Produce forecasts and evaluate scenarios

Forecasting agents can prepare historical data, compare candidate models, test out-of-sample performance, generate intervals, and update forecasts as new observations arrive.

A planning workflow might compare demand under current conditions, a price change, a seasonal increase, and a supply constraint. The agent can show how the projection changes under each assumption, which inputs influence the result most, and how uncertainty expands over time.

A forecast remains conditional on its data and assumptions. It is not a fact about the future. Reviewers should verify the evaluation period, leakage controls, model-selection criterion, external assumptions, and whether the future is likely to resemble the training data. Scenario outputs should distinguish user-supplied assumptions from relationships estimated from evidence.

11. Detect anomalies and investigate possible causes

A conventional alert reports that a threshold was crossed. An agent can compare the observation with seasonality and historical variation, identify affected segments, check related metrics, review known operational events, and assemble evidence for possible explanations.

If application usage drops unexpectedly, it might examine logins, errors, latency, releases, device types, customer segments, and feature activity. The result gives the responding team a more useful starting point than a bare alert.

An anomaly is not automatically a problem, and an associated event is not automatically the cause. The agent should show the baseline, size of the deviation, affected population, and evidence behind each hypothesis. Root-cause language should remain provisional until an experiment, system trace, or domain review validates it.

12. Analyze customer feedback and other unstructured data

Survey responses, support tickets, reviews, transcripts, and internal documents contain evidence that structured tables often miss. An agent can classify text, extract entities and themes, compare topics across segments or periods, and link qualitative signals with behavioral data.

For example, it could group support tickets by product issue, show which themes are increasing, identify affected customer segments, and compare those themes with usage or churn. This is more useful than reducing every message to positive or negative sentiment because it preserves the topic, customer context, and supporting source material.

Language remains contextual. Sarcasm, cultural differences, industry terminology, and ambiguous phrasing can change the interpretation. Analysts should be able to trace every summarized finding to representative source excerpts, and sensitive classifications should receive human review.

13. Generate visualizations and interactive analytical views

Agents can select a visualization based on the question, generate the code, and refine the output through follow-up instructions. A churn analysis might begin with a trend line, then add cohort controls, annotations, drill-down views, and a table of the accounts behind each segment.

The more important shift is from chart generation to application generation. If users need to change assumptions, inspect individual records, run models, compare scenarios, or trigger a governed next step, the output is no longer just a visualization.

Dash provides the stronger foundation for this requirement because the analysis, interface, Plotly figures, tables, controls, and callbacks can remain in one Python codebase. Generated views still require review for scale, aggregation, accessibility, uncertainty, and relevance to the decision.

14. Generate reports for different audiences

One validated analysis may need different explanations for executives, analysts, operating teams, customers, or regulators. An agent can adapt emphasis, terminology, visual detail, and recommendations without changing the underlying calculations.

A customer-performance analysis might become a concise financial summary for the CFO, a regional breakdown for operating leaders, a technical appendix for the data team, and a customer-facing explanation with internal details removed.

The agent must distinguish observation, interpretation, and recommendation. Revenue fell by 8% is an observation. A pricing change caused the decline is an interpretation unless the analysis establishes a causal relationship. Reviewers should verify that each audience receives the same approved numbers and that simplification does not turn uncertainty into certainty.

15. Monitor metrics and initiate follow-up workflows

Agents can monitor metrics continuously or on a schedule, investigate changes, enrich alerts with context, and initiate approved next steps.

When forecast error exceeds an agreed range, an agent could check for delayed data, compare the error across products or regions, test whether recent conditions broke model assumptions, summarize the evidence, and create a review task for the responsible analyst.

This is where risk increases. Refreshing an internal analysis is different from changing a production model, reallocating budget, contacting a customer, or altering access. Actions affecting finances, customers, regulated data, or production systems should pass through explicit approval gates. The agent can prepare the evidence without receiving unrestricted authority to act.

Where human judgment remains mandatory

The 15 use cases share four constraints.

Statistical and analytical validity

An agent can execute code correctly while selecting the wrong method, using the wrong grain, leaking future information into a model, or reporting a statistically significant result with little practical value. Reviewers need visibility into the data, definitions, code, assumptions, and uncertainty.

Business and domain context

Not every relevant fact exists in the connected systems. A decline may coincide with a product release, policy change, market event, customer migration, or measurement issue the agent cannot observe. Domain experts remain responsible for deciding whether the explanation makes sense in the operating environment.

Data access and governance

Agents should receive only the data and tools required for the job. Queries, transformations, sources, model calls, and actions should be logged. As autonomy increases, authentication, secrets management, row-level permissions, evaluation, and action controls become architectural requirements rather than later additions.

The NIST AI Risk Management Framework provides a broader structure for identifying, evaluating, and managing AI risks. It does not replace task-specific controls, but it is a useful reference when an analytical agent will influence consequential decisions.

Accountability for consequential decisions

An agent can investigate evidence and prepare a recommendation. Accountability should remain with the people and teams authorized to make the decision. Approval cannot become a ceremonial click; reviewers need enough evidence and time to challenge the result.

Why Plotly is the stronger path from agentic analysis to production

Most agent demonstrations end with an answer, a notebook, or a generated chart. Those outputs are useful to the analyst who created them, but they may not give decision-makers a reliable way to inspect assumptions, change inputs, compare scenarios, or complete the next step in the workflow.

Plotly addresses the full route from analysis to application:

Plotly product

Role in the workflow

What it adds

Agentic analysis and app generation

Code-backed exploration, Python and SQL artifacts, visual analysis, and application generation

Analytical application framework

Python layouts, Plotly visualizations, controls, tables, callbacks, and custom business logic

Managed publishing

A self-service route for publishing Dash and Studio applications

Self-hosted enterprise platform

Authentication, access control, application lifecycle management, audit logs, Kubernetes scaling, job queues, and infrastructure control

This does not mean Plotly replaces the data platform, semantic layer, model provider, or agent framework. It means Plotly gives the analysis a production interface and deployment path without forcing the Python logic into a fixed dashboard workflow.

Build the application with coding agents

Plotly’s guidance for AI coding assistants covers Cursor, GitHub Copilot, Codex, Claude Code, and other tools. Coding agents can scaffold the layout, create callbacks, add pages, connect controls to analytical functions, diagnose errors, and prepare deployment files.

The Plotly Cloud MCP server gives compatible coding agents current Dash documentation. Generated code still needs review for architecture, statistical logic, data access, security, performance, and user experience. The advantage is that coding agents can remove the barrier without changing the resulting framework’s capabilities.

Let external agents interact with governed app logic

Dash MCP, introduced in Dash 4.3, allows a Dash application to act as an MCP server. When enabled, compatible clients can discover the app’s pages, layout, and callbacks and invoke approved application behavior.

MCP enablement is not a security boundary. By default, Dash exposes several application structures through MCP, and agents can discover available callback inputs. Teams must configure the MCP surface, secure the application, validate callback inputs, use appropriately scoped credentials, and enforce authorization in the underlying code and data systems.

Deploy inside the organization with Dash Enterprise

Dash Enterprise is the strongest choice when the finished analytical application must run inside organizational infrastructure and support governed access at scale. It is self-hosted on Kubernetes and provides identity-provider integration, role-based access, application promotion and lifecycle management, viewer analytics, audit logs, resource controls, job queues, and air-gapped or private-cloud deployment paths.

The Dash Enterprise CLI also gives developers and coding agents a programmatic path to deploy an application, inspect status and logs, restart it, and manage supported services. That connects AI-assisted development to a controlled production workflow without pretending that deployment automation removes operational accountability.

For a bounded internal prototype, a lighter hosting path may be sufficient. When the application contains proprietary models, regulated data, long-running workloads, several teams, or consequential user actions, Dash Enterprise offers the stronger operating model.

Start with an analytical job, not a mandate to use an agent

The strongest opportunities begin with a defined analytical job. They do not begin with an instruction to add an agent everywhere.

Look for work that is frequent, time-consuming, sufficiently structured, and easy to validate. Define the expected output, data sources, business rules, tool access, evidence requirements, and approval points. Then decide which steps the agent may perform and which must remain human decisions.

A sensible first use case may be profiling an incoming dataset, drafting a recurring report, investigating a data-quality failure, or enriching an anomaly alert. Expand authority only after the team has measured the agent’s reliability, failure modes, cost, and security behavior.

When the result must reach people beyond the data team, build the riskiest part of the user workflow in Dash. If the application needs controlled deployment, private infrastructure, organization-wide access, or long-term operational support, evaluate it on Dash Enterprise from the start rather than treating production as a later packaging exercise.

Explore live Dash applications or request a Dash Enterprise demo using an analytical workflow your team already understands well enough to verify.

Frequently asked questions

bluesly
x
instagram
youtube
medium
fcaebook

Product

© 2026
Plotly. All rights reserved.
Cookie Preferences
aicpa/soc2