﻿---
title: Analyze a case with AI
description: Send a case to an AI chat conversation to summarize it or use it as context.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7588/explore-analyze/cases/analyze-cases-with-ai
products:
  - Elastic Cloud Serverless
  - Elastic Observability
  - Elastic Security
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Planned
---

# Analyze a case with AI
Send a case to an Elastic Agent Builder chat conversation to summarize it or use it as context for follow-up questions.

## Before you begin

Make sure the following requirements are met:
- [Elastic Agent Builder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7588/explore-analyze/ai-features/elastic-agent-builder) must be available, with the Agent chat experience selected.
- At least an Enterprise subscription (Elastic Stack) or the appropriate [project feature tier](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7588/deploy-manage/deploy/elastic-cloud/project-settings) (Serverless).
- The `xpack.cases.chat.enabled` setting must be `true`. It's `false` by default.


## Send a case to a chat conversation

To analyze a case, open it from the **Cases** page and use one of the following actions in the case details header:
- **Add to chat**: Opens a new Elastic Agent Builder conversation with the current case attached as context. You send the first message when you're ready.
- **Summarize case**: Opens a conversation with the case attached and a pre-filled prompt that asks the agent to summarize the case and suggest next steps.


### What the agent receives

The attached context includes the following case details:
- Case ID
- Title
- Description
- Status
- Severity
- Tags
- Assignees
- Category
- Created and updated timestamps
- Alert, comment, attachment, and observable counts
- Connector name
- A link back to the case


### What you can do with a case in a chat

After a case is attached, you can ask the agent to act on it directly from the conversation. For example, you can:
- Add case comments. For example, after the agent summarizes a case, you can ask it to add that summary as a comment.
- Update case metadata, such as the status, severity, tags, category, title, and description.
- Change the assignees.
- Add attachments, such as alerts, events, or observables.


### Keep the case and chat in sync

If you keep the chat open, the case page updates in real time to show any changes the agent makes.