Investigate alerts with an AI Technician
An AI Technician can be a rule action, so an alert on a device starts a round. The device alert is raised straight away, and the technician's finding follows as a second alert from its own Findings message rule when the round ends.
Before you start
- The technician is set up and its first round has finished, as described in Set up an AI Technician.
- The instructions say what to look at when an alert wakes the technician, as in the alert investigation example in Write instructions.
- The profile has the Tag Rule Actions licensed feature, included in the Server and Enterprise editions.
- You can edit the device's rules, as described in Rule settings.
Add the technician to a device rule
- Open the device rule in the rules visual editor, as described in Create a rule.
- In Add action, choose the technician by its component name, such as
MotorTechnician. - Add it to the rule's actions, or to the threshold step that starts a review. Do not add it to the clear actions, because the technician starts a round each time it runs, including when an alert clears.
- Save the rules.
The technician is told which alert woke it: the rule, the level, the tag, its value, and the alert message. For a rule that watches many tags, it is given up to 20 of the tags that were true when the rule fired, and how many there were in all. The round report starts with the rule, transition, and tag that woke it.
Example
This example raises a Warning when the motor temperature passes 80 °C and wakes MotorTechnician, and raises an Error above 95 °C without waking it again.
It is written in the same form as the Complete rules.yaml example.
version: "2.3"
rules:
displayName: Motor alerts
enabled: true
scope:
prefix: Vehicles/Car1/Motor
rules:
- rule:
id: motor_temperature
displayName: Motor temperature
type: threshold
scope:
prefix: MotorTemperature
expression: tag.HasValue
throttleMinutes: 15
thresholds:
- condition: { operator: ">", value: 80 }
clearValue: 75
level: Warning
message: Motor temperature above 80 C
actions:
- action: ProfinityLog
- action: MotorTechnician
- condition: { operator: ">", value: 95 }
clearValue: 90
level: Error
message: Motor temperature above 95 C
actions:
- action: ProfinityLog
The throttleMinutes on the device rule and the technician's Alert cooldown (minutes) both limit how often the alert starts a round.
For a device that alerts often, set the throttle, so the technician's Daily limit is left for the alerts that matter.
Read the finding
When the round ends:
- The tags under the technician's Findings branch update, and TAG EXPLORER shows them.
- Findings severity raises or clears its alert at the finding's level in the Alerts Log.
- Findings message sends when the outcome is
attentionand the text is new. - The
Wakefindings tag readsalert. - The
Reporttag starts withsource=Rule motor_temperature, followed by the transition, the tag, and the alert message.
If no finding follows the device alert, the wake was dropped. Refer to Troubleshooting to find the reason in the Profinity log.