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

# MessageDesk Relays Automation Overview

> Learn what MessageDesk Relays are, how triggers and actions work, and see common SMS automation examples like auto-replies, follow-ups, and webhook events.

# How to automate with Relays

Relays are MessageDesk's workflow engine. They listen for **events**, evaluate **conditions**, and run **actions** so the right conversation reaches the right person at the right time.

[YouTube video player](https://www.youtube.com/embed/pwKk371V8bk)

> [!WARNING]
>
> **Before you start.** Relays are desktop-only, and they're on the **Pro** and **Enterprise** plans ([Pricing](https://docs.messagedesk.com/resources/pricing.md)). **Admins** and **Managers** can manage Relays by default, and **Operators** can view them. Adjust **Relay Management** for any role in [Team Management](https://docs.messagedesk.com/settings/workspace-settings/team-management.md).

***

> [!NOTE]
>
> **Coming from MessageDesk Reach?** **Office Hours** lives here now. It's a Relay that replies outside your **Active hours**, and it ships as two templates under **Respond to Messages**: **Out-of-Office (Away) Autoresponse** and **After-Hours Auto Reply**. See [Relay templates](https://docs.messagedesk.com/relays/templates.md#respond-to-messages).

## Why use Relays?

* **Scale without chaos:** Auto-assign and auto-label to keep your Inbox tidy as volume grows.
* **Respond faster:** Send **after-hours** and **first-touch** replies automatically.
* **Reduce busywork:** Route by **phone line**, **label**, or **teammate** so work starts in the right place.
* **Stay consistent:** Standardize rules so you don't miss handoffs.

> [!NOTE]
>
> **Relays or Zapier?** Start with Relays when the whole workflow lives in MessageDesk. They're first-party, go deeper into the product, and don't depend on an outside account. Reach for [Zapier](https://docs.messagedesk.com/integrations/zapier.md) when you need to touch another app, or when you need branching, filters, and multi-step logic. The two share a vocabulary on purpose, so what you learn in one carries over.

***

## What you can do with Relays

Relays cover four kinds of work:

* **Answer without a person.** After-hours replies, keyword replies, and a first-touch question for texts from unsaved numbers.
* **Get the thread to the right owner.** Route by phone line, keyword, label, or contact property. Assign the first teammate who replies. Reset assignment when a thread closes or reopens.
* **Keep the Inbox honest.** Auto-label, auto-close threads nobody needs to touch, and force a thread back to **Unread** so an auto-reply doesn't look like a handled conversation.
* **Talk to your other systems.** Push messages, closes, assignments, and opt-outs out by webhook. Let a CRM or form send a webhook in and text a contact through MessageDesk.

Three triggers don't run on a conversation. **Contact Created**, **Contact Updated**, and **Inbound Webhook Received** fire against a contact, so you can text a welcome the moment someone is saved, or sync a property from another system. Use [Event Data](https://docs.messagedesk.com/relays/building-blocks.md#event-data) to pull values from the event into your messages instead of typing fixed text.

***

## How Relays work (at a glance)

![Relay Example Pn](https://mintcdn.com/messagedesk/OgrWYySpL_jl4qLE/images/relay-example.png?fit=max\&auto=format\&n=OgrWYySpL_jl4qLE\&q=85\&s=893b763768442e98318c05324494bead)

**Relays = Triggers → Conditions → Actions**

* **Triggers** decide when a Relay runs. Fourteen of them, from **Message Received** to **Opt Out Created**.
* **Conditions** decide where and when it applies: a phone line, a keyword, a label, an assignee, a time window.
* **Actions** are what happens: reply, assign, label, open or close the thread, post an internal comment, send a webhook.

See [Relay building blocks](https://docs.messagedesk.com/relays/building-blocks.md) for every trigger, condition, and action. You can **pause** and **resume** any Relay without deleting it.

> [!NOTE]
>
> **Multiple Relays on one event.** When several Relays share the same trigger, **all matching Relays run** in the **Order** you set on the Relays list, top to bottom. Reorder Relays to control sequencing when conditions overlap. For example, run a specific keyword auto-reply before a generic after-hours reply. See [Order your Relays](https://docs.messagedesk.com/relays/create-edit.md#1a-order-your-relays).

***

## Relay templates

MessageDesk ships 58 templates, grouped by outcome in the app. Every one arrives paused, so nothing runs until you turn it on.

> [!TIP]
>
> See [Relay templates](https://docs.messagedesk.com/relays/templates.md) for all 58, the builds behind them organized by trigger, and an industry-by-industry starting point.

> [!NOTE]
>
> **An auto-reply isn't a handled conversation.** A Relay reply moves the thread to **Replied**, which takes it out of the Unread filter, but nobody has read it yet. See [Relays and conversation status](https://docs.messagedesk.com/relays/create-edit.md#relays-and-conversation-status).


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