{
  "name": "Extract and log data to Airtable with Google Gemini, ILovePDF, and Google Drive",
  "nodes": [
    {
      "id": "3ea7b386-7abc-4492-85bb-63cd0e7e6f30",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2020,
        200
      ]
    },
    {
      "id": "687ce062-9395-42ed-a1f2-6f94d6633d5a",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1980,
        440
      ]
    },
    {
      "id": "4936ad23-c94f-4703-82fd-96eb39c2b0f3",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        840,
        260
      ]
    },
    {
      "id": "7cd507a6-35c0-4ffb-bd9c-641aad7ebacc",
      "name": "Compression",
      "type": "n8n-nodes-base.compression",
      "position": [
        1660,
        40
      ]
    },
    {
      "id": "dcb9f042-3afb-4341-a20d-8d5345b39460",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1660,
        260
      ]
    },
    {
      "id": "376da694-9bc7-41ca-9874-8eaf4e7e1bd0",
      "name": "get server get task",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        60
      ]
    },
    {
      "id": "da05d062-0aca-4d38-b71f-eaac2c27f1ad",
      "name": "upload pdf",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1060,
        260
      ]
    },
    {
      "id": "440c4128-67c1-4c60-b006-fd9d74ec22d0",
      "name": "convert to jpg",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1260,
        260
      ]
    },
    {
      "id": "e329cd44-d337-4bc4-8742-c9efa82fa3f9",
      "name": "download file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1460,
        260
      ]
    },
    {
      "id": "2fce8ce5-fee6-4377-adaa-54ed405567cb",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2260,
        440
      ]
    },
    {
      "id": "5c1b7997-35db-4dd3-bb35-d3d8c2311a15",
      "name": "Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        2500,
        220
      ]
    },
    {
      "id": "eeaec474-020b-45f8-a412-2e47017617bd",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        60,
        100
      ]
    },
    {
      "id": "1defcb41-ddf5-47ce-817c-77c145628565",
      "name": "move file to done",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2840,
        220
      ]
    },
    {
      "id": "74a73b6e-f21b-4f61-a5dd-38a95ea25f9a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -20
      ],
      "parameters": {
        "width": 260,
        "height": 100,
        "content": "Upload file to the file google drive\nGet your Iloveapi here:\nhttps://www.iloveapi.com/"
      }
    },
    {
      "id": "460141cc-33ec-4784-ba0e-1f8d20c46de8",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        660,
        420
      ]
    },
    {
      "id": "21e33675-02d0-423b-bef7-609634e3bf4b",
      "name": "Upload your file to google drive",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        80,
        360
      ]
    },
    {
      "id": "8a943a2f-e785-4255-884d-9f4e07c37601",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        140
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Add the public key"
      }
    },
    {
      "id": "663638af-7206-4f70-9ec6-83b08e84de36",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2420,
        120
      ],
      "parameters": {
        "width": 260,
        "height": 80,
        "content": "Change it to your airtable.\nYou can also change it to google sheet if you want"
      }
    },
    {
      "id": "a9dde745-7c5f-46e7-bd26-f50b4024062d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2020,
        80
      ],
      "parameters": {
        "width": 260,
        "height": 100,
        "content": "You can change the prompt to get the information you want"
      }
    },
    {
      "id": "23c98648-e425-494b-96e6-604850e7af57",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2180,
        600
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "You can change the json  to what you need based on the example."
      }
    },
    {
      "id": "d81aa256-d494-40ed-9ddc-81837a6a72f6",
      "name": "Get token",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        240
      ]
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "upload pdf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Compression",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable": {
      "main": [
        [
          {
            "node": "move file to done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get token": {
      "main": [
        [
          {
            "node": "get server get task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "upload pdf": {
      "main": [
        [
          {
            "node": "convert to jpg",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compression": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "download file": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "convert to jpg": {
      "main": [
        [
          {
            "node": "download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get server get task": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Upload your file to google drive": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}