Skip to content

Automation Workflows

HopBox Cloud includes a powerful automation engine that lets you define workflows to manage your network devices without manual intervention. From scheduled configuration pushes to event-driven alerts, automation helps you scale your network operations.

Automation workflows in HopBox are built around three concepts:

  • Triggers — Events that start a workflow (e.g., device goes offline, firmware update available)
  • Conditions — Optional filters to narrow when a workflow runs (e.g., only for devices in a specific group)
  • Actions — What happens when the workflow executes (e.g., send alert, push config, restart service)
  1. Navigate to Automation → Workflows in the cloud dashboard
  2. Click New Workflow
  3. Configure your trigger, conditions, and actions
  4. Save and enable the workflow
wan-failover-alert.json
{
"name": "WAN Failover Alert",
"trigger": {
"type": "event",
"event": "wan_failover"
},
"conditions": [
{
"field": "device.group",
"operator": "equals",
"value": "branch-offices"
}
],
"actions": [
{
"type": "notification",
"channel": "email",
"recipients": ["netops@company.com"],
"message": "WAN failover detected on {{device.name}} at {{event.timestamp}}"
}
]
}
TriggerDescription
device_onlineDevice connects to the cloud
device_offlineDevice loses cloud connectivity
wan_failoverActive WAN link switches to backup
firmware_availableNew firmware version is available
config_changeDevice configuration is modified
high_cpuCPU usage exceeds threshold
high_memoryMemory usage exceeds threshold
tunnel_downVPN tunnel goes down
ActionDescription
notificationSend email, webhook, or dashboard alert
push_configPush a configuration template to the device
restart_serviceRestart a specific service on the device
update_firmwareTrigger a firmware update on the device
run_scriptExecute a custom script on the device

You can also create time-based workflows using cron-style schedules:

nightly-backup.json
{
"name": "Nightly Config Backup",
"trigger": {
"type": "schedule",
"cron": "0 2 * * *"
},
"actions": [
{
"type": "run_script",
"script": "backup_config.sh",
"target": "all_devices"
}
]
}

All workflow executions are logged under Automation → Logs. Each entry shows:

  • Workflow name and trigger event
  • Timestamp of execution
  • Target devices affected
  • Action results (success/failure)
  • Start simple — Begin with notification workflows before adding config push actions
  • Use device groups — Apply conditions based on groups to avoid unintended changes across your entire fleet
  • Test first — Use the Dry Run feature to preview what a workflow would do before enabling it
  • Monitor logs — Regularly review workflow logs to ensure automations are running as expected