{
  "name": "Workflow Stalse",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "ticket-events",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        0
      ],
      "id": "0f969f58-bb2d-4942-a429-35b5103ab269",
      "name": "Webhook"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://httpbin.org/post",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{$json}}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        416,
        0
      ],
      "id": "db8963c4-5e87-40c4-9efa-78464b82dca3",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "jsCode": "const body = $json.body ?? $json;\n\nreturn [\n  {\n    received: true,\n    event: body.event,\n    trigger: body.trigger,\n    ticket_id: body.ticket?.id,\n    status: body.ticket?.status,\n    priority: body.ticket?.priority,\n    processed_at: new Date().toISOString()\n  }\n];\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        208,
        0
      ],
      "id": "d8e12287-6a3d-42fe-836e-e71f701a022f",
      "name": "Code in JavaScript"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a0341751-046e-4de6-819a-dba87e162b3b",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "ddHPQryz05Ztx1Np",
  "tags": []
}