> For the complete documentation index, see [llms.txt](https://docs.kangal.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kangal.dev/integrations/slack.md).

# Slack

The Slack driver validates a bot token and identifies the connected workspace. Keep bot permissions minimal and add new scopes only when a Kangal workflow explicitly requires them.

## Required values

| Type          | Field       | Example                 |
| ------------- | ----------- | ----------------------- |
| Configuration | `api_url`   | `https://slack.com/api` |
| Secret        | `bot_token` | `xoxb-...`              |

## Provider preparation

1. Create or select a Slack app for the target workspace.
2. Add only the bot scopes required by the intended workflow.
3. Install or reinstall the app to the workspace after changing scopes.
4. Copy the bot token and keep it in a secret manager.

## Configure Kangal

1. Open **Integrations** and select **Slack**.
2. Keep the default API URL for Slack Cloud.
3. Enter the bot token in the secret field.
4. Save the installation and run a manual sync.

## Common failures

* **invalid\_auth:** malformed, revoked, or expired token.
* **account\_inactive:** the app or installing identity is no longer active.
* **missing\_scope:** add the required bot scope and reinstall the app.
* **wrong workspace:** reinstall the app in the intended workspace and rotate the token.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.kangal.dev/integrations/slack.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
