AutomationFlowsGeneral › Hikewise Swarm Trigger

Hikewise Swarm Trigger

HikeWise Swarm Trigger. Uses executeCommand. Scheduled trigger; 5 nodes.

Cron / scheduled trigger★★☆☆☆ complexity5 nodesExecute Command
General Trigger: Cron / scheduled Nodes: 5 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "HikeWise Swarm Trigger",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 4
            }
          ]
        }
      },
      "id": "cron-trigger",
      "name": "Every 4 Hours",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "command": "cd /Users/jackenholland/AppDev/thetriage && python execution/swarm_coordinator.py --action run --max-agents 3"
      },
      "id": "run-swarm",
      "name": "Run Swarm Coordinator",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.exitCode }}",
              "value2": 0
            }
          ]
        }
      },
      "id": "check-success",
      "name": "Check Success",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "content": "=Swarm run completed successfully!\n\nOutput:\n{{ $json.stdout }}",
        "options": {}
      },
      "id": "success-note",
      "name": "Success Log",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.2,
      "position": [
        850,
        200
      ]
    },
    {
      "parameters": {
        "content": "=Swarm run failed!\n\nError:\n{{ $json.stderr }}",
        "options": {}
      },
      "id": "failure-note",
      "name": "Failure Log",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.2,
      "position": [
        850,
        400
      ]
    }
  ],
  "connections": {
    "Every 4 Hours": {
      "main": [
        [
          {
            "node": "Run Swarm Coordinator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Swarm Coordinator": {
      "main": [
        [
          {
            "node": "Check Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Success": {
      "main": [
        [
          {
            "node": "Success Log",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [
    "hikewise",
    "swarm",
    "automation"
  ]
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

HikeWise Swarm Trigger. Uses executeCommand. Scheduled trigger; 5 nodes.

Source: https://github.com/Holajack/thetriage/blob/ed7289d6b2b93975f46407e7959f5baabff76968/n8n-workflows/swarm-trigger.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

HikeWise Release. Uses executeCommand. Scheduled trigger; 4 nodes.

Execute Command
General

Scraper VC. Uses executeCommand. Scheduled trigger; 3 nodes.

Execute Command
General

ContextIQ Google Drive Sync. Uses executeCommand. Scheduled trigger; 2 nodes.

Execute Command
General

Backup n8n Workflows to /code. Uses executeCommand. Scheduled trigger; 2 nodes.

Execute Command
General

Complete backup solution that saves both workflows and credentials to local/server disk with optional FTP upload for off-site redundancy.

Read Write File, Email Send, Execute Command +3