> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/other-integrations/how-to-connect-your-bot-to-slack.md).

# How to Connect Your Bot to Slack

#### Introduction <a href="#introduction" id="introduction"></a>

Integrating real-time updates from your Bot into Slack is made simple with webhooks. This method streamlines the process of delivering instant notifications directly to Slack.

The setup process is uncomplicated: start by creating a Slack App, then use it to generate a unique webhook URL. Follow these instructions to get your Webhook URL for sending Slack notifications.

Ready to begin?

#### Step 1: Create a Slack App <a href="#step-1-create-a-slack-app" id="step-1-create-a-slack-app"></a>

1. Go to the Slack API website.
2. Click "Create New App" and choose "From scratch."
3. Name your app, select a workspace, and click "Create App."
4. Consider using a sandbox environment to keep test messages separate from your main workspace.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FvwQQOo4wSfUuvgjRfxAs%2F2wvkwr-image.png?alt=media&amp;token=e65b4833-dbf6-428b-ac1b-752f8b671222" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FP7Rgzhu3SFXEkLNzq2oK%2Fcreate-app-4683149a4486951de57bd67616802d9c%20(1).png?alt=media&amp;token=ffd65187-4753-4673-b06a-c55d9c2e3085" alt=""><figcaption></figcaption></figure>

#### Step 2: Enable Incoming Webhooks <a href="#step-2-enable-incoming-webhooks" id="step-2-enable-incoming-webhooks"></a>

1. In your app's settings, locate the "Incoming Webhooks" section.
2. Turn on this feature to activate it.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2Fw9T3oqWBWIvDFBjSuWhS%2F2wvl4h-image.png?alt=media&amp;token=77ae4dbd-a49b-4dc9-b6ad-799749845b48" alt=""><figcaption></figcaption></figure>

#### Step 3: Create an Incoming Webhook <a href="#step-3-create-an-incoming-webhook" id="step-3-create-an-incoming-webhook"></a>

1. Click "Add New Webhook to Workspace."
2. Choose a channel for the webhook to send messages to and authorize the app.
3. You will be redirected back to your app settings.
4. The webhook URL will appear under "Webhook URLs for Your Workspace."

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FANMQBSkoYswidUrmvSdI%2F2wvl90-image.png?alt=media&amp;token=4b17a008-c12a-4726-8e85-e23e0f08b900" alt=""><figcaption></figcaption></figure>

#### Step 4: Add the Web Request Action within your Chatbot Flow[#](https://gethelp.tiledesk.com/articles/how-to-connect-your-bot-to-slack/#step-4-add-the-web-request-action-within-your-chatbot-flow) <a href="#step-4-add-the-web-request-action-within-your-chatbot-flow" id="step-4-add-the-web-request-action-within-your-chatbot-flow"></a>

Now, you've copied your webhook and all you need to do is paste it into the dedicated Chatbot block containing the Web Request, as below.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FvxOZYlvBAOdo3u4aVmsF%2F2wvli0-image.png?alt=media&amp;token=793bdf9d-58bd-4957-863a-a548e34ec593" alt=""><figcaption></figcaption></figure>

In the “Body” section of the Web Request, pick the Json option and draft your alert as you deem appropriate.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FLkOaLbo0Cq2Lp6HLZSMg%2F2wvmaz-image.png?alt=media&amp;token=83d09a62-609b-44be-b012-922967118eed" alt=""><figcaption></figcaption></figure>

And that's it! Your Incoming Webhook is now set up and linked to the selected Slack channel.

Thoughts on this? Send us your feedback to <info@tiledesk.com>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.tiledesk.com/other-integrations/how-to-connect-your-bot-to-slack.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
