{
  "name": "Resume Parser to Structured Data",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "resume-parse",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "rp0001-0001-4000-8000-000000000001",
      "name": "Receive Resume Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [240, 300]
    },
    {
      "parameters": {
        "url": "={{ $json.body.resumeUrl }}",
        "options": {
          "responseType": "arraybuffer",
          "timeout": 30000
        }
      },
      "id": "rp0001-0002-4000-8000-000000000002",
      "name": "Download Resume PDF",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [460, 300]
    },
    {
      "parameters": {
        "operation": "pdf",
        "options": {}
      },
      "id": "rp0001-0003-4000-8000-000000000003",
      "name": "Extract Resume Text",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [680, 300]
    },
    {
      "parameters": {
        "resource": "text",
        "operation": "message",
        "modelId": {
          "__rl": true,
          "value": "gpt-4o-mini",
          "mode": "list"
        },
        "messages": {
          "values": [
            {
              "content": "Parse this resume and return ONLY valid JSON with these keys: full_name, email, phone, location, linkedin_url, summary, skills (string array), work_experience (array of: company, title, start_date, end_date, description), education (array of: institution, degree, field, graduation_year), certifications (string array), languages (string array). Use null for missing fields and empty arrays where no data found.\n\nResume text:\n{{ $json.text }}"
            }
          ]
        },
        "options": {
          "temperature": 0,
          "responseFormat": "json_object"
        }
      },
      "id": "rp0001-0004-4000-8000-000000000004",
      "name": "Parse Resume with GPT",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1,
      "position": [900, 300]
    },
    {
      "parameters": {
        "jsCode": "const data = JSON.parse($input.item.json.message.content);\ndata.years_experience = (data.work_experience || []).length > 0 ? 'Extracted from work history' : '0';\ndata.skills_count = (data.skills || []).length;\ndata.parsed_at = new Date().toISOString();\ndata.source_url = $('Receive Resume Webhook').item.json.body.resumeUrl;\nreturn [{ json: data }];"
      },
      "id": "rp0001-0005-4000-8000-000000000005",
      "name": "Enrich Parsed Resume",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [1120, 300]
    }
  ],
  "connections": {
    "Receive Resume Webhook": {
      "main": [[{ "node": "Download Resume PDF", "type": "main", "index": 0 }]]
    },
    "Download Resume PDF": {
      "main": [[{ "node": "Extract Resume Text", "type": "main", "index": 0 }]]
    },
    "Extract Resume Text": {
      "main": [[{ "node": "Parse Resume with GPT", "type": "main", "index": 0 }]]
    },
    "Parse Resume with GPT": {
      "main": [[{ "node": "Enrich Parsed Resume", "type": "main", "index": 0 }]]
    }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "meta": {},
  "pinData": {}
}
