Skip to main content

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​

  1. From the sidebar, click Smart Workflows.
  2. Click New workflow. The Create a workflow page opens.
  3. 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​

  1. Enter a name in the Workflow name... box, such as Cold Room 1 high temperature.
  2. Optional: open Details to add a Description and Tags.

Step 3: Add conditions​

Under When these conditions are met:

  1. Click Add condition.
  2. Click Select data source. In Select Assets, pick one or more sensors (IoT devices only), then click Confirm selection.
  3. Choose the Data Field, such as temperature. The fields come from the sensor's Asset Type.
  4. Choose the Operation and enter the Threshold.
OperationUse it for
> greater thanTemperature above 5
>= greater or equalHumidity 80 or more
< less thanBattery below 20
<= less or equalPressure 1000 or less
= equalsA switch reading true
!= not equalsA 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:

OptionWhat 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 TypeWhat it doesFields
Trigger IoT assetsQueues a named command for a deviceIoT Asset, Command
Submit requestCreates a work request from a request templateRequest Template, optional Telegram maintenance alert
Trigger alarm reminderTriggers an audible alarm reminder notificationAlarm Sound, Alarm Message
Email notificationSends an emailRecipient Email, Message
SMS notificationSends a text messageRecipient Phone, Message
Text messages

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.

  1. Click the Settings gear, then under Customization click Request Templates, and click New template (or open an existing one).
  2. Under Approval flow, turn on Auto-approve requests ("Skip approval and mark requests approved immediately.").
  3. Turn on Create work order with automatic approval ("Applies when Auto-approve requests is on.").
  4. Save the template.
  5. 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.

note

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.

  1. Click Smart Workflows, then New workflow. Choose Condition-based and click Continue.
  2. Name it Cold Room 1 high temperature.
  3. Click Add condition. Select the sensor Cold Room 1 sensor, set Data Field to temperature, Operation to > greater than and Threshold to 5.
  4. Set When to trigger to Raise once until recovery and Cooldown (minutes) to 30.
  5. Add Email notification with Recipient Email facilities@example.com and Message Cold Room 1 is above 5°C. Check the door and compressor.
  6. Add Submit request and choose a template set up as in Raise a work order automatically.
  7. 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.

  1. Create a condition-based workflow named Level 2 CO2 high.
  2. Select the Level 2 air quality sensors as the Data Source, set Data Field to co2, Operation to > greater than and Threshold to 1000.
  3. Set When to trigger to Raise once until recovery.
  4. Add Email notification to the building team.
  5. Under Valid Time, choose Weekly, set Start Time 08:00 and End Time 18:00, and select Mon to Fri under Repeat on.
  6. 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​

ProblemWhat to check
The workflow never triggersCheck 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 oftenSwitch When to trigger to Raise once until recovery and add a Cooldown (minutes). Or raise the Threshold.
A late reading did not trigger itReadings marked Late data are stored in history only and do not trigger workflows.
No templates to choose in Submit requestCreate a request template first. The action shows "No templates yet".
A work request was created but no work orderThe template needs both Auto-approve requests and Create work order with automatic approval.
Email not receivedCheck the address and the recipient's spam folder.


Need help? Contact Infodeck Support

Was this page helpful?