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

# Run Slack work

> Ask Inlay for repository work in Slack, follow progress, and answer questions in the same thread.

Mention `@Inlay` in Slack to request a repository change, investigate a problem in the code, or check progress. A [bench](/docs/headless/bench-jobs.md) does the work, and Inlay replies in the thread.

Slack work is available when it's enabled for your organization. If Inlay replies **Couldn't start session** with "Slack agent work is not enabled for this organization", ask your Inlay administrator.

## Connect Slack

Connect Slack last, after a [bench takes jobs](/docs/headless/bench-jobs.md#turn-jobs-on) and the [GitHub repository is connected](/docs/headless/github.md#connect-a-repository) and mapped to an Inlay project. Slack can work only on mapped repositories. The bench's **Connect work** page also links here from its **Slack** step.

You need:

* An owner or admin role in the Inlay organization. An admin role on a team alone isn't enough.
* Permission in Slack to install the app, or to have its installation approved.
* An individual Slack workspace. Organization-wide Enterprise Grid installs aren't supported, and a workspace can belong to only one Inlay organization.

1. In [the Inlay app](/app), select a team in the intended organization and choose **Slack** in the sidebar.
2. On the **Slack Integration** page, choose **Add to Slack**. Select the Slack workspace and approve the requested permissions.
3. Back in Inlay, confirm the page shows **Slack is connected** with the right workspace name. Choose **Refresh** if it doesn't update.
4. In each Slack channel where you want to make requests, invite the app with `/invite @Inlay`. You can also send it a direct message.
5. Check that a bench takes jobs for the mapped repository. On the bench's page, it should be online and show **Takes jobs**.

The connection belongs to the Inlay organization, not only the team you had selected. Requests from the workspace can reach any mapped repository in any of the organization's teams.

## Link your Slack account

Only people with an Inlay account on one of the organization's teams can send work from Slack. Inlay links your Slack account to that Inlay account automatically when the email address Slack has confirmed for you matches it. Otherwise, the first time you mention `@Inlay`:

1. Inlay sends you a message that only you can see, with a **connect your account** link. Open it.
2. On the **Connect Slack** page, sign in to Inlay if asked, check the account shown, and choose **Connect Slack**. Approve the request in Slack.
3. Wait for **Slack connected**. Inlay holds your request for 24 hours and runs it once you're connected and on a team, so you don't need to send it again.

To remove the link, open **Settings** in the Inlay app and choose **Remove Slack link** under **Slack**. Inlay then stops linking that Slack account to you automatically.

Guest accounts, Slack Connect channels and people from other workspaces can't start work.

## Start a task

Mention `@Inlay` with the repository and what you want:

```text theme={"theme":"css-variables"}
@Inlay in acme/firmware, add MQTT reconnect backoff. Keep the message format
unchanged, run the MQTT tests, and report the branch and test results.
```

Inlay picks the repository this way:

* If you name a repository, it uses that one. Use the full `owner/repository` name or a link to the repository, or add `/repo owner/repository` to the message. A short repository name works when only one mapped repository has it.
* If the organization has only one mapped repository, it uses that one.
* Otherwise it asks which mapped repository you mean. Reply in the thread with the name, and Inlay picks up your original request. In a channel, mention `@Inlay` in that reply.

To work on an existing pull request, include its link or its number, such as `PR #42`. Inlay then pushes to that pull request's branch. Say whether the task should change files or only investigate.

Greetings, thanks and questions about Inlay itself get a direct reply without starting a run. Requests about your code run as a job on a bench. To pick the bench, start the request with `on` and its name, such as `@Inlay on lab-mac`.

## Follow a task

Inlay's reply in the thread starts with the task's state, such as **On it.**, **Running** on a bench, or **Done**. See [Status replies](/docs/headless/overview.md#status-replies). Under it:

* **Open in Inlay** opens the request's page in the Inlay app.
* **Cancel** stops the task while it waits or runs. Only the person who asked, or a team admin with a linked Inlay account, can cancel. The reply then reads **Canceled** from this thread.

Your message also shows the task's progress as a reaction: 🚀 while it runs, then ✅ when it's done, ❌ when it fails, or ⏹ when it's canceled.

## Continue in the thread

Once a task has started, reply in the same thread. You don't need to mention Inlay again. Inlay posts progress there and asks when it needs information.

If you reply while a run is active, Inlay adds your message to that run and confirms that it's folding it in. A task holds up to 20 queued messages. Wait for the result before starting dependent work.

A research request can finish with an answer and no code changes. An implementation request reports its branch or pull request and the verification results.

A thread stays open for follow-ups until it has had no activity for 24 hours. After that, or after a run fails, Inlay replies that the session has ended. Send a new message, not a thread reply, to start another task.

## Review changes

Inlay publishes its changes the same way as for a GitHub request: it pushes to the pull request you named, or opens a new one. See [Review what Inlay publishes](/docs/headless/overview.md#review-what-inlay-publishes).

If the target branch changes during the task, request a new run against its current state.

Inlay posts the completion summary in the thread. The bench keeps the run's checkout so follow-ups in the thread can continue from it, until jobs need the disk space.

## Disconnect a workspace

On the **Slack Integration** page, choose **Disconnect** beside the workspace under **Slack workspaces**, then confirm. Inlay stops responding to requests from that workspace. Removing the app from Slack itself is a separate step for a Slack workspace admin.

## Troubleshoot

* **Slack isn't in the sidebar, or Add to Slack is missing:** check that you're an owner or admin of the Inlay organization. Ask your Inlay administrator whether integrations are available for your organization.
* **Slack is not configured:** the Inlay instance you use doesn't have the Slack app set up. Ask your Inlay administrator.
* **This Slack workspace is linked elsewhere:** disconnect the workspace from the other Inlay organization, then connect it here.
* **Slack installation was canceled, or Slack install session expired:** start **Add to Slack** again from the intended organization's **Slack Integration** page.
* **Enterprise Grid installs are not supported yet:** install into an individual workspace instead.
* **Inlay replies Waiting, Queued, or No bench takes work for the repository yet:** no bench has picked up the request. Open the bench's **Connect work** page and finish the steps it lists. See [Bench jobs troubleshooting](/docs/headless/bench-jobs.md#troubleshoot). A request that no bench picks up within 24 hours is canceled.
* **Connect your Inlay account to send Inlay work from Slack:** open the link in the message and choose **Connect Slack**. See [Link your Slack account](#link-your-slack-account). Inlay sends this message at most once a day.
* **Your Inlay account is not on the team this Slack workspace is connected to:** ask your Inlay administrator to add you to a team in the organization. Inlay holds your request for 24 hours and runs it once you're added.
* **Your Inlay account can't send Inlay work from Slack:** ask your Inlay administrator.
* **Request unavailable:** the sender is a guest, is from another workspace, or wrote in a Slack Connect channel. Ask from a full member account in a channel that isn't shared externally.
* **Inlay asks which repository to use, or can't find it:** give its full `owner/repository` name, and check that it's mapped to a project.
* **Inlay doesn't answer a thread reply in a channel:** if no task has started in the thread yet, mention `@Inlay` in the reply.
* **Another task is using the board:** run `inlay bench watch <bench>` to see what holds the board, and wait for it to finish.
* **Couldn't continue session:** the task has ended or is finishing. Start a new message with the repository, the current branch and the remaining work.
* **Slack requests can't reach repos on** a GitHub organization **yet:** your organization uses that GitHub installation through a share. GitHub requests reach those repositories; Slack requests don't yet.

See [Run jobs on a bench](/docs/headless/bench-jobs.md) for setting up the bench that runs the work.


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