# Slack

### Baixar o aplicativo Chatlayer Bot no Slack&#x20;

{% hint style="info" %}
Observe que você precisa ser administrador do workspace para instalar o aplicativo Chatlayer no seu workspace do Slack
{% endhint %}

1. Abra **Slack** e navegue até o workspace onde você deseja adicionar o bot
2. Clique **Adicionar apps** localizado no canto inferior esquerdo da interface do Slack.<br>

<figure><img src="https://181262846-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>Na navegação principal, clique em 'Adicionar apps'</p></figcaption></figure>

3. Procure por **Chatlayer Bot** na barra de pesquisa.\
   Se você não encontrar o aplicativo, pode instalá-lo clicando [aqui](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://181262846-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>Encontrar o app Chatlayer bot</p></figcaption></figure>

4. Baixe o aplicativo Chatlayer bot.
5. Localize o **Chatlayer bot** na sua lista de Apps após o download ser concluído.

<figure><img src="https://181262846-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 listado nos seus Apps</p></figcaption></figure>

### **Configurar o app Slack no Chatlayer**

Para conectar o app Slack ao Chatlayer, siga estes passos:

1. Navegue até a **Bots** página no Chatlayer e selecione **Integrações**.

<figure><img src="https://181262846-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>Página de integrações no Chatlayer</p></figcaption></figure>

2. Encontre o app Slack ou digite 'Slack' na barra de pesquisa.
3. Clique **Ver App** e então **Conta conectada**.

<figure><img src="https://181262846-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>Clique em 'Conta conectada' para conectar o Slack</p></figcaption></figure>

4. Clique **Autorizar.**&#x20;

<figure><img src="https://181262846-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. Uma nova aba será aberta, listando todas as permissões solicitadas. Clique em **Permitir**.

<figure><img src="https://181262846-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. Clique **Conectar** para conectar a conta.&#x20;

<figure><img src="https://181262846-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. Ir para **Contas conectadas** para ver a conta conectada.&#x20;

<figure><img src="https://181262846-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>

### Conectar um Bot a um Canal do Slack&#x20;

Siga estes passos para conectar um bot a um canal Slack conectado:

1. Na **'Bots'** página, crie um novo bot ou abra um bot existente.

<figure><img src="https://181262846-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. Na navegação principal, vá para **Canais** e clique em **Adicionar canal**.

<figure><img src="https://181262846-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. Selecione **App Slack** e clique em **Próximo**.

<figure><img src="https://181262846-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. Selecione a conta Slack conectada ou conecte uma nova conta, então clique **Próximo**.

<figure><img src="https://181262846-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>Selecionar conta Slack</p></figcaption></figure>

{% hint style="info" %}
Antes de conectar o canal Slack, certifique-se de já ter criado um canal Slack. Você pode seguir a documentação [aqui](https://slack.com/help/articles/201402297-Create-a-channel).
{% endhint %}

5. No campo de entrada do canal Slack, copie e cole o **ID do canal Slack** e insira o **nome do bot**. Após preencher ambos os campos, clique **Concluir** para conectar o bot com o canal Slack.

<figure><img src="https://181262846-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>Preencha o ID do canal Slack e o nome do bot</p></figcaption></figure>

<figure><img src="https://181262846-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>Um canal Slack está conectado</p></figcaption></figure>

6. Uma vez conectado, você pode começar a testar seu bot no seu canal Slack. Seu bot começará a responder a quaisquer perguntas provenientes do canal. \ <br>

   <figure><img src="https://181262846-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>Exemplo de conversa do bot no canal Slack</p></figcaption></figure>
