> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 3-5. Setting Up Device Workflows

> Step-by-step instructions for automatically triggering workflows and sending notifications when device information is updated.

## Overview

This feature automatically executes workflows and sends notifications when device information is updated.

It automatically detects OS version updates, asset number changes, MDM location updates, and more. This lets you start operations quickly without building workflows from scratch.

### What Triggers a Workflow

* Data updates via MDM integration (such as Jamf or Intune)
* Syncs from other integrated services
* Manual edits or updates on the device list page

### Execution Flow

Detects a change in device information > Evaluates filter conditions > Sends a notification if conditions are met.

## Use Cases

* Get instant alerts when a device's status, OS version, serial number, or location changes.
* Have your IT or security team receive device change audit logs via email or Slack.
* Automatically notify a specific Slack channel when an asset number is updated.

## Prerequisites

Before setting up automation, please confirm the following:

| Item                 | Requirement                                                          |
| -------------------- | -------------------------------------------------------------------- |
| Device sync          | Devices must be synced (via MDM, manual, or integrated service)      |
| Notification (Slack) | Your organization must have Slack connected as an integrated service |
| Notification (Email) | You must know the email address of the recipient                     |

## Template Overview and How to Choose

We offer three templates to match your needs.

| Template Name                              | Main Action                                                                                                               |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| **Device Change Alert**                    | Receive instant alerts when key device fields such as OS version or status are changed.                                   |
| **Device Compliance Auto-Response**        | Automatically quarantines a device when it becomes non-compliant and notifies the alert recipients.                       |
| **Create IT Ticket from Device Lifecycle** | Automatically creates or updates IT tickets in an external ticketing system when a device's status or assignment changes. |

<img src="https://mintcdn.com/moneyforwardi/dwvHJht6_NnMH4ji/images/it-management/workflows/lrui518kt0-device-alert/001.png?fit=max&auto=format&n=dwvHJht6_NnMH4ji&q=85&s=4148ec52870744d10ee926107fb89821" alt="The three available workflow templates: Device Change Alert, Compliance Auto-Response, and IT Ticket Creation" width="1546" height="794" data-path="images/it-management/workflows/lrui518kt0-device-alert/001.png" />

## Setup Steps

1. Go to **Automation** > click **\[Create Automation]**.

2. Select a template from the dialog.
   * Create IT Ticket from Device Lifecycle: Click **\[Create from Template]**.
   * Device Change Alert: Click **\[Create from Template]**.
   * Device Compliance Auto-Response: Click **\[Create from Template]**.

3. In the "Builder" screen, configure **"1. Device Field Change"**.
   The scope "All Devices" is displayed under "Trigger Settings". At this time, "All Devices" is fixed as the monitoring target.

   <img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/002.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=fa71a1f74194451ac7b271480f9ae02e" alt="Trigger settings screen" width="1610" height="1180" data-path="images/it-management/workflows/lrui518kt0-device-alert/002.png" />

4. In **"2. Filter"**, set the conditions for notifications. If multiple conditions are selected, a notification is sent when any one of them changes.

   * Condition: From the "Changed Field" dropdown, select **\[Any / Not Equal To]**.
   * Value: Select the field value to monitor (asset number, OS version, serial number, etc.) from the dropdown.
   * \[+ Add Another Condition]: Adds a new condition within the same group. Only condition types not yet used in the group are displayed. The same condition type can only be added once per group. To reuse the same condition type, add a new group.
   * \[+ Add Group (OR)]: Adds a new condition group. Groups are combined with "OR".

   <img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/003.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=879fc305b4d7773326e922ff2747c2b5" alt="Filter settings screen" width="1618" height="1162" data-path="images/it-management/workflows/lrui518kt0-device-alert/003.png" />

