{
  "name": "Talent Veil - Blind CV polling",
  "nodes": [
    {
      "parameters": {},
      "id": "a8b3791a-334a-49a9-a507-fce056d36dc4",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "operation": "read",
        "fileSelector": "",
        "options": {
          "dataPropertyName": "data"
        }
      },
      "id": "50f625bb-3e47-4771-89c8-0192620a08e5",
      "name": "Read CV",
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "operation": "create",
        "binaryPropertyName": "data",
        "callbackUrl": "",
        "idempotencyKey": "={{ $execution.id }}:blind-cv",
        "settingsJson": "{\"language\":\"english\"}"
      },
      "id": "8799f978-556b-4acf-a534-05addf541a99",
      "name": "Create Blind CV",
      "type": "@awakast/n8n-nodes-talent-veil.talentVeil",
      "typeVersion": 1,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "resume": "timeInterval",
        "amount": 10,
        "unit": "seconds"
      },
      "id": "04acc3d4-cf2f-450f-9efa-df56cf5fde35",
      "name": "Wait 10 Seconds",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        660,
        0
      ]
    },
    {
      "parameters": {
        "operation": "get",
        "jobId": "={{ $json.job_id }}"
      },
      "id": "ed3a7c4c-56c4-4c03-a89f-a793edddde80",
      "name": "Get Blind CV Status",
      "type": "@awakast/n8n-nodes-talent-veil.talentVeil",
      "typeVersion": 1,
      "position": [
        880,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "dd19e88d-7f68-434c-9dbc-d2749dd2c834",
              "leftValue": "={{ $json.status }}",
              "rightValue": "Finished",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "73651e57-7c0a-48d4-aebb-cbac55118957",
      "name": "Finished?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1100,
        0
      ]
    },
    {
      "parameters": {
        "operation": "download",
        "jobId": "={{ $json.job_id }}",
        "outputBinaryPropertyName": "data"
      },
      "id": "3dc8cb28-ed9d-42b6-8bd9-e42b080df3f7",
      "name": "Download Blind CV",
      "type": "@awakast/n8n-nodes-talent-veil.talentVeil",
      "typeVersion": 1,
      "position": [
        1320,
        -100
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "42f9297c-f1bb-4c76-b247-9cf472eff743",
              "leftValue": "={{ $json.status }}",
              "rightValue": "Failed",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "49451230-d469-4687-804e-54960f79990d",
      "name": "Failed?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1320,
        100
      ]
    },
    {
      "parameters": {
        "errorType": "errorMessage",
        "errorMessage": "={{ $json.error_message || 'Blind CV generation failed.' }}"
      },
      "id": "f168b633-2d68-4b37-a364-8ea1cda656d2",
      "name": "Stop on Failure",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1540,
        80
      ]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Read CV",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read CV": {
      "main": [
        [
          {
            "node": "Create Blind CV",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Blind CV": {
      "main": [
        [
          {
            "node": "Wait 10 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 10 Seconds": {
      "main": [
        [
          {
            "node": "Get Blind CV Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Blind CV Status": {
      "main": [
        [
          {
            "node": "Finished?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Finished?": {
      "main": [
        [
          {
            "node": "Download Blind CV",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Failed?": {
      "main": [
        [
          {
            "node": "Stop on Failure",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 10 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false
}