Soracom Flux
Slack Notification Action
The Slack Notification Action sends a message to the specified Slack Incoming Webhook URL.
Configuration
Condition
In the Action Condition section, you can specify the conditions under which the action will be executed using the values (Message or Context) from the event source to the channel. For more details on the expressions you can input, please refer to Action Config Expressions.
Config
URL
Enter the Slack Incoming Webhook URL.
Payload
Enter the content to be sent to the Slack Incoming Webhook. Click Advanced Settings or Simple Mode to specify the format of the content to be sent.
- Simple Mode: The message you enter will be sent as plain text to the Incoming Webhook URL, as described in Slack API's Use your incoming webhook URL to post a message.
- Advanced Settings: The content will be sent as the HTTP body to the Incoming Webhook URL, as described in Slack API's Sending messages using incoming webhooks.
Additionally, you can specify the values from events or messages (Message or Context sent to the channel) in Payload. For more details on the expressions you can input, please refer to Action Config Expressions.
Output
Configure how to handle the output data of the action. Refer to Enable Republishing of Action Output for more details.
Output Data of the Action
The output data of the Slack Notification Action is as follows:
- If a successful response (
20x
response code) is returned from the Slack API, the output isok
. - If a non-successful response code is returned from the Slack API, the output is the error message returned by Slack.