# Slack setup

Go to <https://api.slack.com/apps>

Click create app

<figure><img src="/files/QBRHqtIE79DBvrVnNKxj" alt=""><figcaption></figcaption></figure>

Select 'From scratch'.

<figure><img src="/files/J5l6k5BWhyux9YwawfSi" alt=""><figcaption></figcaption></figure>

Enter a name for your app, like *midio-slack-bot*, and pick a workspace as an owner of the app.

<figure><img src="/files/mBK3io9UpJGFo12ikiiS" alt=""><figcaption></figcaption></figure>

Select your newly created app from the list, and scroll down to the **'event subscriptions'** menu item in the left menu bar.

<figure><img src="/files/8ntvdU6Erc1pC6JKrkC7" alt=""><figcaption></figcaption></figure>

Click on the switch to enable events for this app.

A text box expecting a URL appears; we will fill in this later.

Scroll down a bit and, expand the **'Subscribe to bot events'** header.

Click the **'Add Bot User Event'** button, and select **'message.channels'**.

<figure><img src="/files/f2a0JCNyZYyVT5eGqFGo" alt=""><figcaption></figcaption></figure>

Remember to save your changes by clicking the **'Save changes'** button in the bottom right corner.


---

# 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://docs.midio.com/midio-docs/tutorial/slack-setup.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.
