{
  "name": "Automated Worx — Run an Agent",
  "nodes": [
    {
      "parameters": {},
      "id": "aw-trigger",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [260, 320]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://automatedworx.com/api/agent-execute.php",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            { "name": "X-API-Key", "value": "YOUR_CLIENT_API_KEY" }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"agent_id\": 12,\n  \"input\": \"Hello from n8n!\"\n}",
        "options": {}
      },
      "id": "aw-http",
      "name": "Run Automated Worx Agent",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [480, 320]
    },
    {
      "parameters": {
        "content": "## Automated Worx — Run an Agent\n\n1. Get a client API key: automatedworx.com/api-keys.html\n2. In the HTTP node, replace YOUR_CLIENT_API_KEY and set your agent_id.\n3. The reply is in {{ $json.output }} — pipe it into Slack, Gmail, Sheets, etc.",
        "height": 240,
        "width": 360
      },
      "id": "aw-note",
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [240, 20]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          { "node": "Run Automated Worx Agent", "type": "main", "index": 0 }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": { "executionOrder": "v1" },
  "meta": {}
}
