> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/integrateandcode/app-integrations/slack.md).

# Slack

### Baixe o aplicativo Chatlayer Bot no Slack

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

1. Abra **Slack** e navegue até o workspace ao qual você deseja adicionar o bot
2. Clique em **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. Pesquise por **Chatlayer Bot** na barra de pesquisa.\
   Se você não conseguir encontrar o app, pode instalá-lo clicando em [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 do bot Chatlayer</p></figcaption></figure>

4. Baixe o app do bot Chatlayer.
5. Localize o **bot Chatlayer** na sua lista de Apps após a conclusão do download.

<figure><img src="/files/4d0349d115ef39e47685c01e65980236d793983a" alt=""><figcaption><p>Bot Chatlayer listado nos seus Apps</p></figcaption></figure>

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

Para conectar o app do Slack ao Chatlayer, siga estas etapas:

1. Navegue até a **Bots** na página do 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 do Slack ou digite ‘Slack’ na barra de pesquisa.
3. Clique em **Ver app** e depois **Conta conectada**.

<figure><img src="/files/efd1bf00a1da729e286c8d71d53338d05fd960ce" alt=""><figcaption><p>Clique em 'Conta conectada' para conectar o Slack</p></figcaption></figure>

4. Clique em **Autorize.**

<figure><img src="/files/25f5ee3a3095a6357c7a94352775bf899cba88c4" 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 em **Conectar** para conectar a conta.

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

7. Ir para **Contas conectadas** para ver a conta conectada.

<figure><img src="/files/525fd079ec2ff13ce665ad3cfce61247144eabc8" alt=""><figcaption></figcaption></figure>

### Conecte um bot a um canal do Slack

Siga estas etapas para conectar um bot a um canal do Slack já 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 do Slack** e clique em **Próximo**.

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

4. Selecione a conta do Slack conectada ou conecte uma nova conta e, em seguida, clique em **Próximo**.

<figure><img src="/files/e4ab8a9924813212ad3c60215bcf1a243bd6a5ee" alt=""><figcaption><p>Selecionar conta do Slack</p></figcaption></figure>

{% hint style="info" %}
Antes de conectar o canal do Slack, certifique-se de que já criou um canal do 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 do Slack, copie e cole o **ID do canal do Slack** e insira o **nome do bot**. Depois de preencher ambos os campos, clique em **Concluir** para conectar o bot ao canal do Slack.

<figure><img src="/files/197cc04f0728d39a09d17250fd3dceecfedac972" alt=""><figcaption><p>Preencha o ID do canal do Slack e o nome do bot</p></figcaption></figure>

<figure><img src="/files/70750b18f1da0a43f409a92c1bf8a853fd823ba4" alt=""><figcaption><p>Um canal do Slack está conectado</p></figcaption></figure>

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

   <figure><img src="/files/2750a1448f877646a8e8a1bf74764b8c56283836" alt=""><figcaption><p>Exemplo de conversa do bot em um canal do Slack</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/integrateandcode/app-integrations/slack.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
