> ## 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.

# Use Morada OS in Microsoft Teams

> Talk to the assistant in the personal chat or by mentioning the app in a group chat or a channel. It answers as your Morada OS and only acts with your OK.

When your organization installs Morada OS in Microsoft Teams, the assistant gets an app in your Teams, with the name the organization chose. You talk to it in the personal chat or by mentioning the app in a group chat or a channel, and the one answering is **your** Morada OS: with your [connectors](https://docs.morada.ai/morada-os/en/connectors/index.md), your [Brain](https://docs.morada.ai/morada-os/en/brain/index.md) (the organization's knowledge library) and your access, spending your credits, just like in the chat.

It works like calling a colleague who already knows your work: you ask where you are, and they answer right there. To do something on your behalf (send an email, create a task, save a page), it always asks for your OK first.

> [!NOTE]
>
> The app is installed in Teams by whoever administers the organization ([installation guide](https://docs.morada.ai/morada-os/en/channels/teams-install.md)). Do not confuse it with the [Microsoft 365 connector](https://docs.morada.ai/morada-os/en/connectors/microsoft-365.md), in **Conectores** (Connectors), which works the other way around: the assistant reads your email, calendar and files as you, from inside Morada OS.

***

## Connect your account, just once

Before your first conversation, link your Teams account to your Morada OS account. That is what guarantees the person talking to the app is you.

**1. Open Channels**

In Morada OS, click your initials at the bottom of the sidebar and open **Configurações > Conta > Canais** (Settings > Account > Channels). Choose **Microsoft Teams**. Each channel has its own page, with the **Visão geral** (Overview) and **Preferências** (Preferences) tabs.

**2. Click Conectar minha conta (Connect my account)**

Microsoft asks you to sign in with your organization's Microsoft account, the same one you use in Teams.

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

**3. Done**

You return to the Teams page with the notice **Conta do Teams conectada. Já pode falar com o app no Teams.** (Teams account connected. You can now talk to the app in Teams.) and the **Conectado** (Connected) badge. Send your message again in Teams.

On the same page, **Abrir no Teams** (Open in Teams) takes you to the app's page in Teams, where you click **Add**, even before you connect your account. The button shows once your organization's administrator saved the app link. After you connect, **Abrir a conversa no Teams** (Open the chat in Teams) goes straight to the chat with the app. A new app can take up to 24 hours to show up and to answer, and Teams releases it to each person on its own schedule.

If you message the app before connecting, the assistant does not work and no credit is spent: the app sends a card with a **Conectar minha conta** (Connect my account) button that opens the **Microsoft Teams** page in **Canais** (Channels). In a channel or group chat, only you see this notice.

If the connection does not work, the page shows why:

| Notice | What to do |
| - | - |
| **A conexão foi cancelada na Microsoft.** (The connection was cancelled at Microsoft.) | Click **Conectar minha conta** again whenever you want. |
| **Esse pedido de conexão expirou.** (This connection request expired.) | Click **Conectar minha conta** to try again. |
| **Essa conta Microsoft é de outra organização.** (This Microsoft account belongs to another organization.) | Click **Conectar minha conta** and sign in with your organization's Microsoft account. |
| **Essa conta Microsoft é de convidado na sua organização.** (This Microsoft account is a guest in your organization.) | Sign in with the account your organization created for you. |
| **A Microsoft não concluiu a conexão.** (Microsoft did not complete the connection.) | Try again. If it keeps happening, ask whoever administers the organization to check the bot's registration ([installation guide](https://docs.morada.ai/morada-os/en/channels/teams-install.md#when-something-goes-wrong)). |
| **Não foi possível conectar sua conta do Teams.** (Your Teams account could not be connected.) | The notice says why, for example, that the Microsoft account uses another person's email in the organization. Sign in to Morada OS with that email's account, or talk to whoever administers the organization. |

> [!TIP]
>
> You can also ask in the Morada OS chat: *"is my Teams account connected?"*. If it is not, the assistant sends the link to connect.

***

## Where to talk

> [card] In the personal chat
>
> Open the app in Teams and write. Only you read the conversation. The personal chat with the app is a single conversation: each message continues the same conversation. While it works, the app shows it is typing.

> [card] In a group chat
>
> Add the app to the group and mention it with your request. Mention it again to continue. Everyone in the group reads the answer, but each person has their own conversation in Morada OS.

> [card] In a channel
>
> In a team where the app was added, mention the app (for example, **@Assistant**) in a post or a reply. The answer comes in the post's replies, and each of its messages shows your name, so the channel knows who it is working for. To continue, mention the app again. While it works, the app marks your message with 👀, then with ✅ or ❌.

For the app to answer in a channel, it has to be in the team: ask the team owner to add it. It does not answer in shared channels. In a group chat, it only answers when it can confirm that every participant belongs to your organization. If someone is from outside it, the request is refused.

If you cannot add the app to the group, ask whoever administers the organization to update the app package in Teams.

### Long answers

The answer shows up as the assistant writes it. When it is long, the message ends with **(continua na próxima mensagem)** (continued in the next message) and the rest follows right below, in a new message. If the assistant has been working for a while without writing, the app says **Ainda estou trabalhando...** (Still working...).

### Files and images

* **In the personal chat**, send the file along with the request.
* **In a group chat or channel**, the assistant can read images attached to the message that mentions the app. For documents, attach the file to the conversation in Morada OS.
* **Images the assistant creates appear in the Teams message**, including in group chats and channels. If Teams cannot show the image, the answer brings a link to the conversation in Morada OS.
* **Documents the assistant creates**, such as PDFs and spreadsheets, arrive as a file offer in the personal chat: accept it to receive the file. In group chats and channels, the answer brings a link to open them in Morada OS.

***

## In a group or channel, everyone reads the answer

In the group or channel, the assistant has the same reach it has with you in Morada OS, including your email, your files and your meetings, for requests like *"check my email and bring here for everyone what the client replied"*. It also knows everyone in the group or channel reads the answer:

* **Only the person who mentioned the app makes the request.** In a channel, other people's messages in the post are context, never an order.
* **Your private data comes in only when you ask.**
* **It brings only what the request needs**, keeping in mind that everyone reads it.

> [!WARNING]
>
> **In a conversation with other people's messages, every action asks for your OK.** In a group or channel, the assistant asks for your OK for anything that is not just reading, even for what you marked as **Sempre permitir** (Always allow) in Morada OS (the option that lets an action run without asking again). This still applies if you carry on that conversation in Morada OS.

### What the app reads in a group

The app receives the message that mentions it and the images attached to it. It does not fetch the group chat history.

### What the app reads in a channel

Only what comes with a mention. The app does not follow the channel: it works when someone mentions it and, then, reads the mention's post and its replies, to understand the subject.

### Notices only you see

When the app needs to talk only to you in a channel (to ask you to connect your account, or to say why it cannot help), it sends a notice only you see, right in the post. In the personal chat, the notice is a regular message, since only you read the conversation.

***

## Nothing is done without your OK

It is the same rule as in Morada OS: [you approve before it happens](https://docs.morada.ai/morada-os/en/setup-guide.md). In Teams, when the assistant needs to act on your behalf, the answer comes with a card in the conversation, to approve or decline.

* **Only the person who asked answers.** In a group or channel everyone sees the card, but if someone else clicks it, only they see a notice that they cannot answer, and nothing changes.
* **The details stay with you.** In a group or channel, the card shows only a summary of the request, and the details open only for the person who asked.
* **When you click**, the card shows it is processing and, when done, shows the result to everyone in the conversation. The assistant confirms the result in the conversation.
* **You can also answer in Morada OS**, in the same conversation. The action runs only once.

***

## What stays in Morada OS

In Teams, the assistant does almost everything it does in the chat. A few things need the Morada OS screen:

* **Creating presentations, managing [routines](https://docs.morada.ai/morada-os/en/routines.md), creating or editing skills, connecting accounts, recording videos and sending product feedback.** The assistant answers with the link to the conversation in Morada OS, where you continue.
* **Brain change [proposals](https://docs.morada.ai/morada-os/en/proposals.md)** reach Teams as a line with the link to answer in Morada OS.
* **Shared channels** are not served yet.

***

## Your Teams conversations in Morada OS

Each conversation with the app in Teams is also a conversation of yours in Morada OS, which only you see. It shows up in your list with the Teams icon. In a group chat or channel post, each person who mentions the app has their own conversation.

The personal chat is a single conversation. If you delete that conversation in Morada OS, the next message in the personal chat starts a new conversation. In a channel, to start another conversation, mention the app in a new post.

If you use more than one workspace in Morada OS, choose where they arrive in **Canais > Microsoft Teams > Preferências**, under **Workspace das suas conversas** (Workspace of your conversations). This choice applies to Slack and Teams. By default, each channel uses the workspace the organization chose at installation.

***

## The processing level in Teams

On the Teams page, in the **Preferências** (Preferences) tab, choose **Nível de processamento nos canais** (Processing level in channels): **Leve** (Light), **Avançado** (Advanced) or **Profundo** (Deep), among the ones your company has. If your company also uses Slack, the level is the same in both. It applies from the next answer on, also in existing conversations. Each answer is charged as in the chat, in your credits, and deeper levels spend more per answer.

You can also ask in the Morada OS chat: *"muda meu nível do Teams para Leve"* (change my Teams level to Light). A card asks for your OK before saving.

***

## When the app does not answer you

When the app cannot serve you, it explains why in a notice only you see, and nothing runs:

> [accordion] Não encontrei uma conta do Morada OS conectada à sua conta do Teams. (I did not find a Morada OS account connected to your Teams account.)
>
> Connect your account in **Canais > Microsoft Teams**, using **Conectar minha conta** (Connect my account). If you do not have a Morada OS account yet, ask whoever administers the organization to invite you with your Microsoft account's email.

> [accordion] Mais de uma conta do Morada OS corresponde à sua conta do Teams. (More than one Morada OS account matches your Teams account.)
>
> The app cannot tell which account is yours. Ask whoever administers the organization to review those accounts.

> [accordion] Sua conta do Teams está conectada a outra pessoa no Morada OS. (Your Teams account is connected to another person in Morada OS.)
>
> Ask whoever administers the organization to review that link.

> [accordion] Contas de convidado do Teams ainda não podem usar o Morada OS por aqui. (Teams guest accounts cannot use Morada OS here yet.)
>
> Guests do not use the app. Ask whoever administers the organization to add you as a member.

> [accordion] O app atende só pessoas da organização que o instalou. (The app only serves people from the organization that installed it.)
>
> People from another organization do not use your organization's app.

> [accordion] Ainda não respondo em canais compartilhados. (I do not answer in shared channels yet.)
>
> Talk to the app in the personal chat or in a standard channel of the team.

> [accordion] Você não tem acesso ao workspace do Morada OS onde as conversas do Teams ficam. (You do not have access to the Morada OS workspace where Teams conversations live.)
>
> Ask whoever administers the organization for access, or choose another workspace in **Canais > Microsoft Teams > Preferências**.

> [accordion] No credits, or the trial ended.
>
> The app answers with the same message the Morada OS chat would show, and nothing is spent.

> [accordion] Esta conversa foi apagada no Morada OS. (This conversation was deleted in Morada OS.)
>
> The conversation for that post was deleted. To start another, mention the app in a new post in the channel.

Two messages are different, because the answer had already started or never went out:

* **Não sei se terminei de responder.** (I am not sure I finished answering.) Something interrupted the answer midway, and part of the request may have been done. The message brings the link to the conversation in Morada OS: check there what was already done before asking again.
* **Não consegui responder a esta mensagem. Tente de novo em alguns minutos.** (I could not answer this message. Try again in a few minutes.) The answer did not go out. Send the request again in a little while.

If the app does not answer at all, not even with a notice, look at the top of the chat. The chat with the app can show up in your list only because the app was added to a team, and what you write there does not reach the app until you add it for personal use. In that case, Teams shows a banner with an **Add app** button (**Adicionar aplicação** in Portuguese): click it and send the message again. With a new app, Teams may also not have released it to you yet: wait up to 24 hours.


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