IoT Platform User Guide
Workflows
Rule-based automation with input triggers, SQL conditions, and notification or integration actions.
The Workflows module is where rule-based automation is created and operated. A workflow combines an input trigger (For), optional SQL logic (If), and one or more actions (Then) that execute notifications or integrations. This structure supports both event-driven and data-source-driven patterns and is designed to scale from simple notifications to richer operational automations.
Compared with the older tile-era guidance, the current platform centers workflow management in a card-based listing view with quick controls for search, sort, type filtering, and layout mode. Opening a workflow takes you into an editor with clear For, If, and Then cards and a right-side configuration panel. The editor also supports Run Once, Test, schedule management, and activity logs.
Open Workflows and Understand List Controls
To open Workflows and use list controls, do the following:
- In the left sidebar, click
WorkflowsunderOperations. - Confirm the page header shows
Workflowswith aCreatebutton. - Use
Search workflowsto find workflows by name. - Use
Sortto choose:NewestOldestName (A-Z)Name (Z-A)
- Use
Typeto filter workflow cards:AllDevice GroupDevice TemplateWebhookEventAlert
- Use the view toggle icons to switch between expanded card view and condensed view.
- Use
Runon a workflow card when enabled. - Click
Load Moreto retrieve additional cards.
Create a New Workflow
To create a new workflow, do the following:
- On the Workflows page, click
Create. - In
Add Workflow, enter:NameDescription (Optional)
- Click
Save. - The workflow editor opens for setup.
Configure Input (For)
Input setup defines how a workflow starts. The editor provides two input families: event-based and data-source-based. Event inputs trigger from system activity, while data-source inputs are generally used with query-driven logic and schedule-oriented processing.
- In the editor, click the
Inputcard underFor. - Choose either
EventorData Source. - For
Event, select one of:DeviceAlertWebhook
- For
Data Source, select one of:Device GroupDevice Template
- Configure selected input details:
Device: chooseDevice action(device_created,device_updated,device_deleted,device_disconnected) and set included devices when applicable.Alert: provideAlert code.Webhook: copy the generated workflow webhook URL usingCopy.Device Group: select group and review mapped template/devices.Device Template: select template and review mapped devices.
- Click
Save.
Configure Conditions (If)
Conditions apply SQL filtering to workflow input data and determine which rows should flow into actions. The panel includes SQL editing, query execution, schema inspection, and result validation. Where enabled, Optra Data Assistant can assist with query authoring.
- In the editor, click the
Conditioncard underIf. - Enter SQL in the condition editor.
- Optionally click
Optra Data Assistantwhen available. - Click
Run Query. - Review
SchemaandResulttabs. - Confirm matching rows and expected fields.
- Click
Save.
Configure Actions (Then)
Actions define what the workflow does after input and condition logic is satisfied. Multiple actions can be attached to one workflow, and each action can have its own message content and frequency behavior. The current platform supports notification and integration-oriented action types in a unified setup flow.
- In the editor, click an action card under
Then, or click+to add one. - Select action type:
WebhookEmailSMSAMQPMicrosoft TeamsIntegration
- Configure destination fields based on action type.
- In the
Messagesection, author the payload and useTestto validate. - For supported actions, choose
Message formatastextorjson. - Set trigger behavior:
- Non-alert workflows:
Always (Default)orConditionally. - Alert workflows:
Critical (Default),Pending,Warning, orReturn to normal.
- Non-alert workflows:
- Click
Save. - To remove an action, use
Deletein the action panel.
Run, Test, and Manage Workflow Lifecycle
To run, test, and manage workflow lifecycle tasks, do the following:
- In editor header, use:
Run OnceTest
- Use the header menu (
...) for:Schedule(for cronable workflow types)Delete workflow
- If
Incomplete workflowis shown, complete missing setup before run or test. - Use
WorkflowandActivitytabs in header to switch between configuration and runtime logs.
Schedule a Workflow (When Available)
To schedule a workflow, do the following:
- Open workflow header menu (
...) and chooseSchedule. - In
Edit Schedule, set:Run everyinterval and frequency- Day/month options for weekly/monthly/yearly patterns
- Time (
At)
- Click
Save.
Delete a Workflow
To delete a workflow, do the following:
- Open workflow header menu (
...) and chooseDelete workflow. - Review the confirmation message.
- Click
Delete workflowto complete removal.