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

# Routines: the assistant does a request by itself, at the time you choose

> Agree on it once in the conversation, and the assistant repeats the work at the right time, as you, and tells you the result.

A **routine** is a request the assistant does by itself, at a time or a frequency you choose: every Monday at 9am, every weekday at 7am, every 30 minutes during business hours. It works as you, with the same connectors and the same access you have in the chat, and at the end it tells you the result.

It works like asking a colleague you trust: you agree once on what to do, when and where to deliver it, and they take care of it without you having to remember.

> [!NOTE]
>
> **A routine is not a reminder.** A reminder tells you something at a time. A routine makes the assistant work at that time.

***

## How to create a routine

The way in is the conversation. You describe what you want, and the assistant puts the routine together and shows everything on a card before creating it.

**1. Ask in the conversation**

Write the request with the time, for example: *"every Monday at 9am, check this week's new leads in the Morada Platform and send a summary to #vendas on Slack"*. To put the assistant straight into routine-creating mode, type **/rotina** in the message field (**/agendar** also finds **Rotina**).

**2. Answer what is missing**

If the request does not say when it runs, what to deliver or where the result arrives, the assistant asks before proposing.

**3. Check the card**

The card shows the routine's name, **when** it runs, its **goal** and **where the result arrives**. Click **Criar rotina** (Create routine) to confirm, or **Cancelar** (Cancel).

**4. Test it, if you like**

Once created, the routine shows up in a chip right below, with the **Rodar agora** (Run now) button. It runs for real: if the routine sends a message or an e-mail, the message goes out.

You can also start from the **Rotinas** (Routines) screen, in the side menu:

* **Nova rotina** (New routine) opens a conversation already in routine-creating mode, so the assistant asks what you want.
* **The templates** (for example, **Resumo diário de leads**, Daily leads summary; **Leads sem resposta**, Unanswered leads; **Resumo semanal**, Weekly summary; and **Monitorar um tema**, Watch a topic) fill in a ready request in the conversation. Nothing is sent until you send it: adjust whatever you want first.

### Write the request for someone who arrives with no context

Each run starts from scratch, without reading the conversation the routine was born in. The assistant rewrites the request so it stands on its own, but it helps a lot to say:

* **What to deliver**: *"the 3 hottest leads, with the development and the phone number"*.
* **When to tell you**: *"only tell me if there is a new lead"* makes the routine tell you only when there is something new.
* **Where the result arrives**: *"send it to #vendas"*, *"send it by e-mail to [ana@empresa.com.br](mailto:ana@empresa.com.br)"*.

Times are always in Brasília time. A routine can run once on a date, on chosen weekdays, on a day of the month, or every so many minutes or hours, within a window of the day if you like.

***

## What the card authorizes

Nobody is watching when the routine runs. That is why your click on **Criar rotina** is your authorization, and it covers only what is written on the card.

