{
  "name": "Extract supplier invoice fields from PDFs and photos for human review with Repondea",
  "nodes": [
    {
      "parameters": {
        "content": "## Who is it for?\nFreelancers and small teams preparing supplier invoices for a spreadsheet, with a human check before CSV export.\n\n## How it works\nThe n8n Form Trigger receives one PDF, PNG or JPEG. HTTP Request sends its binary content to Repondea Invoice CSV. The service returns eight suggested fields, warnings, page usage and requires_review: true. A final Edit Fields node marks the result for human review and records the original filename. There is no automatic accounting entry or export.\n\n## Setup\n1. Create a Repondea account and confirm your email. Five pages per calendar month are free, with no card; Pro is optional at EUR 9/month for 50 pages.\n2. Create a revocable key in your workspace. Add an n8n Header Auth credential: Name = Authorization; Value = Bearer followed by a space and the key.\n3. Attach that credential to Extract invoice fields. Run the workflow and open the form test URL.\n4. Upload one readable invoice (maximum 5 MB and three PDF pages). Download the final JSON result, select the original in the Repondea workspace, and load that JSON for review. Correct fields and confirm before CSV export.\n\n## Requirements and customization\nAn n8n instance and Repondea account. Native nodes only; no model API key. Your n8n execution history may store documents and results: configure its retention. Keep human review when adding downstream integrations.\n\n[Full guide](https://repondea.com/en/invoice-csv/n8n?source=n8n-invoice-csv)",
        "height": 1100,
        "width": 520,
        "color": 1
      },
      "id": "5ba62fcb-466d-4b3b-9155-e1b5787c6ae0",
      "name": "Setup and human review",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -720,
        -320
      ]
    },
    {
      "parameters": {
        "formTitle": "Prepare a supplier invoice",
        "formDescription": "One invoice per file. PDF, PNG or JPEG, up to 5 MB and 3 PDF pages. Fields require your review before export.",
        "formFields": {
          "values": [
            {
              "fieldName": "invoice",
              "fieldLabel": "Invoice",
              "fieldType": "file",
              "multipleFiles": false,
              "acceptFileTypes": ".pdf,.png,.jpg,.jpeg",
              "requiredField": true
            }
          ]
        },
        "responseMode": "lastNode",
        "options": {
          "formSubmittedText": "The extraction is complete. Open the workflow output, download the result JSON and compare it with the original before exporting CSV.",
          "ignoreBots": true
        }
      },
      "id": "5d932ce4-3207-414d-930b-90e5f0bda2e6",
      "name": "Upload invoice",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.4,
      "position": [
        -100,
        40
      ],
      "webhookId": "749c8c60-78ea-485d-b42a-bbf1b8a161ed"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://repondea.com/api/invoice-csv/extract",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "={{ $binary.invoice.mimeType }}"
            },
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "contentType": "binaryData",
        "inputDataFieldName": "invoice",
        "options": {
          "timeout": 90000,
          "response": {
            "response": {
              "responseFormat": "json"
            }
          }
        }
      },
      "id": "05ad4078-4e32-415a-9e92-9637c801f0af",
      "name": "Extract invoice fields",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        160,
        40
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "d139e94f-ef59-47e0-a7b8-8f28573fa3f1",
              "name": "review_status",
              "value": "human_review_required",
              "type": "string"
            },
            {
              "id": "dfa1ee45-1c89-40d3-a1e0-e44285bf3b9d",
              "name": "original_filename",
              "value": "={{ $('Upload invoice').item.binary.invoice.fileName }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "2fb56890-6566-4b07-b183-8c3e35720366",
      "name": "Prepare result for human review",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        440,
        40
      ]
    },
    {
      "parameters": {
        "content": "## 1. Upload\nKeep this form private if the quota belongs to your team. n8n may retain uploads in execution history.",
        "height": 250,
        "width": 250,
        "color": 7
      },
      "id": "122e322f-3e16-4009-a867-83fed61255ea",
      "name": "Upload instructions",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -120,
        -230
      ]
    },
    {
      "parameters": {
        "content": "## 2. Extract\nAttach your Header Auth credential. No secret belongs in this workflow JSON. Failed or rejected reads refund the page quota.",
        "height": 250,
        "width": 250,
        "color": 7
      },
      "id": "1bae177e-4dfd-4673-a4aa-7a7b6764c4b7",
      "name": "Extraction instructions",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        150,
        -230
      ]
    },
    {
      "parameters": {
        "content": "## 3. Review before export\nDownload this node\u2019s JSON output. In your Repondea workspace, select the original, then load this JSON. Compare, correct and confirm before exporting the CSV.\n\n[Review workspace](https://repondea.com/en/invoice-csv?source=n8n-invoice-csv)",
        "height": 265,
        "width": 350,
        "color": 7
      },
      "id": "6b5bc752-1955-406d-84e8-f5696141c513",
      "name": "Review instructions",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        430,
        -300
      ]
    }
  ],
  "connections": {
    "Upload invoice": {
      "main": [
        [
          {
            "node": "Extract invoice fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract invoice fields": {
      "main": [
        [
          {
            "node": "Prepare result for human review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false,
  "pinData": {},
  "tags": [],
  "id": "RepondeaInvoiceCSV20261005",
  "versionId": "5ac8a0c4-4b1e-4deb-afed-3daaa7cf136e"
}