5. After "2. Filter", the screens displayed differ depending on the selected template. Please also refer to the linked instructions for details.
   * Create IT Ticket from Device Lifecycle: ["3. HTTP Request"](#http) > [Notification](#notification)
   * Device Change Alert: [Notification](#notification)
   * Device Compliance Auto-Response: ["3. Device"](#device) > [Notification](#notification)

6. Once all checks in the "Builder" turn green, click **\[Publish]** or **\[Dry Run]**.

   <img src="https://mintcdn.com/moneyforwardi/dwvHJht6_NnMH4ji/images/it-management/workflows/lrui518kt0-device-alert/1783637939341-automatio.png?fit=max&auto=format&n=dwvHJht6_NnMH4ji&q=85&s=8d9c23e3a625db54b27d2f9661c6c913" alt="Builder publish button" width="1520" height="1338" data-path="images/it-management/workflows/lrui518kt0-device-alert/1783637939341-automatio.png" />

7. The "Confirm Workflow Automation Settings" screen will appear. Enter an automation name and click **\[Publish]**.

   <Info>A name that is already registered cannot be used for the automation name.</Info>

   <img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/005.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=9f8c61b427dfd3771126b5aecaff814d" alt="Automation name input screen" width="810" height="1070" data-path="images/it-management/workflows/lrui518kt0-device-alert/005.png" />

8. When "Workflow has been published" is displayed, click **\[OK]**.

   <img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/006.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=aeee44132db05e1b31117da5def56a4f" alt="Publication complete screen" width="658" height="598" data-path="images/it-management/workflows/lrui518kt0-device-alert/006.png" />

<h3 id="notification">
  Notification
</h3>

In the "Builder" screen, under "Notification", perform the following:

1. Under "Notification", click **\[+ Add Another Notification]**.

   <img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/007.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=16be70c2f5dadac1622892419a373c65" alt="Add notification button" width="584" height="210" data-path="images/it-management/workflows/lrui518kt0-device-alert/007.png" />

2. On the "Message" screen, select the notification method **"Slack/Email"**. If you want to set up multiple notifications, turn on "Multiple Selection".
   For Slack setup steps, see [Notification Method "Slack" Setup Instructions](/en/it-management/workflows/ygzni03g1c-admina-automation-wic-ggx#slack).

   <img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/008.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=85ab5908600084f90ede4b35a867ff63" alt="Notification method selection screen" width="574" height="360" data-path="images/it-management/workflows/lrui518kt0-device-alert/008.png" />

3. On the "Notification" screen, click the selected message to display the "Settings" panel on the right.

   <img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/009.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=1528c333cc5c833accac003fb18aa858" alt="Notification settings screen" width="1624" height="932" data-path="images/it-management/workflows/lrui518kt0-device-alert/009.png" />

<h3 id="device">
  Device
</h3>

In the "Builder" screen, under **"3. Device"**, perform the following:

<img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/010.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=4845d85141041c01808715af9c39360d" alt="Device settings screen" width="1616" height="1168" data-path="images/it-management/workflows/lrui518kt0-device-alert/010.png" />

| Item                 | Setting                                                                                                                                                                                                          |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Action**           | From "Device Settings", select an action: "Update Device / Unassign Device / Update Device".                                                                                                                     |
| **Target Device**    | Select from "Trigger Device / Another Device (Specified by Filter)".                                                                                                                                             |
| **Fields to Update** | Click **\[+ Add Field]** to select the target items. Options include: "Keyboard Layout / Procurement Method / Fixed Asset / Type / Status / User Device / Custom Field Validation / Type Custom / Manufacturer". |

<h3 id="http">
  HTTP Request
</h3>

In **"3. HTTP Request"**, if a callback to an external API is needed, configure the method (POST, etc.) and endpoint URL.

Configure the sender to send in the following format:

| Item                        | Value / Requirement                                                          |
| --------------------------- | ---------------------------------------------------------------------------- |
| Endpoint URL                | Set the endpoint URL.                                                        |
| Method                      | POST / GET / POST / PUT / PATCH / DELETE                                     |
| Header: Content-Type        | application/json                                                             |
| Header: X-Timestamp         | Unix timestamp (milliseconds, string)                                        |
| Header: X-Webhook-Signature | sha256=HMAC-SHA256(secret, "{ts}.{body}")                                    |
| Request Body                | Compact JSON (no spaces or indentation). The keys you send become variables. |

<img src="https://mintcdn.com/moneyforwardi/bJe0c5dlX0THPnAy/images/it-management/workflows/lrui518kt0-device-alert/011.png?fit=max&auto=format&n=bJe0c5dlX0THPnAy&q=85&s=88a197b202e6a9fe6c01793a391d943d" alt="HTTP request settings screen" width="1774" height="1276" data-path="images/it-management/workflows/lrui518kt0-device-alert/011.png" />

## Troubleshooting

| Symptom                               | Possible Cause                                               | Solution                                                               |
| ------------------------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------- |
| Expected notification is not received | Filter is too strict, or workflow is not published           | Loosen the filter, or check that the workflow is in "Published" state. |
| Too many notifications                | Filter is too broad, matching all changes                    | Narrow down to a specific field (e.g., asset number).                  |
| Slack notification not received       | Integration not connected, or bot has not joined the channel | Reconnect Slack, or invite the bot to the channel.                     |
| Email not received                    | Incorrect recipient address, or filtered as spam             | Re-verify the address and configure domain allow settings.             |

## FAQ

**Q. Can I monitor only a specific single device?**

A. This is not currently supported. The trigger is set to "All Devices", so please narrow down by specifying conditions in the "Changed Field" filter.

**Q. Will I be notified of past changes?**

A. No, only changes that occur after the workflow is published are targeted.

**Q. How quickly will I receive a notification?**

A. After the change is recorded in this service, notifications typically arrive within a few seconds.

**Q. Can I pause a workflow?**

A. Toggle off the target workflow in the automation list.
