# Slack integration: notify, post and capture

Connect your own Slack app to post from automations, land thread replies on tasks, get notifications and agent questions as DMs, and capture tasks.

URL: https://docs.truetask.io/integrations/slack

Connect Slack once and Truetask can post to a channel from an automation, put a thread reply on the task it answers, direct-message people their notifications, and turn a Slack message into a task.

Slack connects with a Slack app of your own: you create it at api.slack.com, install it in your Slack workspace, and paste its bot token and signing secret into Truetask.
Only a workspace owner or admin connects Slack.

## What connecting gives you

| Feature | Where it is covered |
| --- | --- |
| A **Send Slack message** step and a **Slack received** trigger in automations | [In automations](https://docs.truetask.io/integrations/slack#in-automations) |
| Thread replies posted on the task they answer | [Thread replies land on the task](https://docs.truetask.io/integrations/slack#thread-replies-land-on-the-task) |
| Notifications as Slack direct messages, for whoever turns them on | [Notifications in Slack](https://docs.truetask.io/integrations/slack#notifications-in-slack) |
| Agent questions and done proposals with buttons | [Agent questions and done proposals](https://docs.truetask.io/integrations/slack#agent-questions-and-done-proposals) |
| A task captured with `/truetask`, a message shortcut or a reaction | [Capture a task from Slack](https://docs.truetask.io/integrations/slack#capture-a-task-from-slack) |
| Repository events posted through the connection, with no webhook URL | [Repository notifications through Slack](https://docs.truetask.io/integrations/slack#repository-notifications-through-slack) |
| Your daily brief as a direct message | [Your brief in Slack](https://docs.truetask.io/integrations/slack#your-brief-in-slack) |

## Create the Slack app

Do this at api.slack.com before you open the Slack card, because Slack issues no bot token until the app has been granted a permission.

1. At api.slack.com/apps, create an app in your Slack workspace, or open the one you have.
2. Under **OAuth & Permissions**, add the bot token scopes below.
3. Install the app to your workspace.
4. Copy the **Bot User OAuth Token** from **OAuth & Permissions** and the **Signing Secret** from **Basic Information**.

Leave **Event Subscriptions** for later: Truetask hands you the Request URLs once you have connected.

| Scope | What Truetask uses it for |
| --- | --- |
| `chat:write` | Post a message |
| `chat:write.public` | Post to a public channel the app was not invited to |
| `channels:read` | List public channels for the channel picker |
| `groups:read` | List the private channels the app is in |
| `channels:history` | Read a thread reply in a public channel |
| `groups:history` | Read a thread reply in a private channel |
| `app_mentions:read` | Answer an @mention of the app |
| `reactions:read` | Capture a task from a reaction |
| `users:read` | Show a sender's name |
| `users:read.email` | Match a Slack person to a Truetask person |
| `im:write` | Open a direct message for a notification |
| `commands` | The `/truetask` slash command |

Every scope is used: leave one out and the feature it serves stops working.

## Connect Slack

Open the **App menu**, choose **Integrations** under **Extend**, then the **Slack** card under **Messaging**.
The connect flow has three steps.

### 1. Credentials

| Field | What it is |
| --- | --- |
| **Bot token** | The Bot User OAuth Token. It starts with `xoxb-` |
| **Signing secret** | What Slack signs its requests with. Truetask uses it to verify that replies, button presses and the slash command really came from Slack |

The step lists the **Bot token scopes** to grant, and its **Where to find this** panel carries **Ask an assistant**, which includes the scopes in the question it writes.

### 2. Check

Truetask verifies the token with Slack and shows what it found: the Slack workspace, the app's bot and how many channels the app can post to.

If Slack has not granted the app every scope Truetask needs, an amber notice names the missing ones.
Add them under **OAuth & Permissions** and reinstall the app; the connection still stands meanwhile.

### 3. Choices

Pick the **Default channel**: where automations post unless a step names another channel.
The list holds the channels the app can see.
A public channel is joined when you finish.
A private one needs the app invited with `/invite` first, and the picker says so.

Below the picker, **Replies and commands** hands you three addresses and the scopes again.
In api.slack.com, in your app:

1. **Event Subscriptions**: paste the **Event Request URL**, then subscribe to the bot events `message.channels`, `message.groups`, `app_mention` and `reaction_added`.
2. **Interactivity & Shortcuts**: paste the **Interactivity Request URL**, and add a message shortcut called **Send to Truetask**.
3. **Slash Commands**: add `/truetask` with the **Slash command Request URL**, then reinstall the app.

Slack checks the Event Request URL the moment you paste it.
Once it has, the line beside **Replies and commands** changes from **Finish the event subscription in Slack** to **Slack has verified the Request URL**.

Choose **Finish** to save the channel.

## Managing the connection

Open the Slack card again to see where it stands.

![Truetask Slack card once connected, with its account, channel, replies and last check, and the Check connection, Change channel and Event setup actions](https://docs.truetask.io/screenshots/integrations-slack.webp)

| Row | What it shows |
| --- | --- |
| **Account** | The Slack workspace the app is installed in |
| **Channel** | The default channel, or **Not chosen** |
| **Replies** | **Land on the task** once Slack verified the Request URL, otherwise **Finish the event subscription in Slack** |
| **Permissions** | Shown once Slack has reported the scopes the token carries: **All granted**, or **Some missing** with the scopes named under the rows |
| **Last checked** | When the token was last verified |

| Action | What it does |
| --- | --- |
| **Check connection** | Verifies the token again and re-reads the channels and the scopes Slack has granted |
| **Change channel** | Picks the default channel again from what Slack has today |
| **Event setup** | Shows the three Request URLs and the scopes again, for when you rebuild the Slack app |
| **Disconnect** | Removes the stored token and secret. Your Slack app is left as it is |

A token Slack revoked turns the card to **Needs attention**, and **Update credentials** takes a new one without losing the channel.
Connecting a different Slack workspace forgets the old one's channel and its matches between people.

## In automations

Connecting adds a step and a trigger to the automation palette.
See [Actions and logic](https://docs.truetask.io/automations/actions#communication) and [Triggers](https://docs.truetask.io/automations/triggers#integrations) for the steps and triggers beside them.

### Send Slack message

| Field | What it does |
| --- | --- |
| **Channel** | Where the message goes. **The connection's default channel** follows whatever the workspace picks later |
| **Message** | The text, with placeholders for any task or board field. Markdown is turned into Slack's own formatting |
| **Post as** | **A new message**, or **A reply in the thread** of the Slack message that started this run. A run nothing in Slack started posts a new message |

A channel takes at most 20 messages an hour from automations, so a looping workflow cannot flood it.
After the step, `{slack_sent.permalink}` is the link to the message just sent and `{slack_sent.channel}` the channel it went to.

### Slack received

| Field | Options |
| --- | --- |
| **Start on** | **Replies to this board's messages** (a thread reply under a message this board posted; that task becomes the focus of the run), **Mentions of the app**, or **Any message the app can see** |
| **Channel** | **Any channel**, or one channel only |

The message is available to the steps that follow:

| Placeholder | Value |
| --- | --- |
| `{slack.from_name}` | Sender name |
| `{slack.from}` | Sender ID |
| `{slack.body}` | Message text |
| `{slack.channel_name}` | Channel name |
| `{slack.channel}` | Channel ID |
| `{slack.permalink}` | Link to the message |
| `{slack.kind}` | `message` or `mention` |
| `{slack.thread_ts}` | The thread it sits in |

Truetask ignores its own messages, so a workflow that answers a Slack message never starts itself again.
See [Placeholders](https://docs.truetask.io/automations/placeholders).

## Thread replies land on the task

When an automation posts a message about a task, a reply in that message's thread is posted on the task as a comment headed **Slack reply from** and the sender's name.
The match is exact: the thread belongs to the one message the board posted, so a reply never lands on the wrong task.
It works whether or not any automation listens, as long as the app is in the channel and the event subscription is finished.

## Notifications in Slack

Once Slack is connected, everyone gets a **Slack direct messages** section in their profile's **Notifications** pane, with the same four switches as email: **Assignments**, **Mentions**, **Due Dates** and **Agents**.
They are off until you turn one on.

Truetask finds you in Slack by your email address, so there is nothing to link.
Your Slack account has to use the same email address as your Truetask account; if they differ, nothing is sent and nothing fails.
See [Notifications](https://docs.truetask.io/collaboration/notifications).

## Agent questions and done proposals

AI agents ask when they are blocked and [propose work as done for a person to approve](https://docs.truetask.io/agents/human-in-the-loop), and Slack can carry both to you.
With **Agents** on for Slack, two notifications arrive with buttons you can act on without opening Truetask:

| Notification | Buttons |
| --- | --- |
| An agent's blocking question | One button per option, up to five, with the recommended one highlighted. A question with more options is answered on the task |
| An agent's done proposal | **Approve**. Sending a proposal back needs a reason, so that is done on the task |

Pressing a button replaces the message with what happened: **Approved.**, **Answered.**, **Someone already handled this.**, or **This button has expired. Open the task to act.**

Each button works once and acts as the person it was sent to, which is why buttons only ever come in a direct message and never in a channel.

## Capture a task from Slack

Three ways turn a Slack message into a task in your own [Inbox](https://docs.truetask.io/tasks/inbox), assigned to you:

| Way | What becomes the task |
| --- | --- |
| `/truetask write the release notes` | The text after the command |
| The message shortcut **Send to Truetask**, from a message's menu | That message |
| Reacting with `:inbox_tray:` | The message you reacted to |

The first line of the message becomes the title, up to 120 characters.
The description says who wrote it in Slack, links back to the message, and holds the whole text.
The command and the shortcut answer only you, with the task's key, for example "Captured as DEVE-123 in your inbox."

Capture needs a Truetask account with the same email address as your Slack account.
Without one, the command and the shortcut tell you they could not find a Truetask account with your Slack email address, and a reaction does nothing.

## Repository notifications through Slack

A linked repository can post its pull request, issue, CI, commit and comment events to Slack through this connection instead of a pasted webhook URL.
In the repository's settings in the Code view, under **Slack and Teams notifications**, set **Channel type** to **Slack (connected workspace)**, then pick a **Channel** or leave **The connection's default channel**.
That option appears once Slack is connected.
See [Code view](https://docs.truetask.io/git/code-view#slack-and-teams-notifications).

## Your brief in Slack

In your profile's **Notifications** pane, under **Daily brief**, **Delivery** offers **Slack direct message** once Slack is connected.
That sends your brief as a direct message only, not in the app and not by email.
See [Your daily brief](https://docs.truetask.io/collaboration/notifications#your-daily-brief).

## What your instance needs

Slack calls three addresses on your instance, built from its public URL: one for events, one for buttons and the shortcut, and one for the slash command.
Every request is checked against the signing secret, and one signed more than five minutes earlier is refused.
Posting, direct messages and the checks only need your instance to reach slack.com.

> **Self-hosted only**
>
> Thread replies, buttons, the shortcut, reactions and the slash command need Slack to reach your instance, so its public URL has to be reachable from the internet.
> Posting from automations and direct messages work without that.
> See [Network](https://docs.truetask.io/self-hosted/network).

## From an AI client

An AI client connected through [MCP](https://docs.truetask.io/agents/mcp) with an owner's or admin's token can connect Slack, choose the channel, read the Request URLs and scopes, check the connection and disconnect it.

## Related

- [Integrations](https://docs.truetask.io/integrations/)
- [Twilio and WhatsApp](https://docs.truetask.io/integrations/messaging)
- [Actions and logic](https://docs.truetask.io/automations/actions)
- [Triggers](https://docs.truetask.io/automations/triggers)
- [Notifications](https://docs.truetask.io/collaboration/notifications)
