> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morada.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack: install Morada OS in your company's Slack

> For whoever administers the organization: create the company's app in Slack, link it to Morada OS and check that it is working.

With Slack installed, your team talks to the Morada OS assistant without leaving Slack: in a direct message with the app, or by mentioning the app in a channel. Each person uses their own Morada OS account, with the same access and the same credits as in the chat, and nothing is done without the OK of whoever asked. See [what it looks like for the people who use it](https://docs.morada.ai/morada-os/en/channels/slack.md).

This page is for whoever **administers the organization** in Morada OS. It takes about 10 minutes, and you do it all on your own, with no one from Morada on a call.

> [!NOTE]
>
> **This is not the Slack connector.** The connector, in **Conectores** (Connectors), lets the assistant read and write in Slack as you, from inside Morada OS. This is the opposite direction: Morada OS becomes an app inside your company's Slack, and people talk to it there.

***

## Before you start

* **In Slack**, you need to be allowed to create apps in the company's workspace. If your Slack restricts that, ask whoever administers Slack.
* **An icon**, if you want one: a square PNG image, 512 to 2000 pixels.

The app belongs to your company: you create it in your Slack from a ready-made description that Morada OS generates (the **manifest**: the app's name, the permissions it asks for and the Morada OS addresses). That way it carries the company's name and icon and, being an internal app for Slack, it answers without the limits Slack applies to outside apps.

***

## Step by step

Click the button with your initials at the bottom of the sidebar, open **Configurações > Conta > Canais** (Settings > Account > Channels), choose **Slack** and open the **Administração** (Administration) tab. Only organization administrators see this tab.

![Canais in the Conta section of Settings, with Slack and Microsoft Teams cards showing each account connection status](https://mintcdn.com/moradaai-f7bfc739/b0_HB7b5DqRbiPA9/images/morada-os/canais/canais-conta-lista.png?fit=max\&auto=format\&n=b0_HB7b5DqRbiPA9\&q=85\&s=81de25b5da2513d4b8f5845290f362ee)

The **Administração** tab shows five steps in order when the channel has not been installed yet. Keep that page open in a tab: you come back to it between steps.

> [!TIP]
>
> The numbers in the images match the steps on this page.

**1. Name the app**

In **Nome do app no Slack** (App name in Slack), write how the app will appear in Slack, up to 35 characters. By default, it is the assistant's name in Morada OS.

If the organization has more than one workspace in Morada OS, also choose **Onde ficam as conversas do Slack** (Where Slack conversations live): the workspace that receives the conversations of anyone who has not picked another one in their own preferences.

Click **Salvar e continuar** (Save and continue).

![The Slack page at step 1, with the Nome do app no Slack field and the Salvar e continuar button marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/01-nome.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=9cb04fd1555a8645c650ecadc9ee5243)

**You see:** step 1 with a ✓ and the app's name and step 2 open, with the manifest.

**2. Create the app in Slack**

![Step 2 of the Slack page, with the Copiar manifesto, Abrir apps do Slack and Já criei o app buttons marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/02-manifesto.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=63c2185c20ad02815c35ae76950b5e38)

1. Click **Copiar manifesto** (Copy manifest) and then **Abrir apps do Slack** (Open Slack apps). If Slack asks, sign in with your company Slack account.

2. In the **Your Apps** list, click **Create New App**.

   ![Slack's Your Apps list, with the Create New App button marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/02-create-new-app.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=6b38d0f420dc26195c8554ab0238b7da)

3. Choose **From a manifest**. **You see:** the **Create from a manifest** window, with a sample manifest.

4. Choose the **JSON** tab and delete all the sample text. In **Workspace**, choose the company's Slack workspace.

   ![The Create from a manifest window, with the JSON tab and the Workspace field marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/02-from-a-manifest.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=4437478c03ad5a414a56ba302cbee28d)

   Paste the manifest you copied in Morada OS and click **Next**.

   ![The Create from a manifest window with the Morada OS manifest pasted and the Next button marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/02-manifest-json.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=ad06fd2629c54c5fc4631399035f0df0)

5. **You see:** **Review your app**, with what the app does and the permissions it asks for. Click **Create and Install**.

   ![The Review your app window, with the Create and Install button marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/02-review-create.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=02d94f79f97fbe7123f6e6acf9520402)

   If Slack asks you to authorize the app in the workspace, authorize it. If it says it could not verify the events address, carry on: step 4 takes care of that.

6. In the new app, in **Basic Information**, **Display Information**, upload the icon and click **Save Changes**.

7. Back in Morada OS, click **Já criei o app** (I created the app). **You see:** step 2 with a ✓ and step 3 open.

**3. Paste the app's credentials**

In the Slack app, in **Basic Information**, **App Credentials**, copy the three values into the Morada OS fields: **Client ID**, **Client Secret** and **Signing Secret**. The **Client Secret** and the **Signing Secret** show when you click **Show**. Click **Salvar credenciais** (Save credentials).

![Step 3 of the Slack page, with the Client ID, Client Secret and Signing Secret fields and the Salvar credenciais button marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/03-credenciais.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=7726f5da2f07d20e604131c7bf4beb35)

**You see:** step 3 with a ✓ and **Credenciais salvas.** (Credentials saved.), and steps 4 and 5 open. The values are stored encrypted and are not shown on screen again.

> [!WARNING]
>
> The **Client Secret** and the **Signing Secret** are the app's passwords. Paste them only in Morada OS; never send them by email or chat.

**4. Confirm the events address in Slack**

When you created the app, Slack tested the Morada OS address before the credentials existed, and the test failed. Now that they are saved, ask for a new test: open the app at [api.slack.com/apps](https://api.slack.com/apps), go to **Event Subscriptions** and click **Retry** next to **Request URL**. **You see:** **Verified** next to the address.

![Steps 4 and 5 of the Slack page, with the api.slack.com/apps link and the Instalar no Slack button marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/04-eventos-e-instalar.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=94f0910bb3a1ad6e4445e0a0e9c39d27)

**5. Install in Slack**

Click **Instalar no Slack** (Install in Slack). Slack asks you to authorize the app in the workspace: click **Allow**.

**You see:** the Slack page again, with the **Slack instalado.** (Slack installed.) notice and the app's health instead of the steps.

![The Slack page with the Ativo badge, the app's health and the Slack instalado notice](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/05-instalado.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=a37d4b0b3a9052e8b4c863d177f4593b)

### After installing: tell your team

* **Each person connects their own Slack account, once, before the app answers them.** It is in **Configurações > Conta > Canais > Slack** (Settings > Account > Channels > Slack), with **Conectar minha conta** (Connect my account) (see [Connect your account](https://docs.morada.ai/morada-os/en/channels/slack.md#connect-your-account-just-once)). Until then, the app does not use the AI or spend credits: it only shows the person a **Conectar minha conta** button that opens the **Slack** page in **Canais**. That goes for you too.

  ![Slack page with the Conectar minha conta button marked](https://mintcdn.com/moradaai-f7bfc739/b0_HB7b5DqRbiPA9/images/morada-os/canais/slack-conectar-conta.png?fit=max\&auto=format\&n=b0_HB7b5DqRbiPA9\&q=85\&s=137609eb2efbecf8b9bccdf4425f0ab8)

* **The app recognizes each person by the email in their Slack profile.** Whoever is going to use it needs a Morada OS account with that same email. Invite anyone who does not have one yet.

* **The app joins channel by channel.** It only receives mentions from the channels it belongs to. When someone mentions the app in a channel it is not in, Slack offers to invite it; in a private channel, invite the app in each channel where it will be used.

Send your team the page [Use Morada OS in Slack](https://docs.morada.ai/morada-os/en/channels/slack.md): it explains how to connect, talk and approve.

***

## Check that everything is working

After the installation, the **Administração** (Administration) tab of the **Slack** page, in **Canais**, shows the app's health:

![The Slack page with the Ativo badge and the Eventos, Último erro, Assinatura, Permissões, Pessoas and Nome no Slack rows](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/saude.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=8d165269e63f695071a87b74ae6bfbf2)

| Row | What it shows |
| - | - |
| **Eventos** (Events) | When the last message from Slack arrived. If none arrived in the last 7 days, send the app a message in Slack to test it. |
| **Último erro** (Last error) | The last error in the last 7 days, and when it happened. |
| **Assinatura** (Signature) | Whether Morada OS is refusing messages from Slack. If it is, see [When something goes wrong](#when-something-goes-wrong). |
| **Permissões** (Permissions) | Whether a permission of the manifest is missing. If one is, update the manifest in the Slack app and click **Reinstalar** (Reinstall). |
| **Pessoas** (People) | How many people have connected their Slack account. |
| **Nome no Slack** (Name in Slack) | The app's name. If Slack shows it under another name, the row says so: rename the app in **Basic Information**, in Slack. |
| **Conversas do Slack** (Slack conversations) | The default workspace for conversations, when the organization has more than one. |

For organization administrators, the **Instalação da organização** (Organization installation) badge on the card in **Canais** sums up the situation: **Em configuração** (Setting up) while steps are missing, **Ativo** (Active) when all is good, **Precisa de atenção** (Needs attention) when the manifest changed, a permission is missing or Morada OS is refusing messages, and **Sem acesso** (No access) when the app was uninstalled or lost its access in Slack.

Below the table are **Nome e workspace** (Name and workspace; just **Nome**, Name, when the organization has one workspace), **Manifesto** (Manifest) and **Trocar credenciais** (Replace credentials). When the manifest changes, it shows up in the notice above the table instead of under **Manifesto**.

> [!TIP]
>
> You can also ask in the Morada OS chat: *"o Slack está instalado? está tudo certo com ele?"* (is Slack installed? is everything fine with it?). The assistant reads the same status the page shows and tells you what to do.

***

## When Morada OS asks for a new manifest

When Morada OS starts needing something new from Slack, the page shows **O manifesto do app mudou.** (The app's manifest changed.), with the new manifest right below, and the card in **Canais** shows **Precisa de atenção** (Needs attention) for organization administrators.

![The O manifesto do app mudou notice, with the Copiar manifesto and Já atualizei o manifesto buttons marked](https://mintcdn.com/moradaai-f7bfc739/_8tOjfT8Z9GnT5Ak/images/morada-os/canais/slack/manifesto-mudou.png?fit=max\&auto=format\&n=_8tOjfT8Z9GnT5Ak\&q=85\&s=116b386c769f3d338ba8db770b7df18d)

**1. Update the app in Slack**

Click **Copiar manifesto**, open the app in Slack's app list, go to **App Manifest**, paste the new manifest in place of the current one and click **Save Changes**. If Slack asks, reinstall the app.

**2. Tell Morada OS**

Back in the **Administração** tab of **Slack**, in **Canais**, click **Já atualizei o manifesto** (I updated the manifest). **You see:** the notice goes away and the installation returns to **Ativo** (Active) on the card in **Canais**.

***

## Remove Slack

To take the Slack app out of your organization, for example to install it again from a clean start, open **Configurações > Conta > Canais > Slack > Administração** (Settings > Account > Channels > Slack > Administration) in Morada OS, open **Remover o Slack** (Remove Slack) and click **Remover o Slack da organização** (Remove Slack from the organization). Morada OS asks you to confirm before it removes anything.

When you confirm:

* The app stops answering in Slack for everyone in the organization.
* Morada OS disconnects the app from the Slack workspace and deletes the credentials it kept for it.
* The conversations stay in Morada OS.
* To use Slack again, an organization admin makes a new installation, and each person connects their account again.

### Delete the app in Slack

The app keeps existing in Slack until you delete it. After the removal, the **Administração** tab links to the app's page in Slack: under **Basic Information**, choose **Delete App**. The notice stays on the page until someone starts a new installation.

***

## When something goes wrong

> [accordion] O OS está recusando mensagens do Slack. (The OS is refusing messages from Slack.)
>
> The messages' security key does not match the **Signing Secret** saved in Morada OS, which happens, for example, when it is changed in Slack. In **Trocar credenciais** (Replace credentials), on the Slack page, paste again the three values from **Basic Information** in the Slack app: **Client ID**, **Client Secret** and the current **Signing Secret**. After saving, repeat the **Retry** in **Event Subscriptions**.

> [accordion] O app foi desinstalado ou perdeu o acesso no Slack. (The app was uninstalled or lost its access in Slack.)
>
> Nobody gets answers until you install it again. Click **Instalar de novo** (Install again) on the Slack page. Pending approvals stay in Morada OS.

> [accordion] Faltam as credenciais do app. (The app's credentials are missing.)
>
> Save the **Client ID**, the **Client Secret** and the **Signing Secret** (step 3) before clicking **Instalar no Slack** (Install in Slack).

> [accordion] The installation was cancelled in Slack, or the installation request expired.
>
> Click **Instalar no Slack** (Install in Slack) again to start over.

> [accordion] Não foi possível concluir a instalação. (The installation could not be completed.)
>
> Check that the saved **Client ID** and **Client Secret** belong to the app you created, replace them if needed in **Trocar credenciais**, and try again.

> [accordion] Instalações no Enterprise Grid ainda não são aceitas. (Enterprise Grid installations are not accepted yet.)
>
> Install the app in a Slack workspace, not in the whole Enterprise Grid organization.

> [accordion] Este app foi instalado antes em outro workspace do Slack. (This app was installed before in another Slack workspace.)
>
> Install it again in the same workspace and with the same app as the first time.

> [accordion] Esse workspace do Slack já está conectado a outra organização do Morada OS. (This Slack workspace is already linked to another Morada OS organization.)
>
> Each Slack workspace is linked to a single organization. Choose another Slack workspace or talk to Morada's support.

> [accordion] Someone says the app does not recognize them.
>
> The app looks for a Morada OS account with the email in the person's Slack profile. If it finds none, invite the person to Morada OS with that email. If it finds more than one, review the accounts that use that email.

> [accordion] Someone mentioned the app in a channel and it did not answer.
>
> Check that the app is in the channel: Slack only tells the app about a mention in a channel it belongs to, and offers to invite it when someone mentions it in a channel it is not in. Also check that the person connected their account and that the channel is not shared with another company: the app does not answer in those channels.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.