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

# Slack

> Trigger Niteshift tasks from Slack. DM the bot for private work or @mention it in a channel for team-visible tasks.

Trigger and interact with tasks from Slack. DM the bot for private tasks, or mention `@Niteshift` in
a channel to start a team-visible one.

## Setup

<Steps>
  <Step title="Install the Slack app">
    Open **Settings → Integrations → [Slack](https://niteshift.dev/settings#integrations)** and click **Add to Slack**. The OAuth flow installs Niteshift workspace-wide.
  </Step>

  <Step title="Invite the bot to channels">
    Run `/invite @Niteshift` in any channel where you want to trigger tasks. The bot only sees channels it's been invited to.
  </Step>
</Steps>

## How to use

**DM the bot** for private tasks. Only you see the conversation:

<div style={{ maxWidth: "520px", margin: "0 auto" }}>
  <Frame>
    <img src="https://mintcdn.com/niteshift/s5DM9Gb7Uab_SaEk/images/slack-dm-task.png?fit=max&auto=format&n=s5DM9Gb7Uab_SaEk&q=85&s=c183dc82f7f9069254b449e6d8e06c8e" alt="Slack direct message with Niteshift showing a user prompt and Niteshift starting work on the task." width="1390" height="844" data-path="images/slack-dm-task.png" />
  </Frame>
</div>

**Mention `@Niteshift` in a channel** for team-visible tasks. The bot starts with your prompt, plus
the thread and recent messages in the channel as context. It will keep you updated in the thread as
it works.

<div style={{ maxWidth: "400px", margin: "0 auto" }}>
  <Frame>
    <img src="https://mintcdn.com/niteshift/s5DM9Gb7Uab_SaEk/images/slack-alert-thread.png?fit=max&auto=format&n=s5DM9Gb7Uab_SaEk&q=85&s=74fff37631cdddd9ba5725b708d3afec" alt="Slack thread with a Datadog alert, a user asking Niteshift to identify a root cause and open a pull request, and Niteshift responding with a root cause and task links." width="1032" height="1978" data-path="images/slack-alert-thread.png" />
  </Frame>
</div>

Reply in the same Slack thread to send follow-up prompts to the same task. The agent picks up your
reply and continues working.

Other members of your team can reply in the same thread to create their own independent tasks.

<Tip>
  Slack is a natural place for "respond to a production alert" workflows. With an [MCP
  server](/customizing-agents/mcp) like Datadog or Sentry posting alerts to a channel, you can reply
  `@Niteshift fix this` and the agent picks up the alert context as part of the prompt.
</Tip>
