# 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="/files/SbgMEdpApnUGWakAvOCS" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Tw1VUrIiUtMvkClaa7Rf" 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="/files/gq3UAWCfzOfoDS5p2Qw1" 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="/files/AouyRVPUVtMdQkZi9w7I" 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="/files/A3pht32L5sbnfcYXtGt0" 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="/files/3OpntDVooe1wdyQHgE82" 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>&#x20;


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
