{
  "name": "Automate systematic literature reviews with Google Drive, GPT-4, Gemini, Qdrant and Airtable",
  "nodes": [
    {
      "id": "9ca3f3bd-7c5c-4d5f-9484-147e21f49ab9",
      "name": "Download PDF",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1216,
        608
      ]
    },
    {
      "id": "7b9a905c-e9ce-4976-bae6-5e557689fa1d",
      "name": "Extract PDF Text",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1440,
        608
      ]
    },
    {
      "id": "531bc118-781a-4ce8-9f28-59a1ebf02f56",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        4144,
        640
      ]
    },
    {
      "id": "3178736a-ef7c-433b-9b8f-1a242e0f6aa9",
      "name": "Default Data Loader1",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        4096,
        1040
      ]
    },
    {
      "id": "c326a15f-b329-4be6-98f1-a296f6e91e2a",
      "name": "Default Data Loader2",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        4080,
        1456
      ]
    },
    {
      "id": "299adc62-3a6d-4bd9-9711-5665197ee9b5",
      "name": "Embeddings Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        3936,
        1456
      ]
    },
    {
      "id": "d47672ba-ef0e-4ed5-9a1b-350a104d598e",
      "name": "Embeddings Google Gemini1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        3952,
        1040
      ]
    },
    {
      "id": "ace691a3-2216-42be-9959-fed7ab0e644d",
      "name": "Embeddings Google Gemini2",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        3968,
        640
      ]
    },
    {
      "id": "099262de-5dd7-4720-b6d9-2df151e36e0a",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        944,
        592
      ]
    },
    {
      "id": "ac4f98af-6ef7-418c-aa87-e97ebd78cef3",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        384,
        592
      ]
    },
    {
      "id": "57fd7572-519d-466e-b331-55e8c3064a14",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2176,
        768
      ]
    },
    {
      "id": "080599d6-359a-48ae-a060-35450b6c7a4e",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2080,
        880
      ]
    },
    {
      "id": "2f2c6118-0fb4-4442-865c-5c2ec07c853e",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        2512,
        608
      ]
    },
    {
      "id": "3b65637b-5cd0-439a-9eb3-69736e431ada",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2976,
        576
      ]
    },
    {
      "id": "b5f9c81d-a0df-4a9e-9c6f-a4ae03f2b4e5",
      "name": "Google Gemini Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3088,
        720
      ]
    },
    {
      "id": "27cecd6b-9eee-4c59-825a-f05e90de1c8d",
      "name": "Search files and folders",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        688,
        592
      ]
    },
    {
      "id": "ccbb01d2-23bc-4efc-a8d0-0eb1ff25210c",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1888,
        768
      ]
    },
    {
      "id": "d140f251-8959-4291-8e15-11d279e1317a",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2784,
        592
      ]
    },
    {
      "id": "1022012e-ed01-4283-9177-7c76e263c6a3",
      "name": "📋 Overview: SLR Paper Review Agent",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -368
      ],
      "parameters": {
        "width": 544,
        "height": 592,
        "content": "## SLR Paper Review Agent\n\nThis workflow automates systematic literature review (SLR) for academic papers. It downloads papers from Google Drive, applies strict inclusion/exclusion criteria using LLM "
      }
    },
    {
      "id": "16251c5a-8106-401d-9f1e-0be3cf8a0493",
      "name": "Stage 1: Paper Input & Extraction",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        272
      ],
      "parameters": {
        "width": 1648,
        "height": 720,
        "content": "## Stage 1: Paper Input & Extraction\n\nSearches Google Drive for papers, downloads PDFs, and extracts text content for review."
      }
    },
    {
      "id": "33d738c7-31a3-4725-9391-047f43e92005",
      "name": "Stage 2: LLM-Based SLR Review",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1808,
        272
      ],
      "parameters": {
        "width": 672,
        "height": 736,
        "content": "## Stage 2: LLM-Based SLR Review\n\nApplies strict inclusion/exclusion criteria using LLM agents. Evaluates papers against IC (4 criteria) and EC (4 criteria) with PRISMA documentation."
      }
    },
    {
      "id": "ce169d05-c0a9-4110-9bc6-738164a991ef",
      "name": "Stage 3: Decision Routing & Logging",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        272
      ],
      "parameters": {
        "width": 1040,
        "height": 736,
        "content": "## Stage 3: Decision Routing & Logging\n\nRoutes papers based on review decision (Included/Excluded). Logs all decisions to Airtable with DOI, authors, title, reasoning, and score."
      }
    },
    {
      "id": "4774df2b-a20f-49f9-8617-3e0f673d9268",
      "name": "Stage 4: Vector Store & File Organization",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3520,
        272
      ],
      "parameters": {
        "width": 1616,
        "height": 1392,
        "content": "## Stage 4: Vector Store & File Organization\n\nStores included papers in Qdrant collections with Gemini embeddings. Organizes all papers into included/excluded folders."
      }
    },
    {
      "id": "4dcc0f90-3688-483d-8a9a-5f71f4d0555e",
      "name": "Log Excluded Paper",
      "type": "n8n-nodes-base.airtable",
      "position": [
        2672,
        848
      ]
    },
    {
      "id": "66099deb-0697-43de-852f-283450910c97",
      "name": "Move file to Excluded Folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2896,
        848
      ]
    },
    {
      "id": "60ca27c8-2505-4c17-9033-519e0b705abe",
      "name": "SLR Agent",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1984,
        608
      ]
    },
    {
      "id": "d4736b18-844a-4ed6-b018-fb4ef6b8ed86",
      "name": "Scoring Agent",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2848,
        384
      ]
    },
    {
      "id": "a72208aa-d604-4d35-b4ac-e261672a198c",
      "name": "Log Included folder",
      "type": "n8n-nodes-base.airtable",
      "position": [
        3328,
        416
      ]
    },
    {
      "id": "cec16c84-ee57-40ed-ad24-5972607c8f98",
      "name": "Move file to included folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        4480,
        1472
      ]
    },
    {
      "id": "785afcc8-9ccf-4e7f-ad40-d01fff495718",
      "name": "Move file to included folder1",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        4720,
        1472
      ]
    },
    {
      "id": "22a4af64-02f0-4884-b280-1355465247d3",
      "name": "Move file to included folder2",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        4960,
        1472
      ]
    },
    {
      "id": "8d2e0162-c05b-45ab-888e-894ed7f5cf4b",
      "name": "Vector Store - collection 1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        4000,
        416
      ]
    },
    {
      "id": "a8563e2f-ec90-4ab8-aee7-85501d9a5c52",
      "name": "Vector Store - collection 2",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        3968,
        816
      ]
    },
    {
      "id": "b249a9a8-661c-428f-be3b-d62a18dd04c9",
      "name": "Vector Store - collection 3",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        3952,
        1264
      ]
    },
    {
      "id": "c0309ed1-659a-4339-afbe-be27836db008",
      "name": "Cut of bibliography",
      "type": "n8n-nodes-base.code",
      "position": [
        1648,
        608
      ]
    },
    {
      "id": "293221e1-cec4-47f4-a31d-b3cde4905d50",
      "name": "Route to sub topic",
      "type": "n8n-nodes-base.switch",
      "position": [
        3568,
        784
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Scoring Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Excluded Paper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SLR Agent": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PDF": {
      "main": [
        [
          {
            "node": "Extract PDF Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scoring Agent": {
      "main": [
        [
          {
            "node": "Route to sub topic",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log Included folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Download PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract PDF Text": {
      "main": [
        [
          {
            "node": "Cut of bibliography",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "SLR Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Log Excluded Paper": {
      "main": [
        [
          {
            "node": "Move file to Excluded Folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Scoring Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Route to sub topic": {
      "main": [
        [
          {
            "node": "Vector Store - collection 1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Vector Store - collection 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Vector Store - collection 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cut of bibliography": {
      "main": [
        [
          {
            "node": "SLR Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Vector Store - collection 1",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader1": {
      "ai_document": [
        [
          {
            "node": "Vector Store - collection 2",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader2": {
      "ai_document": [
        [
          {
            "node": "Vector Store - collection 3",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini": {
      "ai_embedding": [
        [
          {
            "node": "Vector Store - collection 3",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Search files and folders": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "SLR Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini1": {
      "ai_embedding": [
        [
          {
            "node": "Vector Store - collection 2",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini2": {
      "ai_embedding": [
        [
          {
            "node": "Vector Store - collection 1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Scoring Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Vector Store - collection 1": {
      "main": [
        [
          {
            "node": "Move file to included folder2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vector Store - collection 2": {
      "main": [
        [
          {
            "node": "Move file to included folder1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vector Store - collection 3": {
      "main": [
        [
          {
            "node": "Move file to included folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move file to Excluded Folder": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move file to included folder": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move file to included folder1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move file to included folder2": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Search files and folders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}