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

# Channels

> Connect your factory to places where your team already talks—like Slack—or build your own Channel on the Factory API.

A **Channel** connects your factory directly to a communication surface where your team works. Every incoming message becomes an [Event](https://docs.myworklayer.com/events.md) inside a Room, and the factory responds right back in the same conversation.

Worklayer supports **Slack** as a first-party Channel today—so a support team can `@mention` the factory in `#support-escalations` and approve refunds directly in-thread. You can also build your own custom Channel (such as an in-app chat widget or help desk integration) using the Factory API. See [Build your own Channel](#build-your-own-channel).

![Slack Channel flow: messages in #support-escalations map to delivery modes inside an isolated Slack Room, and the support factory replies in-thread with interactive Review cards.](https://mintcdn.com/worklayer-17401167/cpUXFKQRIMsNdzrq/images/diagrams/channels-slack-light.svg?fit=max\&auto=format\&n=cpUXFKQRIMsNdzrq\&q=85\&s=7cb42ef8aab8cf02f257bb65691ad3cd)

## Connect Slack

In the Worklayer web app, open your factory, go to **Channels** → **Slack**, and connect your Slack workspace.

Every Slack channel, direct message, and group DM maps to its own isolated Room. Just like API-created Rooms, Slack Rooms cannot see each other, while the [main Room](https://docs.myworklayer.com/rooms.md#the-main-room) has visibility across all of them.

## Participation rules

For each Slack channel, choose how actively your factory joins in:

| Rule | Behavior |
| - | - |
| **Auto** | Listens to the channel and responds whenever it makes sense to jump in. |
| **When tagged** | Responds only when `@mentioned`, while quietly absorbing other channel messages as background context. |
| **Never** | Stays completely silent and does not read messages, even if invited to the channel. |

Direct messages and group DMs don't use channel rules—your factory always listens there.

Worklayer receives new messages, edits, deletes, reactions to the factory's own messages, and shared file names. Each Slack activity maps directly to an Event `delivery` mode (see [Choose when the factory reads an Event](https://docs.myworklayer.com/events.md#choose-when-the-factory-reads-an-event)):

| Slack activity | `delivery` |
| - | - |
| Direct message or `@mention` | `steer` |
| Any other new message in an **Auto** channel | `queue` |
| Any other new message in a **When tagged** channel | `context` |
| Reaction to a factory message | `queue` |
| Message edit or deletion | `context` |

## How the factory replies

* **In channels:** replies inside the message's thread so the main channel stays clean.
* **In direct messages:** replies in the DM directly, or in-thread if the person started a thread.
* **Working indicator:** adds a 👀 reaction while actively working on a request, then removes it once finished.

When a task needs human input, the [Review](https://docs.myworklayer.com/review.md) renders as an interactive card directly inside the originating Slack thread:

* **Approvals** show **Approve all**, **Deny**, and **Open details** buttons. Only people with access to the factory can approve.
* **Questions** show an **Answer** button. The first response submitted resolves the Review.

## Access controls

Control who in Slack can trigger your factory:

| Setting | Who can interact |
| - | - |
| **People with access** (default) | Members added on the factory's Access page. |
| **People in workspace** | Everyone in the Slack workspace plus factory members (excludes Slack Connect and single-/multi-channel guests). |
| **Everyone** | Anyone in the conversation, including Slack Connect guests. |

Messages from unauthorized users are ignored. If an unauthorized user sends a DM or `@mentions` the factory, Slack shows them a private note explaining how to request access (at most once per day).

Messages sent by another Worklayer factory's Slack bot are delivered strictly as `context` and never trigger work, preventing two factories from looping on each other.

## Slack Rooms in the API

Slack Rooms are managed exclusively in Slack and are not exposed through the Factory API. `GET /v1/rooms` omits them, and requesting a Slack Room ID returns `404`.

## Build your own Channel

Want to bring your factory into your own product—like a support inbox, Slack alternative, or embedded chat? The Factory API gives you the exact same building blocks:

1. **Map conversations to Rooms:** call `POST /v1/rooms` with your conversation ID as `externalKey`. See [Rooms](https://docs.myworklayer.com/rooms.md).
2. **Stream messages as Events:** send new messages with `delivery: "queue"`, mid-flight corrections with `delivery: "steer"`, and passive context with `delivery: "context"`. See [Events](https://docs.myworklayer.com/events.md).
3. **Deliver replies:** [subscribe](https://docs.myworklayer.com/subscriptions.md) to `room.response` and render each reply's `text` in your conversation UI.
4. **Handle human input:** subscribe to `reviews.*` events and surface approval and question prompts directly to your users. See [Review](https://docs.myworklayer.com/review.md).


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