# Routines (https://pingbo.ai/docs/routines)

Rules Pingbo runs on every new conversation.

A routine is a rule: when something happens (the trigger), Pingbo takes a set action. Pingbo runs your routines on every new conversation, so you don't have to do it by hand each time.

Pingbo supports four routines:

| Routine | Trigger | Action |
|---|---|---|
| **Move by sender** | A new conversation from a sender you named | Goes to the place you chose |
| **Label by sender** | A new conversation from a sender you named | Gets the label you chose |
| **Auto label** | A new conversation arrives | Pingbo gives it a label |
| **Where each label goes** | A conversation gets a label | Goes to that label's place |

The last two are **Pingbo's defaults**: you can't delete them, but you can change what's in them. When more than one applies, see [Priority](#priority).

Routines belong to an inbox. With more than one inbox, each has its own set. Tap **Routines** in the menu to see and change them; a tap takes effect at once. You can also [change them in chat](#change-a-routine-in-chat).

## Move by sender [#move-by-sender]

New conversations from a sender you named go to the place you chose, whatever their label.

<RoutineCard lang="en" card="move" />

- Tap **Add sender** under a place and search for the person.
- Tap a sender to **Move to** another place, **Open contact**, or **Remove**.

## Label by sender [#label-by-sender]

New conversations from a sender you named get the label you chose.

<RoutineCard lang="en" card="label" />

- Senders are grouped by label. Tap **Another label** to add a group.
- Tap a sender to **Edit label**, **Open contact**, or **Remove**.

## Auto label [#auto-label]

Pingbo reads each new conversation and gives it one of your labels.

<RoutineCard lang="en" card="auto" />

- Tap a label to **Rename**, **Merge into…** or **Remove** it.
- Rename it to a name you already have, and Pingbo offers to merge the two.
- If senders still use a label you remove, Pingbo asks first.
- Tap **New label** and type a name.

## Where each label goes [#where-each-label-goes]

A labelled conversation goes to that label's place: Matters, Reading or Screened.

<RoutineCard lang="en" card="where" />

- Move a label to another place, or add one with **Other**.
- A label marked **?** is Pingbo's suggestion.

## Priority [#priority]

When a new conversation arrives, Pingbo goes down this list, and the first one that applies decides where it goes:

1. **Your own decision.** Pingbo never moves a conversation you moved.
2. **A conversation you wrote in.** A routine won't send it to Reading or Screened. At most, it goes to Matters.
3. **Move by sender.**
4. **Where each label goes.** Label by sender names the label; without one, Auto label does.
5. **Pingbo's judgment.** When none of the above applies, Pingbo decides.

For example, if Move by sender sends Anna to Reading, her new conversations go to Reading, wherever their label usually goes.

## Why some mail didn't follow a routine [#why-some-mail-didnt-follow-a-routine]

The usual reasons:

- **You moved the conversation.** Your decision comes before any routine.
- **You wrote in the conversation.** It won't go to Reading or Screened.
- **It's a reply in an older conversation.** Routines run on new conversations only. A reply stays where its conversation is.
- **The routine was made or changed after the mail arrived.** Mail already sorted doesn't move.
- **The sender wrote from another address.** A sender routine matches only the address you named, not other addresses of the same person or company.
- **A routine with higher priority decided first.** For example, Move by sender had already chosen a place.

To put mail somewhere else, move it yourself, or tell Pingbo in chat.

## Change a routine in chat [#change-a-routine-in-chat]

Tell Pingbo in your own words, for example "Screen mail from news@shop.com from now on" or "Put newsletters in Reading." Pingbo says what it will change, and changes it once you confirm.

You can name a sender by address or by name. For a name, Pingbo finds the addresses that person has written from in your mail. If more than one person has that name, it asks which one.

## When a change applies [#when-a-change-applies]

- Adding or changing a sender, or moving a label to another place, applies to new conversations only. Mail already sorted stays where it is.
- Renaming or removing a label changes every conversation with that label.
