---
title: "OpenAI integration for Grafana IRM | Grafana Cloud documentation"
description: "Configure OpenAI integration for Grafana IRM to generate AI-powered incident summaries"
---

# OpenAI integration for Grafana IRM

The OpenAI integration for Grafana IRM expedites your incident resolution process with AI-generated post-incident summaries. This integration makes summarizing complex incidents easy and efficient by automatically distilling the full incident timeline into the most important details, allowing you to fine-tune the result before finalizing.

Incident auto-summaries automatically include key details such as:

- Summary of the incident
- Timeline of events leading up to the incident
- Actions that were taken to resolve the incident

## Before you begin

> Note
> 
> A sanitized version of the incident timeline is sent to the OpenAI API to provide this service. Before configuring the OpenAI integration, be sure to align its usage with your organization’s internal policies.

To enable the OpenAI integration, you need:

- An [OpenAI account](https://platform.openai.com/)
- Your [organization ID](https://platform.openai.com/account/org-settings) from OpenAI
- An [OpenAI API key](https://platform.openai.com/account/api-keys)
- The Grafana Admin org role assigned

## Configure the OpenAI integration

1. Navigate to **IRM** &gt; **Integrations** in the Grafana menu
2. Select the **Apps** tab
3. Click the **OpenAI** tile
4. Review security statements and click **Install Integration**
5. Provide your OpenAI API key and organization ID
6. You can leave the OpenAI server base URL as the default – [https://api.openai.com/v1](https://api.openai.com/v1) – or choose another compatible LLM host
7. Click **Save**

Once you’ve successfully added your OpenAI credentials, incident auto-summaries are enabled and ready to use.

## Generate an incident auto-summary

With auto-summaries enabled, you can quickly create a summary while resolving an incident and ensure that important details are documented effectively.

To generate a summary while resolving an incident:

1. From the **Resolve Incident** window, review the incident details and update labels as needed
2. Click **Generate auto-summary** and wait while your summary is generated
3. Once the auto-summary is ready, review it to ensure it includes all the essential information
4. Click **Append to summary** to copy the generated text into the editable summary area
5. Make edits or add any specific details you wish to the generated summary
6. Click **Resolve with summary** to save the summary and resolve the incident

The summary is included in the incident timeline, making it easier for stakeholders and team members to review incidents quickly, see trends across incidents, and plan related future development or changes.

> Note
> 
> AI-generated summaries may occasionally produce inaccurate or incomplete information. Always review and verify the generated content before finalizing your incident summary.

## Data privacy and storage for Grafana OpenAI integrations

At Grafana Labs, we take your data privacy very seriously and have built-in processes in place to safeguard your data. Still, be sure to align its usage with your organization’s internal policies before configuring an OpenAI integration.

**Data sharing details:** When you click **Generate auto-summary**, Grafana Labs sanitizes and compresses the incident’s timeline before processing it with OpenAI, an external third party. OpenAI does not share this data with any third parties or use it for model training purposes.

**Data usage and storage:** As per OpenAI’s API [data usage policy](https://openai.com/policies/api-data-usage-policies), your data is only temporarily stored to monitor and prevent abuse or misuse.
