{
  "name": "Recognize invoices / receipts from Google Drive and put them into Google Sheets",
  "nodes": [
    {
      "id": "0794d7e7-196f-46a6-b3cf-85faa436e21e",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        660,
        200
      ]
    },
    {
      "id": "94342020-7019-4565-8f18-5ca3d3512f80",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1320,
        660
      ],
      "parameters": {
        "width": 1120.9554973821976,
        "height": 1062.9450261780098,
        "content": "# Recognize invoices and convert them into structured JSON\n## Video Demo\nhttps://youtu.be/mGPt7fqGQD8\n\n## Quick OCR playground\n### 1. Get your OakPDF OCR API key here:\nhttps://rapidapi.com/restyler/ap"
      }
    },
    {
      "id": "77f96df1-8ee3-48aa-b602-d13df568c8ef",
      "name": "OCR recognize",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1820,
        420
      ]
    },
    {
      "id": "44a107a8-e658-4ad3-be75-497758621c7c",
      "name": "Unserialize response JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        2040,
        420
      ]
    },
    {
      "id": "4f34624f-3161-4baf-8ab7-1d84502c691b",
      "name": "On new file in Google Drive",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        660,
        540
      ]
    },
    {
      "id": "30591844-baaa-4f04-860b-436489780a2f",
      "name": "Load files from Google Drive folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1040,
        540
      ]
    },
    {
      "id": "f7887199-151d-4320-aa0c-5c2c9fdeca81",
      "name": "Filter processed files",
      "type": "n8n-nodes-base.merge",
      "position": [
        1360,
        420
      ]
    },
    {
      "id": "9b1fac99-d718-4b47-8b7c-c19a6c9a8544",
      "name": "Download file for OCR",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1600,
        420
      ]
    },
    {
      "id": "c91a5931-43b2-4eec-bb17-7becdc2e15a8",
      "name": "Save OCR result into Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2260,
        420
      ]
    },
    {
      "id": "7c3a1afa-a3ce-454f-bb6e-481e45267f25",
      "name": "Get already processed rows from Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1040,
        200
      ]
    }
  ],
  "connections": {
    "OCR recognize": {
      "main": [
        [
          {
            "node": "Unserialize response JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file for OCR": {
      "main": [
        [
          {
            "node": "OCR recognize",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter processed files": {
      "main": [
        [
          {
            "node": "Download file for OCR",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unserialize response JSON": {
      "main": [
        [
          {
            "node": "Save OCR result into Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On new file in Google Drive": {
      "main": [
        [
          {
            "node": "Get already processed rows from Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "Load files from Google Drive folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Load files from Google Drive folder",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get already processed rows from Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load files from Google Drive folder": {
      "main": [
        [
          {
            "node": "Filter processed files",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get already processed rows from Sheets": {
      "main": [
        [
          {
            "node": "Filter processed files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}