Description
Slack Post Message Action Component allows you to use the Slack API to post messages to a Slack channel specified in the component's properties. It is useful for debugging actions or notifying people. It can also be used to send messages to #channels and @people.
Create a new app from the Slack API site and add "chat:write:bot" to the "Scopes" found under the "OAuth & Permissions" menu. Once added, you will be able to click the "Install App to Workspace" button under "OAuth Tokens & Redirect URLs". Please install the app (grant permissions) to obtain the "OAuth Access Token".
Specify this token in the Token property of the component.
Output Payload | Description |
---|---|
cv.Payload | Outputs the payload from the previous component as-is. (Pass-through) |
Component Properties
Property Name | Description |
---|---|
Channel | Specify the Slack channel |
Text | Specify the message text to send |
Timeout | Specify the send timeout period |
Token | OAuth Access Token set in Slack |