# Cortex AI Assistant in Slack overview

We're excited to announce a private beta for the Cortex AI Assistant, available through Slack. It puts all the data in Cortex at your fingertips, without having to leave where you work or having to find the data yourself in the UI. Ask natural language questions about your services, teams, Scorecards, Initiatives, and more without leaving Slack.

It can answer simple questions like, ***What services does my team own?*** or ***Who's on-call for payments-api?*** or ***What's the production readiness score for*** **`checkout-service`*****?***, but it can also do so much more.

Here are a few prompt examples for you to get started with:

* ***What are the patterns of incidents on my team over the last 2 quarters? What areas do you recommend we invest in to improve the reliability of our services?***
* ***Give me a summary of everything I worked on and my key accomplishments over the last quarter.***
* ***Has there been an increase in PR sizes recently? Does that correlate with longer review times?***
* ***What is our deployment frequency for the last 30 days across the services I own? Are there any patterns that may be causing that to change compared to the last quarter?***

See the [Cortex AI prompt library](https://docs.cortex.io/get-started/library) for a full list of prompt patterns organized by use case and role.

## How it works

{% hint style="info" %}
The Cortex AI Assistant requires the latest version of the Cortex Slack app. If you installed the app before February 2025, you'll need to update it before you can use the AI Assistant. Slack administrator permissions are required to perform the update.

To install, go to [Slack settings](https://app.getcortexapp.com/admin/integrations/slack) in Cortex. Delete the existing configuration and reinstall following the prompts.
{% endhint %}

When you mention `@Cortex` in a Slack channel or direct message, the AI Assistant:

1. Interprets your natural language query
2. Determines which Cortex API endpoints to call
3. Retrieves the relevant data from your Cortex workspace
4. Returns a formatted response in Slack

{% hint style="info" %}
The AI Assistant is currently read-only, so it can query information from Cortex but cannot make changes or write data.
{% endhint %}

### Threading and conversation context

The Cortex AI Assistant supports threaded conversations, allowing you to ask follow-up questions that build on prior context within the same thread. How it works:

* **Start a conversation** - Mention `@Cortex` in any private channel or directly to the `@cortex` app in the with your initial question. The bot responds in a thread.
* **Ask follow-ups in the thread** - Reply in the same thread with additional questions. The AI assistant retains context from the conversation, so you can drill down without repeating information.
* **Each thread is a separate conversation** - Context is scoped to the thread. Starting a new top-level message begins a fresh conversation with no prior context.

### Available capabilities

The Cortex AI Assistant can access the following Cortex API endpoints:

<table data-full-width="false"><thead><tr><th width="283.66015625">Capability</th><th>Description</th></tr></thead><tbody><tr><td><strong>Entity details</strong></td><td>Look up ownership, metadata, and custom data for any entity</td></tr><tr><td><strong>Entity descriptors</strong></td><td>View and list entity descriptors (YAML definitions)</td></tr><tr><td><strong>Dependencies</strong></td><td>List incoming and outgoing dependencies for an entity</td></tr><tr><td><strong>On-call</strong></td><td>Check who is currently on-call for an entity</td></tr><tr><td><strong>Scorecards</strong></td><td>List Scorecards, view scores, and get next-step recommendations</td></tr><tr><td><strong>Initiatives</strong></td><td>List and inspect Initiatives and their progress</td></tr><tr><td><strong>Relationships</strong></td><td>Explore entity relationships and relationship types</td></tr><tr><td><strong>Team details</strong></td><td>View team membership, sourcing, and contact channels</td></tr><tr><td><strong>Workspace context</strong></td><td>Query "my" entities and how they perform against Scorecards</td></tr><tr><td><strong>Eng Intelligence metrics / traces</strong></td><td>Query DORA metrics, incident trends, PR data, and other engineering performance indicators</td></tr><tr><td><strong>Deployments</strong></td><td>Search deployments across the workspace by environment, type, entity, and time range; list available deployment environments</td></tr></tbody></table>

### Providing feedback

After each response, the AI assistant displays reaction emoji options. You can react with `:thumbs_up:` (👍) or `:thumbs_down:` (👎) to provide feedback on the quality of the answer. This feedback helps improve the responses over time.

## Crafting effective prompts

Getting useful output from any AI assistant comes down to how you ask. Be sure to write prompts that are clear, specific, and designed to get you the response you need.

* **Be specific** - Instead of ***Tell me about services***, you could say, ***Show me all critical services failing the Production Readiness Scorecard***. This provides you with more actionable information.
* **Combine multiple questions when context helps** - Cortex handles complex prompts like ***Who owns orders-api, when was it last deployed, and are there any open incidents?*** You receive richer context in response to one question instead of piecing together three separate queries.
* **Reference your organization's specific constructs** - If you've defined custom Scorecards or Initiatives in Cortex, reference them by name. Cortex understands your organization's specific standards and can query against them directly.
* **Use follow-up questions to drill down** - Start broad, then go narrow. ***Show me services with failing Scorecards***, followed by ***What specific checks is checkout-service failing?*** moves you from landscape view to action items.
* **Build a library of your most-used prompts** - If you ask the same question every Monday morning, save it. Some teams maintain shared prompt libraries so everyone can benefit from patterns that work.

See the [Cortex AI prompt library](https://docs.cortex.io/get-started/library) for a full list of prompt patterns organized by use case and role.

## Configuring the Cortex AI Assistant

For instructions on configuring the AI Assistant, refer to [Configuring the integration for Slack (AI Assistant)](https://docs.cortex.io/ingesting-data-into-cortex/integrations/slack).

## Troubleshooting and FAQ

See [Slack integration FAQ and troubleshooting](https://docs.cortex.io/ingesting-data-into-cortex/integrations/slack/slack-integration-faq-and-troubleshooting).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cortex.io/get-started/cortex-ai-assistant-in-slack-private-beta.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
