# Set Up a Slack Channel and Share an Image

Source: https://openflow.run/ja/templates/set-up-slack-channel-and-share-image/
Content language: en
Template revision: d291811835b4d4defcd934c79186ed436e74219f

コミュニケーション

Create a public Slack channel, invite a member and post a welcome image. Upload that image to a separate channel.

[Open Flow で使用](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2Fd291811835b4d4defcd934c79186ed436e74219f%2Fworkflows%2Fset-up-slack-channel-and-share-image%2Ftemplates%2Fset-up-slack-channel-and-share-image.openflow.json)

*   [Open Flow JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/set-up-slack-channel-and-share-image/templates/set-up-slack-channel-and-share-image.openflow.json)
*   [n8n JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/set-up-slack-channel-and-share-image/templates/set-up-slack-channel-and-share-image.n8n.json)

![Open Flow の Set Up a Slack Channel and Share an Image ワークフロー](https://openflow.run/template-previews/set-up-slack-channel-and-share-image/light.webp)

Create a public Slack channel, invite a member and post a welcome image. Upload that image to a separate channel.

## Setup

1.  Install a Slack app in the workspace and obtain an authorized **user OAuth token**. Grant the user scopes `channels:write`, `chat:write`, and `files:write`. The user must be able to create public channels, invite the selected member and share files in the separate destination channel. [Create a channel](https://docs.slack.dev/reference/methods/conversations.create/) · [Invite a member](https://docs.slack.dev/reference/methods/conversations.invite/)
2.  Bind the same secret Variable `SLACK_USER_TOKEN` to **Create public channel**, **Invite the member**, **Post welcome to new channel**, **Allocate Slack file upload**, and **Share in separate channel**. Enter the token alone, without the Bearer prefix.
3.  In **Channel and image settings**, enter an unused channel name, the workspace member ID, the existing file destination channel ID, a direct public HTTPS image URL and a filename with the corresponding PNG or JPEG extension. Use an image you have permission to share, up to 1 MiB. Run the workflow manually.

## Behavior

The workflow creates a public channel, invites the configured member and posts a welcome with the image URL in the new channel. After Slack confirms the message, the workflow downloads that same image and shares its bytes in the separate destination channel. The output contains the new channel ID, welcome message timestamp, uploaded file ID and file destination channel ID. [Slack external file upload](https://docs.slack.dev/messaging/working-with-files/)

When a step fails, later steps stop. Slack can accept a change even if the response never arrives. Check the workspace before running again. A successful earlier step remains in place.

In n8n

In **Channel and image settings**, fill in the same five settings. Assign one Header Auth credential to **Create public channel**, **Invite the member**, **Post welcome to new channel**, **Allocate Slack file upload**, and **Share in separate channel**. Set the header name to `Authorization` and the value to `Bearer YOUR_SLACK_USER_TOKEN`. Run manually. The image download and byte upload use the URLs configured or returned during the run and carry no Slack authorization header.

Inspiration & credits

## Changes to the source

Use Slack’s current external upload API and check receipts before each subsequent operation. The new channel and the file destination remain separate.

Adapted from [Create a channel, invite users to the channel, post a message, and upload a file](https://github.com/Zie619/n8n-workflows/blob/ae8cf6dc5b873cbb4f74587aa9180ed3a9f70682/workflows/Manual/0207_Manual_Slack_Create_Webhook.json) in [Zie619/n8n-workflows](https://github.com/Zie619/n8n-workflows). Attribution: Zie619 / n8n-workflows.

The collection’s [MIT notice](https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/LICENSE) is pinned at a later revision. This is the collection notice at that revision; it does not establish a separate original template author’s license. Our changes are listed above; see [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/README.md#licensing).

> MIT License
> 
> Copyright (c) 2025 Zie619
> 
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
> 
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
> 
> THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

## 必要な設定

*   Slack workspace app with an authorized Slack user token for public channel management, messages and files
*   Public HTTPS PNG or JPEG and the separate destination channel

*   slack
*   channels
*   onboarding
*   file upload

[GitHub で見る](https://github.com/oomol-lab/awesome-workflow-templates/blob/d291811835b4d4defcd934c79186ed436e74219f/workflows/set-up-slack-channel-and-share-image/README.md)
