Workflow triggers and actions
This page lists the triggers and actions you can choose in a workflow, in Apps > Workflow automation > Create new workflow. In each trigger, x and y are values you enter.
Monitor SIMs
| Trigger | Runs when |
|---|---|
| SIM is first online | The SIM connects to a network for the first time. |
| SIM connects to a network in a different country | The SIM connects in a country other than its last one. |
| SIM enters a specific country | The SIM connects in one of the countries you choose. |
| SIM leaves a specific country | The SIM connects outside one of the countries you choose. |
| SIM does first data session | The SIM makes its first data session. |
| SIM does a data session | The SIM makes any data session. |
| SIM’s monthly data consumption exceeds x in specific country | The SIM uses more than x data in a month in the country you choose. |
| SIM sends first SMS | The device sends its first SMS. |
| SIM sends SMS | The device sends any SMS. |
| SIM sends less than x SMS in y days | The device sends fewer than x SMS in y days. |
| SIM status is changed | The SIM’s status changes from one of the initial statuses you choose to one of the final statuses. |
Detect malfunctions
| Trigger | Runs when |
|---|---|
| SIM is inactive for x days | The SIM has no network activity for x days. |
| SIM doesn’t have a data session for x days | The SIM makes no data session for x days. |
| SIM does a data session larger than x | One data session uses more than x data. |
| SIM’s data consumption is under x for y days | The SIM uses less than x data in y days. |
| SIM’s data consumption over x for y days | The SIM uses more than x data in y days. |
| SIM sends more than x SMS in y days | The device sends more than x SMS in y days. |
Optimise costs
| Trigger | Runs when |
|---|---|
| SIM is inactive for x days | Same as under Detect malfunctions. |
| Account’s total monthly data used exceeds x | All your company’s SIMs together use more than x data in a month. |
| x% of data limit is consumed | The SIM uses x% of its data limit. |
| x% of SMS limit is consumed | The device sends x% of its SMS limit. |
| Groups monthly consumption exceeds x | The SIMs in the workflow together use more than x data in a month. |
| x% of agreed data package is consumed | x% of the data in your data package is used. |
| x% of pooled data package is consumed | x% of your pooled data package is used. |
Date based
| Trigger | Runs when |
|---|---|
| Date based | The date and time you choose is reached: once, on the last day of each month, or at intervals you set. A date-based workflow must have an action. |
Data amounts can be in kB, MB or GB.
Actions
| Action | What it does to each SIM that meets the trigger |
|---|---|
| Change SIM status | Changes the status to the one you choose, for example Offline, Live or Closed. |
| Reset SIM | Resets the SIM. See Reset a SIM. |
| Send SMS to SIM | Sends an SMS to the device. |
| Change data package | Moves the SIM to the data package you choose. |
| Change name of the SIM | Gives the SIM the name you enter. |
| Move SIM to a group | Moves the SIM to the group you choose, or a new one. |
| Add a tag to a SIM | Adds the labels you choose. |
| Change data limit | Sets the data limit, in MB. |
| Change SMS limit | Sets the SMS limit. |
You can use any action with any trigger.
Notification channels
| Channel | What it does |
|---|---|
| Receive an email | Emails the addresses you enter, or all company users. |
| Set up an HTTP request | Sends an HTTP request to your URL, with the SIM’s ICCID, MSISDN or EID if you add them. |
| Receive alert to Slack / Receive alert to Teams | Posts an alert to Slack or Microsoft Teams. |
Every run also shows under Alerts.