Soracom Flux
Actions
Actions can be added to channels to conditionally process the event messages received from an event source or other channels. Multiple actions can be added to a channel, and using Action Conditions, each action conditionally executes depending on the input data. In the example below, we can see a Flux App that conditionally triggers three actions when a file is uploaded to Soracom Harvest Files.
Add an Action to a Channel
Each Flux App can have up to 10 Actions.
To add an action to a channel:
-
Open the Studio tab of the Flux App in Soracom Flux Studio.
-
Click on the channel where you want to add an action.
-
Click on Actions tab and then Add Action.
-
Select the action and click OK.
- AI: Specify an AI model and prompt to instruct or query the AI model, and send the response to the next channel. For more details, refer to AI Action.
- Republish: Convert the input data and send it to the next channel. For more details, refer to Republish Action.
- Simple Object Detection: Perform simple detection of objects in a still image and send the object-related information to the next channel. For more details, refer to Simple Object Detection Action.
- Webhook: Send an HTTP request to a specified URL. For more details, refer to Webhook Action.
- Slack Notification: Send a message to the specified Slack Incoming Webhook URL. For more details, refer to Slack Notification Action.
- LINE Notification: Send a message to the specified LINE Notify URL. For more details, refer to LINE Notification Action.
- Email Notification: Send an email to the specified email address. For more details, refer to Email Notification Action.
-
Optionally, define an Action Condition expression to be evaluated to determine whether the action should execute.
Using event message data as input, Action conditions allow you to specify an expression that can evaluate whether the Flux App should execute using based on your data. For more details, refer to Action Condition Expressions.
-
Configure the action parameters.
Configuration parameters vary depending on the action. For more details, refer to the individual action pages below:
- AI Action
- Republish Action
- Simple Object Detection Action
- Webhook Action
- Slack Notification Action
- LINE Notification Action
- Email Notification Action
To pass action output data to the next channel, refer to Enable Republishing of Action Output.
- Click Create to add the action to the channel.
You will be returned to the Actions tab of the channel, where you can see the newly added action.
Remove an Action from a Channel
For actions that republish their output to other channels, you must first disable republishing to the output channel or delete the output channel directly. For more details, refer to Disable Republishing of Action Output.
To remove an action from a channel:
-
Open the Studio tab of the Flux App in Soracom Flux Studio.
-
Click on the action you want to delete.
-
Click … (More) and then Delete.
- Click Delete action to confirm the deletion of the action.
You will be returned to the Actions tab of the channel, where the deleted action will no longer be displayed.