# Triggers

> Automate routing, priority, tags, replies and notifications with simple when-then rules.

Source: https://help.askmavis.co/help/triggers  
Collection: Helpdesk  
Last updated: 2026-12-05

Triggers are rules that run when a chat or ticket is created or updated: when these conditions match, then do these actions. They're on every plan.

![The Triggers tab under Helpdesk Automation, with ready-made rules and a New trigger button.](https://askmavis.co/help-media/triggers/overview.webp)

Go to **Helpdesk > Macros and SLAs > Triggers**.

![Animation: on the Triggers tab, New trigger opens the editor; the trigger is named Route refunds to Billing, set to apply to chats and tickets, with the condition First message contains any of refund and the action Assign team Billing, then created and shown as Active in the list.](https://askmavis.co/help-media/triggers/trigger-flow.webp)

What the animation shows:

1. On **Triggers**, click **New trigger**.
2. Name it and choose what it **Applies to**.
3. Under **When**, pick a field, an operator and a value, for example **First message** contains any of "refund".
4. Under **Then**, pick an action, for example **Assign team** Billing.
5. Click **Create trigger**. It shows in the list as **Active**.

## Start from a preset

Click **Add a ready-made rule** to start from a preset, such as:

- **After hours, tell them when we're back**
- **Send billing questions to a team**
- **Route new email to a team**
- **Raise priority on refund or urgent**
- **Tell a team when a chat is escalated**
- **Tag contacts who give a low rating**
- **Tell a webhook when something is resolved**

## Create a trigger

1. Click **New trigger** and give it a **Name**, like "Route refunds to Billing".
2. Choose what it **Applies to**: **Chats**, **Tickets**, or **Chats and tickets**.
3. Under **When**, add conditions:
   - **Match all of:** every condition must match.
   - **Match any of:** optional, at least one must match.
4. Under **Then**, add actions. They run in order.
5. Save. New triggers are **Active**.

## Conditions

You can check the status, ticket state, channel, assignee, team, priority, tags, subject, first message, latest customer message, custom fields, the contact's name, email, phone or attributes, the address an email was sent to, who's handling it, who sent the last message, the rating, office hours, and the visitor's country, language or local time.

## Actions

**Set status**, **Set ticket state**, **Assign team**, **Assign teammate**, **Auto-assign**, **Set priority**, **Add internal note**, **Add tags**, **Remove tags**, **Set tags**, **Remove all tags**, **Set custom field**, **Tag contact**, **Create ticket from chat**, **Send chat message**, **Send email**, **Ask for rating**, **Apply SLA**, **Send webhook** and **Wait**.

- **Wait** pauses the actions below it. You can end the wait early when the customer, a teammate or anyone replies.
- **Send chat message** is only sent when a person is handling the chat. Type `{` to add the contact's name and more.
- **Run once per chat or ticket** skips the rule after it has run once. It's on by default for rules that send a message.

## Order and loops

Triggers run in the order of the list. Drag to reorder them. If two triggers could keep undoing each other, you'll see a warning so you can fix them. A trigger that needs fixing shows **Needs attention**.

## Related

- [Teams, assignment and office hours](https://help.askmavis.co/help/teams-and-assignment)
- [SLAs](https://help.askmavis.co/help/slas)
