---
title: Use Bits Chat in RUM
description: >-
  Ask Bits Chat why a specific view is slow, analyze RUM charts, and complete
  RUM tasks in plain language.
breadcrumbs: Docs > RUM & Session Replay > Bits in RUM > Use Bits Chat in RUM
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Use Bits Chat in RUM

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

[Bits Chat](https://docs.datadoghq.com/bits_ai/bits_chat.md) is available on every RUM page. Bits Chat uses the page you're on and what you're viewing as context, and can query your RUM data alongside your traces, logs, and profiles. Use it to:

- Find out why a specific view is slow
- Analyze a chart
- Ask questions and complete tasks

## Find out why a view is slow{% #find-out-why-a-view-is-slow %}

1. Open a view in the [RUM Explorer](https://docs.datadoghq.com/real_user_monitoring/explorer.md) or in [Session Replay](https://docs.datadoghq.com/session_replay.md).
1. In the performance section of the view side panel, click **Ask Bits**.

Bits Chat opens and investigates that specific page load. It reconstructs the view's load timeline from its [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), and examines four sources of root causes:

| Source          | What Bits examines                                                                                                                                                                   |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| App Performance | Client-side issues, such as main-thread contention, code execution, and rendering delays.                                                                                            |
| Third Party     | The impact of third-party scripts and libraries loaded by the application.                                                                                                           |
| Server Side     | Backend latency and server-side errors that affected the view, using [correlated APM traces](https://docs.datadoghq.com/real_user_monitoring/correlate_with_other_telemetry/apm.md). |
| Environment     | The user's device and network conditions.                                                                                                                                            |

Bits returns ranked findings with links to the underlying events. You can then ask follow-up questions, such as `Is this happening to other users on this page?` or `Which backend endpoint is the slowest here?`

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/bits_ai/ask-bits-view.d9189201ab4647038c78b055b85b8550.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/bits_ai/ask-bits-view.d9189201ab4647038c78b055b85b8550.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The view side panel with Bits Chat open after clicking Ask Bits, showing ranked findings for a slow page load." /%}

## Analyze a chart{% #analyze-a-chart %}

On the RUM summary page, click **Analyze with Bits AI** on a vital chart or on the error rate chart. Bits Chat summarizes how the metric is trending and what is driving it.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/bits_ai/analyze-with-bits-chart.2ee679a13700cc44064d7e8e147ed514.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/bits_ai/analyze-with-bits-chart.2ee679a13700cc44064d7e8e147ed514.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A RUM loading time chart open in inspect mode, with Bits Chat summarizing how the metric trended over the past month." /%}

## Ask questions and complete tasks{% #ask-questions-and-complete-tasks %}

You can ask Bits Chat about your frontend in plain language from any RUM page, and ask it to complete RUM tasks for you. For example:

- `Which pages in this application have the worst INP right now, and which interactions cause it?`
- `Find sessions with 5xx errors on the checkout page in the last hour, grouped by error type.` On the RUM Explorer, Bits applies the query for you.
- `Which functions are slowing down my LCP?` Ask this on the RUM Profiling page.
- `Create a retention filter that keeps 25% of sessions with errors.`
- `Create an operation that tracks checkout from the cart page to the order confirmation page.`

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

Additional helpful documentation, links, and articles:

- [Bits in RUM](https://docs.datadoghq.com/real_user_monitoring/bits_ai.md)
- [Bits Chat](https://docs.datadoghq.com/bits_ai/bits_chat.md)
- [View event side panel](https://docs.datadoghq.com/real_user_monitoring/explorer/events.md)
