---
title: Single-View AI Investigation
description: >-
  Run an agentic investigation on a single RUM view to surface root causes of
  poor user experience.
breadcrumbs: Docs > RUM & Session Replay > AI Investigations > Single-View AI Investigation
---

# Single-View AI Investigation

## Overview{% #overview %}

Single-View AI Investigation runs an agentic root-cause analysis on a single RUM view. When you find a session with poor performance, such as a page or screen that loaded slowly or threw errors, click **Investigate with AI**. Datadog's RUM agent inspects all the data attached to that view: errors, slow network requests, main-thread blocking, backend traces, CPU profiles, and device context.

Instead of manually combing through RUM events to figure out whether the cause was a slow API call, a heavy client-side computation, or a CDN issue, you get a ranked list of findings grouped by root-cause category: App Performance, Server Side, Third Party, and Environment. From there, you can follow up through a chat interface or save the results to a [Notebook](https://docs.datadoghq.com/notebooks.md) to share with your team.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/single-view-ai-investigation-overview.3aa0bda607e8dc9203d4c521123dcfc9.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/single-view-ai-investigation-overview.3aa0bda607e8dc9203d4c521123dcfc9.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Single-View AI Investigation panel showing categorized findings for a RUM view." /%}

## Data analyzed{% #data-analyzed %}

To investigate a view, Datadog's RUM agent inspects the data Datadog has collected for that view and accesses correlated telemetry when it's available:

- **The view event** and its sub-events: [resources](https://docs.datadoghq.com/real_user_monitoring/application_monitoring/browser/monitoring_resource_performance.md), [long tasks](https://docs.datadoghq.com/real_user_monitoring/application_monitoring/browser/data_collected.md#long-task-timing-attributes), [errors](https://docs.datadoghq.com/real_user_monitoring/error_tracking.md), and [user actions](https://docs.datadoghq.com/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md).
- **Aggregated performance signals** across the view, including auto-detected problems such as uncompressed resources, excessive script evaluation, and bandwidth inefficiencies.
- **Device and environment context** captured by the SDK (browser or operating system, geography, connection type, and other [RUM attributes](https://docs.datadoghq.com/real_user_monitoring/explorer/search.md)).
- **APM traces**, when the view's resources are correlated with backend traces. The agent uses the trace data to attribute server-side delays to specific spans and services. For more information, see [Correlate RUM with APM Traces](https://docs.datadoghq.com/real_user_monitoring/correlate_with_other_telemetry/apm.md).
- **Profiling data**, when [RUM profiling correlation](https://docs.datadoghq.com/real_user_monitoring/correlate_with_other_telemetry/profiling.md) is enabled for the application. The agent uses CPU profiles to attribute App Performance findings to specific functions in your code.

The richer the data available for the view, the more precise the analysis. Correlating RUM with APM and enabling profiling helps the agent investigate beyond the client-side timeline.

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

1. Open a RUM view side panel.

1. Click the **Investigate with AI** button.

**Note**: The button can take up to 15 minutes to become available after a view ends.

The investigation runs and streams results into the side panel as they become available, so you can start reading the first findings before the analysis is complete.

## Sources of root causes{% #sources-of-root-causes %}

Datadog's RUM agent looks at four sources to identify the root causes of poor performance on a view:

| Source          | What is examined                                                                          |
| --------------- | ----------------------------------------------------------------------------------------- |
| App Performance | Client-side issues, such as main-thread contention, code execution, and rendering delays. |
| Server Side     | Backend latency and server-side errors that affected the view.                            |
| Third Party     | Performance impact from third-party scripts and libraries loaded by the application.      |
| Environment     | Network and infrastructure conditions that affected the user's experience.                |

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

Each finding is shown as a card with a title, a description of the issue, a severity level, and links to the affected events. Multiple findings appear ranked by impact so you can focus on the highest-impact issues first.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/single-view-ai-investigation-results.67a50b771561a2f816f8fcdd522c51e7.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/single-view-ai-investigation-results.67a50b771561a2f816f8fcdd522c51e7.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Results panel showing ranked findings with severity, descriptions, and links to the affected events." /%}

A lightweight chat interface lets you follow up on the analysis: ask for more detail on a specific finding, request additional context, or explore related symptoms.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/single-view-ai-investigation-chat.11b78436c0c6bfcb05dfa1198c77587c.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/ai_investigations/single-view-ai-investigation-chat.11b78436c0c6bfcb05dfa1198c77587c.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A chat interface inviting the user to ask follow-up questions about the issues found in the view." /%}

Save investigations to a [Notebook](https://docs.datadoghq.com/notebooks.md) to share with your team for future reference.

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

- [AI Investigations overview](https://docs.datadoghq.com/real_user_monitoring/ai_investigations.md)
- [RUM Explorer](https://docs.datadoghq.com/real_user_monitoring/explorer.md)
- [View event side panel](https://docs.datadoghq.com/real_user_monitoring/explorer/events.md)
