The Slack Files Upload Action Component allows you to post messages and files to a Slack channel specified in the component’s properties using the Slack API. It is useful for debugging actions and notifying people. It can also be used to send messages to #channels and @people.
Please Note: Slack has updated its API. Depending on your Slack account’s setup and whether it has access to Sack’s legacy infrastructure, you may refer to the new way.
Please create a new app from the Slack API site and add chat:write:bot
and files:write:bot
to the Scopes
located at OAuth & Permissions
in the Features menu.
Once added, the Install App to Workspace
button will become clickable at OAuth Tokens & Redirect URLs
, allowing you to install the app (grant permissions).
Once granted
, the OAuth Access Token
token will become available for use.
Specify this token in the Token property of the component.
Output Payload | Description |
---|---|
cv.Payload |
Outputs the previous component’s output payload as-is (pass-through) |
Component Properties
Property Name | Description |
---|---|
File Name | Specify the file to send along with the message |
Title | Specify the title of the file |
Channel | Specify the Slack channel |
Comment | Specify the message text to send |
Timeout | Specify the message send timeout duration |
Token | Specify the OAuth Access Token set in Slack |
The reference path for files not specifying a file path is actmgr/data
, but for file names specifying a path, refer to here.
Need more help with this?
Join our slack community for help