How to create a Smart Workflow
A condition-based Smart Workflow watches readings from your IoT sensors. When a reading meets your conditions, it runs the actions you choose, such as sending an email or submitting a work request.
Quick Summary
Click Smart Workflows, then New workflow. Choose Condition-based and click Continue. Add a condition (Data Source, Data Field, Operation, Threshold), add an action, then click Create & activate.
Before you begin
- Smart Workflows is in the sidebar under Work for Facility Owners and Organization Admins. If you do not see it, your role or plan does not include it.
- The sensors you want to watch must be registered as IoT assets and already reporting. See How IoT sensors work in Infodeck.
- To raise a work request, you need a request template first. See Raise a work order automatically below.
Step 1: Start a new workflow
- From the sidebar, click Smart Workflows.
- Click New workflow. The Create a workflow page opens.
- Choose Condition-based ("Trigger on sensor data or state changes") and click Continue.
For workflows that run at set times, choose Time-based instead. See Scheduled automation.
Step 2: Name the workflow
- Enter a name in the Workflow name... box, such as
Cold Room 1 high temperature. - Optional: open Details to add a Description and Tags.
Step 3: Add conditions
Under When these conditions are met:
- Click Add condition.
- Click Select data source. In Select Assets, pick one or more sensors (IoT devices only), then click Confirm selection.
- Choose the Data Field, such as
temperature. The fields come from the sensor's Asset Type. - Choose the Operation and enter the Threshold.
| Operation | Use it for |
|---|---|
| > greater than | Temperature above 5 |
| >= greater or equal | Humidity 80 or more |
| < less than | Battery below 20 |
| <= less or equal | Pressure 1000 or less |
| = equals | A switch reading true |
| != not equals | A state that is not normal |
To add another condition, click Add condition again. Click the AND or OR label between two conditions to switch it:
- AND: all conditions must be true.
- OR: any one condition is enough.
You can add up to 10 conditions.
Step 4: Choose when it triggers
Under Trigger behaviour, set When to trigger:
| Option | What happens |
|---|---|
| Every qualifying reading | "Run the actions for every qualifying reading." |
| Raise once until recovery | "Raise once when conditions become true. A normal reading re-arms the rule; repeated qualifying readings are counted." You can also set Cooldown (minutes). |
Raise once until recovery only appears where your workspace supports it. Use it for alerts and work requests, so one problem does not create a message for every reading.
Step 5: Add actions
Under Trigger these actions, click Add action and choose an Action Type. You can add up to 10 actions.
| Action Type | What it does | Fields |
|---|---|---|
| Trigger IoT assets | Queues a named command for a device | IoT Asset, Command |
| Submit request | Creates a work request from a request template | Request Template, optional Telegram maintenance alert |
| Trigger alarm reminder | Triggers an audible alarm reminder notification | Alarm Sound, Alarm Message |
| Email notification | Sends an email | Recipient Email, Message |
| SMS notification | Sends a text message | Recipient Phone, Message |
SMS delivery is not guaranteed. Use Email notification for alerts you rely on, and test any SMS action with a real reading before you depend on it.
For device commands, see How to send device commands. Queued commands are not confirmed as delivered.
Step 6: Limit when it can trigger (optional)
Under Valid Time ("Restrict when this workflow is allowed to trigger."), choose Always, Daily, Weekly or Monthly. For the last three, set Start Time and End Time, and for Weekly or Monthly, pick the days under Repeat on.
Step 7: Save
- Create & activate saves the workflow and turns it on.
- Save as draft saves it without turning it on.
Raise a work order automatically
There is no "create work order" action. A workflow creates work through Submit request, and the request template decides what happens next.
- Click the Settings gear, then under Customization click Request Templates, and click New template (or open an existing one).
- Under Approval flow, turn on Auto-approve requests ("Skip approval and mark requests approved immediately.").
- Turn on Create work order with automatic approval ("Applies when Auto-approve requests is on.").
- Save the template.
- In your workflow, add Submit request and choose this template as the Request Template.
With automatic approval off, the request waits for review. With automatic approval on and work order creation off, the request is accepted without creating a work order.
Facility Owners, Organization Admins, Operations Managers, Compliance Officers and Facility Managers can open Request Templates. Creating a template requires permission to create work requests. Editing one requires permission to update work requests. Both actions require a workspace that allows changes.
Telegram maintenance alert
If your workspace has a Telegram bot with a confirmed staff group, Submit request can also post a Telegram maintenance alert to a Staff group. "After this workflow creates work, Infodeck posts an alert to the staff group you choose." The alert needs Raise once until recovery. To set up the bot, see Managed connectors.
Example: cold room temperature alert
Situation: Cold Room 1 must stay at 5°C or below. You want an email and a work request when it gets warmer.
- Click Smart Workflows, then New workflow. Choose Condition-based and click Continue.
- Name it
Cold Room 1 high temperature. - Click Add condition. Select the sensor
Cold Room 1 sensor, set Data Field totemperature, Operation to > greater than and Threshold to5. - Set When to trigger to Raise once until recovery and Cooldown (minutes) to
30. - Add Email notification with Recipient Email
facilities@example.comand MessageCold Room 1 is above 5°C. Check the door and compressor. - Add Submit request and choose a template set up as in Raise a work order automatically.
- Click Create & activate.
Result: When the temperature first goes above 5°C, Infodeck sends one email and creates one work order. It does not repeat until a normal reading re-arms the rule.
Example: air quality during office hours
Situation: You want to know when meeting rooms on Level 2 get stuffy, but only on weekdays during office hours.
- Create a condition-based workflow named
Level 2 CO2 high. - Select the Level 2 air quality sensors as the Data Source, set Data Field to
co2, Operation to > greater than and Threshold to1000. - Set When to trigger to Raise once until recovery.
- Add Email notification to the building team.
- Under Valid Time, choose Weekly, set Start Time
08:00and End Time18:00, and select Mon to Fri under Repeat on. - Click Create & activate.
Manage workflows
The Smart Workflows page lists every workflow with its status. Use the row menu to:
- Choose View details on a condition-based workflow to see its conditions and actions. Under Trigger history, choose a period to see up to ten recent trigger records, their outcomes when available, and links to any work requests recorded with them.
- Edit: change conditions or actions, then click Save changes.
- Duplicate: copy the workflow as a starting point.
- Enable or Disable: turn it on or off.
- Delete: remove it. "This cannot be undone."
Use the Status filter (All statuses, Enabled, Disabled) and the search box to find a workflow.
Troubleshooting
| Problem | What to check |
|---|---|
| The workflow never triggers | Check that it is Enabled, that the sensor is reporting (asset Details tab), and that Valid Time covers the time of the reading. |
| It triggers too often | Switch When to trigger to Raise once until recovery and add a Cooldown (minutes). Or raise the Threshold. |
| A late reading did not trigger it | Readings marked Late data are stored in history only and do not trigger workflows. |
| No templates to choose in Submit request | Create a request template first. The action shows "No templates yet". |
| A work request was created but no work order | The template needs both Auto-approve requests and Create work order with automatic approval. |
| Email not received | Check the address and the recipient's spam folder. |
Related articles
- Scheduled automation
- Workflow Analytics
- How to send device commands
- How IoT sensors work in Infodeck
Need help? Contact Infodeck Support