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

# Slack

> Connect Depth AI with your Slack workspace

Depth AI's Slack integration allows you to interact with your codebase directly from Slack. You can ask questions about your code, get explanations, and deploy specialized assistants to specific channels.

## Connecting to Slack

<Steps>
  <Step title="Access Slack Integration">
    Navigate to the [Slack Integration settings](https://app.trydepth.ai/new-settings/integrations/slack) in your Depth AI dashboard and click the "Connect" button.

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/slack/connect.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=233d11851a0e92ecd9f4d76a6c79ef7e" alt="Slack integration page with Connect button" width="1219" height="983" data-path="images/slack/connect.png" />
    </Frame>
  </Step>

  <Step title="Authorize Access">
    You'll be redirected to Slack where you'll need to review and accept the permissions that Depth AI requires:

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/slack/slack-redirect.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=285ceae13777e491df889e1878acdc85" alt="Slack permissions authorization screen" width="887" height="842" data-path="images/slack/slack-redirect.png" />
    </Frame>
  </Step>

  <Step title="Confirm Installation">
    Once authorized, you'll see Depth AI listed in your Slack workspace under Apps --> Add apps.
  </Step>

  <Step title="Configure Default Repository">
    Enter your repository URL in the Default Repository field and click Update to save your changes. This is required before you can use Depth AI in Slack.

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/slack/add-default-repo.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=77592bae79f68ff527282540fbd41bbf" alt="Default repository configuration screen" width="1244" height="977" data-path="images/slack/add-default-repo.png" />
    </Frame>
  </Step>
</Steps>

## Using Depth AI in Slack

There are two main ways to interact with Depth AI in Slack:

<Steps>
  <Step title="Using the New Chat Button" icon="message">
    Start a fresh conversation by clicking the "New Chat" button.

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/slack/chat.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=11885770d47ecb9d31603120cbea38a0" alt="New Chat button in Slack" width="1840" height="1646" data-path="images/slack/chat.png" />
    </Frame>
  </Step>

  <Step title="Mentioning Depth AI" icon="at">
    Simply mention `@Depth` in any channel or DM to ask questions about your code.

    <Frame>
      <img src="https://mintcdn.com/depthai/EGK_mLAbRrvUxRQF/images/slack/start.png?fit=max&auto=format&n=EGK_mLAbRrvUxRQF&q=85&s=357484e415c4ec78d22d363661751cd8" alt="Mentioning Depth AI in Slack" width="1662" height="1492" data-path="images/slack/start.png" />
    </Frame>
  </Step>
</Steps>

## Deploying Specialized Assistants

<Card title="Deploy Assistants" icon="slack" href="/guides/assistants">
  You can create specialized assistants trained on specific parts of your codebase and deploy them to different Slack channels.
</Card>

## Chat context

When you start a new chat or mention Depth AI in direct messages, the assistant will use your default repository as its knowledge source.

<Note>
  In channels where you've deployed specialized assistants, the assistant's knowledge base takes precedence over the default repository context. This allows you to have assistants specialized in different parts of your codebase in different channels.
</Note>