* **Reading, it always reads**, as it does in the chat with you.
* **Writing or sending something, only as the card allowed.** Each destination shows up on its own line: *"Mandar mensagem no Slack, **em seu nome**"* (Send a message on Slack, in your name) with the channel below it, for example. Other than that, it only reads.
* **E-mail only to the recipients written on the card.** To any other address, the routine does not send. The same goes for the Slack channel.
* **In your Meu Brain** (My Brain), what the routine saves goes in as a draft. **In a shared Brain**, it opens a [proposal](https://docs.morada.ai/morada-os/en/proposals.md) for whoever looks after the place to review, and it never applies it by itself.

A routine's card never offers **Sempre permitir** (Always allow). Creating, changing the request, the time, the level or the destinations, and asking the assistant to run it now: all of it goes through a card, every time.

> [!WARNING]
>
> If a run tries something the card did not authorize, nothing is done. The run's conversation shows what was refused, with the **Autorizar nas próximas** (Authorize for the next runs) button: you confirm on a new card before it counts.

***

## Where the result arrives

> [card] In a new conversation
>
> Each run opens a conversation of its own, kept under the routine, in **Rotinas**. The assistant's answer is the result, and you can reply and keep going from there.

> [card] In the bell
>
> The notice shows the routine and a one-line result. A dot on **Rotinas**, in the side menu, marks runs you have not opened yet.

> [card] By e-mail
>
> If you did not see the notice in the bell within a few minutes, an e-mail arrives with the routine's name and the link. The result itself stays in Morada OS.

Run conversations do not show up in **Recentes** (Recent): they stay under the routine, so they do not fill up your list.

If the request says to tell you only when there is something new, a run with nothing new is recorded in the history, but does not notify you. When the run needs you (a refused write, a proposal to review, a piece of information that was missing), it always notifies you.

***

## The Rotinas screen

**Rotinas** holds your routines. What **precisa de você** (needs you) comes first, then **Suas rotinas** (Your routines), each with its schedule, its next run and its unread runs. Click a routine to see its details:

* **Rodar agora** (Run now): runs it once, right away, without changing the schedule. The result arrives in a new conversation.
* **Pausar** (Pause) and **Retomar** (Resume): a paused routine does not run at its scheduled times. When you resume it, it carries on from the next time, without running the ones that went by.
* **Editar** (Edit): opens a conversation for you to say what to change. The assistant shows a card with the before and the after.
* **Excluir rotina** (Delete routine): it stops running, and the run conversations go to the Lixeira (Trash).
* **Execuções** (Runs): the history, with each run's outcome (**Com novidade**, With news; **Sem novidade**, Nothing new; **Precisa de você**, Needs you; **Não consegui**, Couldn't do it; **Não terminou**, Didn't finish) and the link to its conversation.

> [!TIP]
>
> A paused routine can still be tested with **Rodar agora**. It stays paused until you resume it.

***

## When something goes wrong

* **A run that failed after it started is not repeated by itself.** It may have done part of the work, such as sending a message, and repeating it could send it again. You get the notice and you decide.
* **After 3 failures in a row, the routine pauses**, so it does not keep failing. Open the routine to see why, fix it (for example, reconnect the connector) and click **Retomar**.
* **A run that never got to start** (because of an instability before the assistant began working) is tried again automatically.
* **If the routine is still running when the next time comes**, that time is skipped. A routine never runs twice at the same time.
* **If you lose access to the routine's environment**, it stops. To carry on, ask in a conversation in an environment you use to move the routine there (it runs again after the card), or delete it.

***

## What it costs

Each run is billed exactly like a conversation: at the routine's level (**Leve**, Light; **Avançado**, Advanced; or **Profundo**, Deep, shown on the card) and by the same credit rule. A frequent routine at a high level spends more, so pick the level for what the task needs.

If your company uses credits and they run out, the run for that time is skipped, spending nothing, and you get a notice. The routine runs again by itself when there are credits.

***

## With the assistant

Everything you can do on the screen, you can ask for in the chat:

| You want to | Ask |
| - | - |
| See your routines | *"Which routines do I have?"* |
| Change the time | *"Move the leads routine to 8am."* |
| Change the destination | *"In the weekly summary routine, also send it to [pedro@empresa.com.br](mailto:pedro@empresa.com.br)."* |
| Pause or resume | *"Pause the news routine."* |
| Test | *"Run the leads routine now."* |

Seeing your routines is only a read. Everything else in the table changes something, and goes through a card for you to confirm. Pausing, resuming and deleting accept **Sempre permitir** (Always allow), because they only reduce or restore what you already authorized; creating, changing and running now, never.

***

## Frequently asked questions

> [accordion] Who sees my routines?
>
> The routine and its run conversations, only you: it runs as you. What it sends out, such as a Slack message or an e-mail, reaches whoever is at the destination you authorized on the card.

> [accordion] Can the routine do something I did not authorize?
>
> No. Outside what the card authorized, it only reads. A write outside what was agreed is refused, and the run's conversation shows what was refused.

> [accordion] Why did I not get a notice for a run?
>
> If the request says to tell you only when there is something new, a run with nothing new does not notify you. It stays in the routine's history, under **Execuções** (Runs).

> [accordion] A run failed. Will it run again?
>
> Not by itself, if it had already started: repeating it could do again something that was already done. The routine carries on at its next time. To run it now, use **Rodar agora**.

> [accordion] My routine is paused and I did not pause it.
>
> It paused after 3 failures in a row. Open the routine to see why, fix it and click **Retomar**.


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