# AI Slack Notifications

Get alerted to issues in real time with instant Slack notifications that include a full stack trace when a test fails. Quickly troubleshoot and rerun CI, without having to wait through time-consuming testing cycles. Effortlessly regain momentum by clicking "Suggest a Fix" to receive an AI-generated solution based on the advanced GPT model. Optimize your development workflow and reduce downtime with our cutting-edge capabilities.

## Install 📦 <a href="#install" id="install"></a>

To install the Redefine Integration for Slack, navigate to <https://redefinedev.slack.com/apps/A04QB70PD2B-redefinedev> and click on the "Open in Slack" button.

<figure><img src="/files/2tohm0tRXq1VU0wuX6Tg" alt=""><figcaption><p>Slack Installation Page</p></figcaption></figure>

## Enable Slack Configuration ⚙️&#x20;

To enable AI Slack Notifications, you also need to configure Redefine tool to send the messages from the CI. Run the following command before starting Redefine in your CI workflow:

```bash
redefine config set slack_bot_enabled=true
```

## Subscribe ✍🏽 <a href="#install" id="install"></a>

Upon successful installation in your workspace, a subscription prompt will appear. Enter your email address and press the 'enter' key. You will then receive a verification email. Follow the instructions in the email to complete the subscription process, and you will be subscribed to the Redefine integration for Slack.

<figure><img src="/files/dHe7F7LcJKGcuhF2bdqG" alt=""><figcaption><p>Subscription Prompt</p></figcaption></figure>

Developers who wish to subscribe can do so by executing one of the following commands:

1. `/redefine-subscribe` - Opens the subscription dialog.
2. `/redefine-invite` - This command sends a personal invitation to subscribe to each member in the channel. For private channels, make sure you've added Redefine's app to the channel first.

## Enjoy 🔔 <a href="#install" id="install"></a>

After subscribing, you will automatically receive notifications for any failures in your Redefine testing sessions as they occur within the Continuous Integration (CI) environment. Notifications include a stack trace, information about the commit, branch, and test, as well as the Redefine + OpenAI "Suggest a Fix" feature, which offers a potential solution to the specific failure.

<br>

<figure><img src="/files/sObEsnSPaZ90WPc1HOgP" alt=""><figcaption></figcaption></figure>


---

# 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.redefine.dev/integrations/ai-slack-notifications.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.
