# 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="/files/4299b817e6951e2e262fc8e7392afe6cb4336370" 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="/files/12328ade5665a113f4a38b54a646f3fabf4a6450" 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="/files/4d0349d115ef39e47685c01e65980236d793983a" 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="/files/1dc3b91d5536f48030a6f3e60269f620017fc381" 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="/files/efd1bf00a1da729e286c8d71d53338d05fd960ce" alt=""><figcaption><p>Clique em 'Conta conectada' para conectar o Slack</p></figcaption></figure>

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

<figure><img src="/files/2c63b56c843eb3de77ee1e045032e465bd757222" alt=""><figcaption></figcaption></figure>

5. Uma nova aba será aberta, listando todas as permissões solicitadas. Clique em **Permitir**.

<figure><img src="/files/8950a74c3f8c249e530e03897e2ec5152f523a98" alt=""><figcaption></figcaption></figure>

6. Clique **Conectar** para conectar a conta.&#x20;

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

7. Ir para **Contas conectadas** para ver a conta conectada.&#x20;

<figure><img src="/files/525fd079ec2ff13ce665ad3cfce61247144eabc8" 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="/files/beb71286ee1d0898b54fa19fdfc1f230f4cb891c" alt=""><figcaption></figcaption></figure>

2. Na navegação principal, vá para **Canais** e clique em **Adicionar canal**.

<figure><img src="/files/4727d880f0d8316991bac046acca84c55d386927" alt=""><figcaption></figcaption></figure>

3. Selecione **App Slack** e clique em **Próximo**.

<figure><img src="/files/4af7f61924c37bccaa2bb867aad56ae6eea82e15" alt=""><figcaption></figcaption></figure>

4. Selecione a conta Slack conectada ou conecte uma nova conta, então clique **Próximo**.

<figure><img src="/files/e4ab8a9924813212ad3c60215bcf1a243bd6a5ee" 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="/files/197cc04f0728d39a09d17250fd3dceecfedac972" alt=""><figcaption><p>Preencha o ID do canal Slack e o nome do bot</p></figcaption></figure>

<figure><img src="/files/70750b18f1da0a43f409a92c1bf8a853fd823ba4" 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="/files/2750a1448f877646a8e8a1bf74764b8c56283836" alt=""><figcaption><p>Exemplo de conversa do bot no canal Slack</p></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.chatlayer.ai/chatlayer-documentation-pt-br/integrateandcode/app-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.
