This article explains how to connect the Slack widget to your Slack channel, allowing you to display its content on your screen.
Create the Slack integration- Visit https://api.slack.com/apps while logged in as a workspace administrator.
- Click "Create an App" or "Create New App".
- Click "From scratch".
- Under "App Name," enter a name for your app, such as "Signage Messages."
- Next, select the required workspace (usually, there will be only one).
- Click "Create App".
- In the left-hand menu, click "OAuth & Permissions."
-
Scroll down to the "Scopes" section and click "Add an OAuth Scope" under "Bot Token Scopes."
- Add the following scopes
- channels:history
- channels:read
- files:read
- groups:history
- groups:read
- team:read
- users:read
-
In the left-hand menu, click "Install App," then click the "Install to [your workspace]" button.
-
You will be presented with a confirmation screen. Click "Allow."
- Copy the value below "Bot User OAuth Token" and save it in a text file
Copy the value shown under "Bot User OAuth Token" and save it in a text file for later use.
Bot User OAuth Token
Open MagicINFO Widget Marketplace
In the Widget Marketplace, create an instance of the Slack widget. Enter the "Bot User OAuth Token" into the "Token" field.
The "Channel" property is a text field where you can enter the name of a Slack channel you previously created. Ensure the channel exists and that you have entered its name correctly.
Once the widget is created, you can copy the URL and paste it into your MagicINFO environment, then schedule it as a content item. Note that this requires MagicINFO Premium.
If the channel you want to display messages from is private (indicated by a lock symbol), you’ll need to add the app to that channel. Doing this from within the Slack app may not show your newly created app due to caching issues, so it's easier to add it via a browser.
- Open your workspace in the browser: https://yourworkspace.slack.com/
- Navigate to the channel where you want to add the app.
- Click the channel details button below the search field, then click the arrow next to the channel name to expand the menu.
- Click the "Integrations" tab.
- In the Apps section, click "Add apps."
- Search for your newly created app (e.g., "Signage Messages").
- Click the "Add" button next to the app name.
Once added, the channel will immediately display a message notifying other users that the app has been added. The channel overview will also show the connected app.