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.

Flux App showing an Event Source connected to a Channel that in turn is connected to multiple Actions.

Add an Action to a Channel

Each Flux App can have up to 10 Actions.

To add an action to a channel:

  1. Open the Studio tab of the Flux App in Soracom Flux Studio.

  2. Click on the channel where you want to add an action.

  3. Click on Actions tab and then Add Action.

    Actions tab of a channel indicating how to add an action.

  4. 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.
  5. 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.

  6. Configure the action parameters.

    Configuration parameters vary depending on the action. For more details, refer to the individual action pages below:

    To pass action output data to the next channel, refer to Enable Republishing of Action Output.

  7. 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:

  1. Open the Studio tab of the Flux App in Soracom Flux Studio.

  2. Click on the action you want to delete.

  3. Click (More) and then Delete.

    An Action of a Flux App being deleted.

  4. 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.