# Slack

### Download Chatlayer Bot App on Slack&#x20;

{% hint style="info" %}
Note that you have to be a workspace admin to install the Chatlayer app in your Slack workspace
{% endhint %}

1. Open **Slack** and navigate to the workspace where you want to add the bot
2. Click **Add apps** located at the bottom left corner of the Slack interface.<br>

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FUzQTiK4fFKMGtaQohplL%2FAdd%20apps.png?alt=media&#x26;token=4c60c935-eb1f-4f67-8e90-86944c209ad8" alt=""><figcaption><p>From main navigation, click 'Add apps'</p></figcaption></figure>

3. Search for **Chatlayer Bot** in the search bar.\
   If you can't find the app, you can install it by clicking [here](https://slack.com/oauth/v2/authorize?client_id=2327687118.7214179557811\&scope=channels:history,channels:read,chat:write,files:read,files:write,groups:history,im:history,mpim:read,reactions:read,team:read,users:read\&user_scope=).

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FtF0xQwDcXSV16n0tucMd%2FScreenshot%202024-06-21%20at%2013.04.49.png?alt=media&#x26;token=363203da-6460-4185-b39b-783cdfc6a89c" alt=""><figcaption><p>Find Chatlayer bot app</p></figcaption></figure>

4. Download the Chatlayer bot app.
5. Locate the **Chatlayer bot** in your Apps list after the download is complete.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F6J7BU1H4aN9wmy2toy30%2FChatlayer%20bot%20apps.png?alt=media&#x26;token=bca480e7-d433-4cfd-9ce1-55bbc59512bd" alt=""><figcaption><p>Chatlayer bot listed on your Apps</p></figcaption></figure>

### **Configure Slack App on Chatlayer**

To connect Slack app to Chatlayer, follow these steps:

1. Navigate to the **Bots** page on Chatlayer and select **Integrations**.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FzJ91Q1cjpsJW4aE9rwlL%2FScreenshot%202024-06-21%20at%2014.53.44.png?alt=media&#x26;token=3067e545-bca1-4baa-952d-a29f8e5541a4" alt=""><figcaption><p>Integrations page on Chatlayer</p></figcaption></figure>

2. Find the Slack app or type ‘Slack’ in the search bar.
3. Click **View App** and then **Connected Account**.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2Fkd1dXHNHDpSLkdb4vMvH%2FConnect%20account.png?alt=media&#x26;token=5a40e2d6-ec65-4567-b49e-309e1db24ef7" alt=""><figcaption><p>Click 'Connected account' to connect Slack</p></figcaption></figure>

4. Click **Authorize.**&#x20;

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2Fcg4KsWLGeENZj3pnRlRE%2FScreenshot%202024-06-21%20at%2015.24.25.png?alt=media&#x26;token=e491c63e-efd5-4a0b-ba46-ef3975129b90" alt=""><figcaption></figcaption></figure>

5. A new tab will open, listing all the requested permissions. Click **Allow**.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F5gPH3Q2Rn7Di3A4xPQWF%2FScreenshot%202024-06-21%20at%2015.25.19.png?alt=media&#x26;token=770b10c9-a37d-4e6b-a2d6-aea61345c80d" alt=""><figcaption></figcaption></figure>

6. Click **Connect** to connect the account.&#x20;

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FtIZ6ggY39EG6HpfQZylp%2FScreenshot%202024-06-21%20at%2015.26.59.png?alt=media&#x26;token=904d2da7-ac4e-4f7a-8555-464aa2b26173" alt=""><figcaption></figcaption></figure>

7. Go to **Connected accounts** to see the connected account.&#x20;

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FwQRo1lWriKBcwasMhYNV%2FScreenshot%202024-06-21%20at%2015.27.55.png?alt=media&#x26;token=bdb65395-b34e-4dae-8d5a-2e3bc73840eb" alt=""><figcaption></figcaption></figure>

### Connect a Bot to a Slack Channel&#x20;

Follow these steps to connect a bot to a connected Slack channel:

1. On the **‘Bots’** page, create a new bot or open an existing bot.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FsjTVIxZdceyJMd4EeAI5%2FScreenshot%202024-06-21%20at%2015.31.00.png?alt=media&#x26;token=633b7589-c994-4a34-8791-ad03b906ab9d" alt=""><figcaption></figcaption></figure>

2. In the main navigation, go to **Channels** and click **Add channel**.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FyDSl9BV6pKk9dLcQmn5k%2FScreenshot%202024-06-21%20at%2015.54.21.png?alt=media&#x26;token=73acc485-4e5b-494b-b3b9-c8a4e5376450" alt=""><figcaption></figcaption></figure>

3. Select **Slack App** and click **Next**.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F4qJ2AKU2UXf2irmtxFG5%2FScreenshot%202024-06-21%20at%2015.55.22.png?alt=media&#x26;token=4ac19029-373d-46b5-af15-866e58ae4144" alt=""><figcaption></figcaption></figure>

4. Select the connected Slack account or connect a new account, then click **Next**.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FbZLgcsK53R0WxNsEmwM8%2FScreenshot%202024-06-21%20at%2015.56.09.png?alt=media&#x26;token=245494b2-bfa0-4ae9-86a4-c1dc381b252b" alt=""><figcaption><p>Select Slack account</p></figcaption></figure>

{% hint style="info" %}
Before connecting the Slack channel, make sure you have already created a Slack channel. You can follow the documentation [here](https://slack.com/help/articles/201402297-Create-a-channel).
{% endhint %}

5. In the Slack channel input field, copy and paste the **Slack channel ID** and enter the **bot name**. After filling in both fields, click **Finish** to connect the bot with the Slack channel.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FWUrLOFbjeEP1RvrPCZVt%2FScreenshot%202024-06-21%20at%2016.13.04.png?alt=media&#x26;token=02ebcf1d-c6a3-486a-b640-095ba8e45c33" alt=""><figcaption><p>Fill Slack channel ID and bot name</p></figcaption></figure>

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FI6ITVqIuPZYmuW42dLEU%2FScreenshot%202024-06-21%20at%2016.23.37.png?alt=media&#x26;token=8d9856af-3ec6-4a26-863f-6bd849938a7c" alt=""><figcaption><p>A slack channel is connected</p></figcaption></figure>

6. Once connected, you can start testing your bot in your Slack channel. You bot will start responding any questions coming from the channel. \ <br>

   <figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F6xlXtOLnKar7KxS70frR%2FCHL.png?alt=media&#x26;token=3204577d-9a0e-45db-8c8d-d9c075967261" alt=""><figcaption><p>Example bot conversation on Slack channel</p></figcaption></figure>
