> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-automate/19.latest/add-ons/slack/connection.md).

# Create a Slack Connection

Create a Slack connection by authenticating with your Slack workspace via OAuth.

Before an automation can post to Slack, you must create a **Slack** connection and allow it on the workspace that will use it. The connection is authenticated with Slack via the OAuth flow.

## Create the Connection

1. Go to the **Automation** section in the backoffice.
2. Go to **Connections**.
3. Click **+**.
4. Select **Slack** from the connection type picker.
5. Enter a name, for example `Team announcements`.
6. Click **Authenticate**. A pop-up opens to the Slack authorization page.
7. Pick the workspace and approve the requested scopes.
8. After the pop-up closes, click **Save**. Save within 15 minutes of signing in, or authenticate again.
9. Click **Test connection** to confirm the access token works.

{% hint style="info" %}
If the browser blocks the Slack pop-up, select **Continue in this tab** to sign in within the same tab. See [Authenticate an OAuth Connection](/umbraco-automate/19.latest/backoffice/connections.md#authenticate-an-oauth-connection).
{% endhint %}

If Slack hasn't been set up on this server yet (no client ID or secret configured in `appsettings.json`), the **Authenticate** button is disabled. A warning explains what an administrator needs to add.

## Allow the Connection in a Workspace

1. Open the workspace that will own the automation that uses Slack.
2. On the **Settings** tab, find **Allowed Connections** and pick the Slack connection.
3. Save the workspace.

The Slack connection now appears in the connection picker on any **Send Slack Message** step inside that workspace.

## Re-authenticate

Slack access tokens are refreshed automatically. If a token is revoked from the Slack side, **Test connection** will fail. Click **Authenticate** again to re-authorise.

## Next Steps

{% content-ref url="/pages/ld5kFer5LzQWsGZ3vGk2" %}
[Actions](/umbraco-automate/19.latest/add-ons/slack/actions.md)
{% endcontent-ref %}


---

# 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://docs.umbraco.com/umbraco-automate/19.latest/add-ons/slack/connection.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.
