The Slack Files Upload action component can use the Slack API to post messages and files to a Slack channel. The authentication happens via the Slack authentication token, which you can retrieve from your Slack Admin console.
The Slack Files Upload component can be useful to debug actions and notify people. You can send messages to #channels or @people directly.
To get started, create a new app in your Slack API admin and add “chat: write: bot” and “files: write: bot” to “Scopes” under “OAuth & Permissions” in the Features menu. You can follow the instructions from the Slack Post Message Component for more details on how to retrieve the authentication token.
Once you have your token, enter it in the Token property as seen below.
For the paths required, you can refer to the documentation how to handle paths in Gravio
You can also refer to a Base Property profile if you wish to define the settings on HubKit level rather than Component level.
Output payload | Description |
---|---|
cv.Payload | Outputs the output payload of the previous component as is. (Pass through) |
Component properties
Property name | Description |
---|---|
file name | Specify the file to send with the message |
title | Specify the title of the file |
Channel | Specify Slack channel |
comment | Specify the message text you want to send |
time out | Specifying the transmission timeout time |
token | OAuth Access Token set in Slack |
Need more help with this?
Join our slack community for help