# Slack

#### Pre-requisites

* A Slack Workspace with alteast one public channel
* BugBase Company Account with an Active Program

**Helpful Links**

{% content-ref url="/pages/9E9NQhwIg1plgHh2NFf5" %}
[Create a Company Account](/company-guide/create-a-company-account.md)
{% endcontent-ref %}

{% content-ref url="/pages/gt84QZChY5gJbxytLzR1" %}
[Programs at BugBase](/overview/programs-at-bugbase.md)
{% endcontent-ref %}

{% embed url="<https://slack.com/intl/en-in/help/articles/206845317-Create-a-Slack-workspace>" %}

### Setup

> Before starting the setup, ensure you are logged into your Slack Account and have alteast 1 public channel in your workspace.

1. Navigate to the integrations tab located in the settings page of your BugBase Program.&#x20;
2. Click on the `Setup` button on the Slack Integration Card.
3. A popup asking to connect to your Slack account will appear. Click on the `Connect` button to proceed with the connection.
4. Once clicked, you will be redirected to the Slack OAuth page when you would be requested access to your Slack account.
5. Choose a channel in which want to recieve notifications on.
6. Click on the `Allow` button to give access to BugBase to be able to connect to your Slack Workspace.
7. If everything went well, you will be redirected to BugBase settings page and the Slack integration will be enabled.

If you see the text `Join Channel` on the Slack Integration Card, then you are connected to the Slack Workspace.

**Up Next** is installing the bot in a specific channel.

***

### Installing the BugBase Integration for Slack in your channel and configurating it

> Before starting the configuration, ensure you have connected your Slack Workspace with your BugBase Account.

1. Navigate to the integrations tab located in the settings page of your BugBase Program.
2. Click on the `Join Channel` Button on the Slack Integration Card
3. A popup will appear with a dropdown to select the channel in which you want to integrate to.

*Below is an example...*

1. For this example, the channel selected is `#bugbase-reports`
2. Click on `Save` and the BugBase Bot for Slack will be added to your channel
3. If all went well, the Bot will be added to your channel.

*Now on all events a notification will be sent to your configured channel*

{% hint style="success" %}
:tada: You've successfully connected **Slack** with your **BugBase Program**
{% endhint %}


---

# 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.bugbase.ai/integrations/slack.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.
