Theme
Create an automation task
What this is
Create Automation Task builds a reusable single-step or multi-step workflow: scripts, services, alerts, webhooks, file/registry work, connectivity checks, and more — plus triggers, result monitoring, error handling, schedule, and self-healing. For OS updates, use patch management policies instead of an automation patch module.
Who can use it
Users who can create or edit automation tasks under Automation.
How to open it
- In the left side menu, click Automation.
- Click the Tasks tab.
- Open the Automation Tasks subtab.
- Click Create Automation Task (or Use Template, then pick a template).
To edit later: on the task card, click Edit (modal title becomes Edit Automation Task).

Do the task
Work through the modal tabs, then save with Create Task (or Update Task when editing). Use Cancel to discard.
Modal tabs (order):
- Basic Info
- Configuration (when Task Type is Single Step) or Steps (when Multi Step)
- Trigger
- Result Monitoring
- Error Handling
- Schedule
- Self-Healing
Footer buttons: Cancel, Create Task / Update Task.
1. Basic Info
- Enter Task Name (required).
- Optionally fill Description and Category (for example Maintenance, Security, Monitoring).
- Set Task Type:
- Single Step — one action (uses the Configuration tab)
- Multi Step — ordered actions with dependencies (uses the Steps tab)
- Under OS Requirements / OS Exclusions, check the OS types this task may or must not run on. Leave requirements empty to allow all.
- Under Device Type Requirements / Device Type Exclusions, optionally narrow by device type (more granular than OS).
- Optionally set Agent response timeout (seconds).
- Set Version (defaults to
1.0.0). - Leave Active on unless you want the task saved but inactive.

2a. Configuration (single-step)
- Open Configuration.
- Choose Module, then fill the fields for that module.
| Module | Key fields |
|---|---|
| Script | Script (searchable list) |
| Service | Service Action (Start / Stop / Restart / Check Status); Service Name |
| Alert | Alert Severity (Info / Warning / Error / Critical); Alert Message |
| PSA Ticket | PSA Configuration (if more than one); Ticket Title; Ticket Description; Priority |
| Webhook | Webhook URL; HTTP Method; Custom Headers (JSON); Payload (JSON); Secret Token (Optional); Timeout (seconds) |
| File Operation | File Operation (Copy / Move / Delete / Create / Read); Source Path / Destination Path / Path to Delete as needed; Create as Directory; File Content; Overwrite if exists; Recursive (delete folder contents) |
| Registry Edit | Registry Operation (Read / Write / Delete); Registry Key Path; Value Name; Value Data; Value Type (Windows only) |
| Restart Device | Action (Restart / Reboot / Shutdown); Delay (seconds); Message to Display; Force restart (even if users are logged in) |
| Device connectivity | Create alert if device is offline; Fail step if offline...; Alert severity (when alerting); Alert message template |
| Developer Apps | Developer Apps Action (Scan / Apply updates); Target path; Ecosystem (npm, yarn, pnpm, composer, pip, nuget, rubygems, maven, gradle) |
Many text fields accept FlexVars (for example ${FLEX.VAR_NAME}).

2b. Steps (multi-step)
- Open Steps.
- Click Add Step for each action.
- Configure the step module the same way as Configuration.
- For steps after the first, set Depends On Step (or leave None (runs in order)).
- Set On Failure: Stop (default), Continue, or Rollback.
- When a step depends on another, optionally enable Conditional Execution (Combo Scripts) so the step runs only if a prior result matches (for example exit code).

3. Trigger
- Open Trigger.
- Under Entry Conditions / Trigger Conditions, click Add Trigger Condition for system-style checks (thresholds, software, services, files, registry, processes, network, event log, script results, time, and more).
- Under FlexVar Conditions, choose AND (all conditions must be true) or OR (any condition can be true), then click Add Condition for device FlexVar rules.
All configured conditions must be satisfied for the task to run (in addition to OS / device filters on Basic Info).

4. Result Monitoring
- Open Result Monitoring.
- Optionally turn on Include in Compliance Monitoring.
- Click Add Result Condition to watch script exit codes, output, timing, or status.
- Under Alert Actions, configure as needed:
- Create Portal Alert
- Prevent Duplicate Alerts
- Send Email (+ Email Recipients)
- Send Webhook
- Alert Message Template
- Enable this condition (Active)

5. Error Handling
- Open Error Handling.
- Toggle the actions you want when the task fails:
- Notify on Error
- Create Alert on Error
- Update PSA on Error (when PSA is configured)
- Send Webhook on Error
- Run Remediation on Error (pick a remediation script or task when offered)

6. Schedule
- Open Schedule.
- Choose Schedule Type:
- Immediate (run when assigned) — runs when assigned via policy
- Recurring (cron schedule) — repeats on a cadence
- Scheduled (one-time) — runs once at Scheduled Time
- Manual (on-demand only) — only when an admin triggers it
- On-Demand (triggered by events) — driven by events; pair with Trigger
- For Recurring, use Recurring Schedule options such as Every 15 minutes, Every 30 minutes, Hourly, Daily, Weekly, Monthly, or Custom cron.

7. Self-Healing
- Open Self-Healing.
- Turn on Enable self-healing.
- For most modules, set Max retry attempts and Delay between retries (minutes).
- For Device connectivity, recovery is schedule-based (unlimited rechecks on each scheduled run). Prefer a Recurring schedule (for example every 5–15 minutes) so offline checks and alert clearances keep running.

Save
- Click Create Task (or Update Task).
- Confirm the task appears on Automation Tasks.
Edit an existing task
- On Automation → Tasks → Automation Tasks, find the card.
- Click Edit.
- Change any tabs, then click Update Task.

Test a task
- On the task card, click Test.
- Confirm the prompt that the task will run immediately on applicable devices.
- Check Execution History (or Automation → Executions) for results.

Tips
- Assign tasks to devices through a Policy (Policies tab → Tasks / Assignment); OS and FlexVar filters on the task still apply.
- Use Multi Step with Depends On Step and On Failure when order and rollback matter.
- Connectivity self-healing needs a recurring schedule — retries alone do not replace cron ticks for that module.
