---
title: Operation AI Investigation
description: >-
  Run an agentic investigation on a single operation to find root causes for
  failures or latency regressions.
breadcrumbs: Docs > RUM & Session Replay > AI Investigations > Operation AI Investigation
---

# Operation AI Investigation

{% callout %}
##### Join the Preview!

Operation AI Investigation is in Preview.

[Request Access](https://www.datadoghq.com/product-preview/rum-investigation-operations/)
{% /callout %}

## Overview{% #overview %}

Operation AI Investigation runs an agentic root-cause analysis on a single operation in [Operations Monitoring](https://docs.datadoghq.com/real_user_monitoring/operations_monitoring.md). The agent analyzes both the success rate and the latency of the operation. It surfaces focused investigations for each failure mode (errors, timeouts, abandonment), for latency regressions, and for sustained high latency, so you can see at a glance why the operation is degraded.

## Prerequisites{% #prerequisites %}

- [RUM without Limits](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits.md) must be enabled in your organization.

## Launch an investigation{% #launch-an-investigation %}

1. Open the Operations page for your application from [Operations Monitoring](https://docs.datadoghq.com/real_user_monitoring/operations_monitoring.md).
1. Select an operation.
1. The Operations page surfaces two elements:
   - A **summary** at the top with a plain-language overview of the operation's health across success rate and latency.
   - A ranked list of **recommendation cards** — one per failure mode (errors, timeouts, abandonment), one for latency regression, and one for sustained high latency. Each card is tagged with a priority badge (P0, P1, or P2) reflecting relative severity.
1. Click Investigate on a card to open a detailed analysis.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/operation-ai-investigation-recommendations.f5180e12529a8e14d50821de996258f7.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/operation-ai-investigation-recommendations.f5180e12529a8e14d50821de996258f7.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Operations page for an Add to Cart operation, showing execution volume, success rate, and completion time charts, with a plain-language health summary and ranked recommendation cards tagged with P1 and P2 priority badges." /%}

## What the agent investigates{% #what-the-agent-investigates %}

The agent looks at several modes of failure or degradation for the operation:

- Errors: Operations that ended with an error.
- Timeouts: Operations that did not complete within their expected duration.
- Abandoned: Operations that the user gave up on.
- Performance regression: Operations whose latency degraded compared to the historical baseline.
- Latency: Operations that are consistently slow, independent of a recent regression.

For each card, the findings are grouped into three root-cause categories:

| Source   | What is examined                                                                  |
| -------- | --------------------------------------------------------------------------------- |
| Frontend | Client-side failures: JavaScript errors, broken event handlers, blocking scripts. |
| Backend  | Server-side failures: backend errors, slow responses, downstream service issues.  |
| Network  | Connectivity issues: CDN problems, slow connections, regional infrastructure.     |

When applicable, the agent surfaces frontend and backend error groups together with the affected endpoints and code locations.

## Read the results{% #read-the-results %}

When you launch an investigation, a side panel streams the analysis as it runs. Once complete, the panel shows the inferred root cause and a ranked list of findings.

### Root cause{% #root-cause %}

The agent categorizes the root cause as Frontend, Backend, or Network, with a confidence level of High, Medium, or Low.

### Ranked findings{% #ranked-findings %}

Each finding includes:

- Summary: A description of the failure or degradation pattern.
- Code locations: File path, line number, and surrounding snippet when source maps are available.
- Correlated APM endpoints: Each with a View trace link that opens the matching trace in APM.
- Error groups: Affected session count, whether the error first appeared in a recent application version, and a View Sample Session link that opens the session in the RUM Explorer.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/operation-ai-investigation-finding.fc4c1464a60740024f92a1454fe8f8ec.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/operation-ai-investigation-finding.fc4c1464a60740024f92a1454fe8f8ec.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="An Operation AI Investigation side panel showing the investigation summary with confidence and category badges, a ranked Findings section with a frontend code-level finding, and the affected source code snippet." /%}

## Take action{% #take-action %}

After an investigation completes, you can act on findings without leaving the panel:

- Fix with Bits: Opens the Bits AI dev assistant with the investigation context pre-filled to generate a code fix from your IDE.
- Copy Investigation Prompt: Copies the agent's prompt to your clipboard so you can rerun, refine, or share it.
- View trace on a correlated endpoint: Opens the matching trace in APM.
- View Sample Session on an error group: Opens the session in the RUM Explorer.

## Further reading{% #further-reading %}

- [AI Investigations](https://docs.datadoghq.com/real_user_monitoring/ai_investigations.md)
- [Operations Monitoring](https://docs.datadoghq.com/real_user_monitoring/operations_monitoring.md)
- [Single-View AI Investigation](https://docs.datadoghq.com/real_user_monitoring/ai_investigations/single_view_ai_investigation.md)
