{
  "name": "Job Discovery",
  "nodes": [
    {
      "parameters": {
        "path": "job-discovery",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "url": "=http://backend:5000/api/jobs/discover?userId={{ $json.userId }}&resumeId={{ $json.resumeId }}",
        "options": {}
      },
      "name": "Discover Jobs",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 3,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "url": "=http://backend:5000/api/n8n/trigger/job-discovery",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ { \"userId\": $json.userId, \"jobs\": $json.jobs, \"count\": $json.jobs.length } }}",
        "options": {}
      },
      "name": "Notify Backend",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 3,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Discover Jobs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Discover Jobs": {
      "main": [
        [
          {
            "node": "Notify Backend",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {},
  "id": "3"
}