{
  "name": "Extract and save invoice data from Google Drive to Sheets with Dumpling AI",
  "nodes": [
    {
      "id": "4cdec8f8-9e08-433f-832d-18a9af3f4531",
      "name": "Google Drive Trigger – Watch Folder for New Files",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -160,
        -180
      ]
    },
    {
      "id": "b67aea52-5f39-4fce-b476-d3b991b30519",
      "name": "Download Invoice File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        60,
        -180
      ]
    },
    {
      "id": "94ccaf02-0070-4200-b778-139ea075949a",
      "name": "Convert invoice File to Base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        280,
        -180
      ]
    },
    {
      "id": "760f6b02-65b6-4a28-af70-53602f8e2724",
      "name": "Send file to Dumpling AI for Data Extraction",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        500,
        -180
      ]
    },
    {
      "id": "b5545cf6-8ebb-4c0e-903b-5a14af7de087",
      "name": "Parse Dumpling AI JSON Response",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        -180
      ]
    },
    {
      "id": "84318159-a0ce-4049-a7db-2ac0fa79b8d4",
      "name": "Split line Items from Invoice",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        940,
        -180
      ]
    },
    {
      "id": "834d6b99-cd0e-4633-949d-40e53ba06324",
      "name": "Save Data to Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1140,
        -180
      ]
    },
    {
      "id": "f98684d0-6c7b-4ba2-b820-4b30e9ff10c1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -400
      ],
      "parameters": {
        "width": 540,
        "height": 500,
        "content": "### 📌 **Workflow Overview: Extract & Save Invoice Data from Google Drive with Dumpling AI**\n\n#### This workflow monitors a Google Drive folder for new files (invoices), extracts structured invoice dat"
      }
    }
  ],
  "connections": {
    "Download Invoice File": {
      "main": [
        [
          {
            "node": "Convert invoice File to Base64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split line Items from Invoice": {
      "main": [
        [
          {
            "node": "Save Data to Google Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert invoice File to Base64": {
      "main": [
        [
          {
            "node": "Send file to Dumpling AI for Data Extraction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Dumpling AI JSON Response": {
      "main": [
        [
          {
            "node": "Split line Items from Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send file to Dumpling AI for Data Extraction": {
      "main": [
        [
          {
            "node": "Parse Dumpling AI JSON Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger – Watch Folder for New Files": {
      "main": [
        [
          {
            "node": "Download Invoice File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}