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

# Runs in Slack

> Post runs to a channel, answer their questions there, and tell a working run something from its thread.

Slack is one more place to read and answer a run. The rules about who may do what are the ones of the run's page, and everything done from Slack is on the run's timeline with the person's name.

## Add Sensei to your workspace

An admin or owner of your Sensei account does this once.

**1. Add the app**

Open **Runs**, then **Connections**, then **Add to Slack**. Slack asks which workspace and shows what the app may do. Click **Allow**. You come back to Runs, and Connections shows the workspace.

**2. Choose a channel**

Click **Add channel** and type its name, such as `#sensei-runs`, or paste its link. A public channel is joined for you. For a private one, type `/invite @Sensei` in that channel first.

One channel can take the runs of every project, and a project can have a channel of its own. The channel gets one line saying runs are posted there from now on. Runs started before that are not posted.

With no channel chosen, nothing is posted to a channel, and the person a run waits for is written to directly.

![Slack in Connections: the workspace, you in Slack, and a channel that gets every run](https://mintcdn.com/senselab/7GJRxwA5n_G2FDq5/images/sensei/runs-connections-slack.png?fit=max\&auto=format\&n=7GJRxwA5n_G2FDq5\&q=85\&s=a742220cc194a6ba56d723a58a390770)

One Slack workspace connects to one Sensei account.

## What a run looks like

A run has one message in its channel. Sensei edits it in place as the run moves: queued, running, waiting, and how it ended, with the pull request when there is one.

The thread under it gets one post when the run waits and one when it ends. There is never a post per step.

A channel is shown a run's progress and result. A command, its output, a change, the arguments of an action and the reason for a question are not posted to a channel. A person who was asked directly is shown the reason in their own direct message.

## Answer a question

A question arrives in the thread with three buttons. They do what the same answers do on the run's page.

| Button | An action the run asks about | A change waiting for approval |
| - | - | - |
| Approve | Slack asks once more, then the action is carried out and the run continues | Slack asks once more, then the change is pushed and the pull request opened |
| Say what to do instead | A form opens for your words. The action is not carried out and the run is told what to do instead. | A form opens for your words. Sensei tries again with them in mind. |
| Reject | The action is not carried out | Slack asks once more, then the change is discarded and the run ends |

Once someone answers, the question says who answered and has no buttons. Two people pressing at the same moment answer once; the other is told who answered. A button on an old message cannot answer a later question.

## Say something from the thread

While a run works, reply in its thread and mention the app:

```text theme={null}
@Sensei also cover the empty file
```

Your reply gets 👀 at once and ✅ when Sensei has read it. The run's timeline shows what you said, in Slack. A reply without the mention is not passed on.

## Paste a link to a run

A run's address pasted in a channel Sensei is in gets a preview: the task, where the run stands and how it ended. The preview is shown when the person who pasted it is on your Sensei team.

## Who can answer from Slack

Being in the channel is not permission. A click or a mention counts when the Slack member is a person of your Sensei account who can answer runs (developer, admin or owner), or a guest who was asked to answer that run.

Everyone else gets a reply only they see, saying why, and nothing changes.

### Connect your Slack

Sensei has to know which person of your team a Slack member is. It knows when the address Slack holds for you, confirmed in Slack, is the address you sign in to Sensei with.

When the two differ, connect them once: **Connections**, then **You in Slack**, then **Connect your Slack**. You sign in with Slack, which tells Sensei which member you are and nothing else, and you come back with the row showing your Slack name.

Each person does this for themselves, whatever their role. It changes who a member is, not what they may do. The row is yours: every person of your team sees their own name there, or the button to connect.

Someone who answers from Slack before connecting is told so in a reply only they see, with a link that opens Connections on that row.

## Remove Sensei from a workspace

An admin clicks the bin beside the workspace in Connections. Sensei leaves the workspace and forgets its channels and who connected their Slack. Messages already posted stay where they are.

A workspace admin can also remove the app in Slack. Connections then says to add it again.


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