The Slack Post Message Action Component is to post a message to Slack using the Slack API. It can be useful to debug Actions or notifying people. It can be used for sending messages to #channels as well as @people .
|Channel||True|| The #channel or
|Text||True||The text you like to send|
|Slack Token||False||Slack Token from the Base Property Profile|
|Token||True||Your Slack Token, if not loaded from the Base Property Profile|
Use the base Base Property Profile property to read the values such as the token from the settings rather than specifying the details within the component.
Apps on Slack
First you will need to create an app on Slack in order to interact with your workspace. You can follow the instructions here to create your Slack app: https://api.slack.com/apps
You will need to:
- Create an App on Slack
- Add the
chat:write(or any other scope you like to use) to “Scopes” under “OAuth & Permissions” in the Features menu.
- Hit the “Install App to Workspace” button in “OAuth Tokens & Redirect URLs”
- Add the app to the channel you like it to post to
For more complex scopes and permissions, please refer to the Slack Documentation.