{
  "name": "Draft and manage academic research papers with GPT-4 and Pinecone",
  "nodes": [
    {
      "id": "c8d8047d-0f3f-41fb-bd17-607a40f77aa7",
      "name": "Schedule Research Monitoring",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2144,
        408
      ]
    },
    {
      "id": "d73d19f7-f096-4fc0-9763-f80e95a9f05e",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1920,
        408
      ]
    },
    {
      "id": "a7b79205-eb6c-4f86-a1b3-827272502801",
      "name": "Fetch Academic Papers",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1696,
        120
      ]
    },
    {
      "id": "bb8ea0ec-5fed-4506-a904-323992c575e5",
      "name": "Fetch Patents",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1696,
        312
      ]
    },
    {
      "id": "b3b5d2b0-3dad-412a-a7cc-5dd667ba28a1",
      "name": "Fetch Datasets",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1696,
        504
      ]
    },
    {
      "id": "8b591be0-2d8b-4acd-99c6-6e40e2b081e1",
      "name": "Fetch Technical Blogs",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1696,
        696
      ]
    },
    {
      "id": "3582f641-2ed2-49a3-8514-c6825fb907b5",
      "name": "Combine All Sources",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1472,
        376
      ]
    },
    {
      "id": "1b3dc8fe-97b2-4678-b94a-63a5390e627f",
      "name": "Rate Limit Delay",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1248,
        408
      ]
    },
    {
      "id": "6e80db4a-9560-4765-87b7-cbad7e2034ee",
      "name": "Research Analysis Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -472,
        408
      ]
    },
    {
      "id": "5e010ed1-caa3-4a0e-9ce9-0e4cd6261803",
      "name": "OpenAI GPT-4 Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -528,
        632
      ]
    },
    {
      "id": "4beeb5a7-49e0-4f06-a098-cd4f302e6725",
      "name": "Analysis Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -272,
        632
      ]
    },
    {
      "id": "cbcbfb84-7c38-4623-9a07-7be2c1762c65",
      "name": "Research Context Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -400,
        632
      ]
    },
    {
      "id": "8ed3cd7e-af1e-402c-970b-c34fe8064fe6",
      "name": "Knowledge Base Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        -992,
        408
      ]
    },
    {
      "id": "997c0da8-bf44-4280-9f27-7d83e910d670",
      "name": "OpenAI Embeddings",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -1024,
        632
      ]
    },
    {
      "id": "45aef773-e122-4cdc-be28-62a8ea7847e9",
      "name": "Document Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        -896,
        632
      ]
    },
    {
      "id": "ea96fe39-e71a-4d26-99e4-31b6f49b32b9",
      "name": "Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        -816,
        840
      ]
    },
    {
      "id": "4810d58b-6cac-42a6-8567-5130d1fe8153",
      "name": "Manuscript Drafting Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        96,
        128
      ]
    },
    {
      "id": "b9205d2b-96fc-46d7-9864-cc4d98508c66",
      "name": "OpenAI GPT-4 Drafting Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        80,
        320
      ]
    },
    {
      "id": "d58f0bbb-c996-4827-9509-c4b4c04aba4f",
      "name": "Manuscript Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        448,
        352
      ]
    },
    {
      "id": "44dd8a76-7345-4385-b7b2-854bf9b043eb",
      "name": "Citation Reference Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        192,
        320
      ]
    },
    {
      "id": "484521db-9ecf-44e7-ace2-f0b24d97ba98",
      "name": "Citation Embeddings",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        192,
        512
      ]
    },
    {
      "id": "f4eab033-b7b6-43ae-993d-54728aa5c78b",
      "name": "Validate References API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        224
      ]
    },
    {
      "id": "a9956d04-bfcd-4a7e-843d-b9fe927353f3",
      "name": "Plagiarism Check API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        224
      ]
    },
    {
      "id": "e2bdd907-3d61-4131-bbf0-1e9afe0043c5",
      "name": "Check Validation Results",
      "type": "n8n-nodes-base.if",
      "position": [
        1024,
        304
      ]
    },
    {
      "id": "96d29eed-5358-4714-9ea9-c5b85199c985",
      "name": "Save to Research Database",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        144,
        704
      ]
    },
    {
      "id": "29e2854e-6813-4901-b0cb-fdc79ee9b041",
      "name": "Track Submission Deadlines",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1600,
        304
      ]
    },
    {
      "id": "a2eb4119-ba63-4037-b9e8-f3635b960a65",
      "name": "Log Reviewer Feedback",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1824,
        304
      ]
    },
    {
      "id": "0f639c1b-86c3-47cb-97bc-bbfdf930be56",
      "name": "Format Adaptation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1248,
        304
      ]
    },
    {
      "id": "d023aacf-0676-46cc-bc60-faa7aaad5aea",
      "name": "OpenAI Format Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1248,
        528
      ]
    },
    {
      "id": "6d81b3dc-44b8-42c3-90c5-13f840ddc93d",
      "name": "Format Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1376,
        528
      ]
    },
    {
      "id": "f91456be-f86f-4e52-a32c-0548b5d8d86b",
      "name": "Learning Optimization Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2048,
        304
      ]
    },
    {
      "id": "4461d584-256a-4d8a-a7ca-33a7c52f64b0",
      "name": "OpenAI Learning Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2048,
        528
      ]
    },
    {
      "id": "cfb7e42a-a5b7-4c87-ac62-daa02cfa08ca",
      "name": "Learning Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2176,
        528
      ]
    },
    {
      "id": "caf2492e-e56e-440d-bba1-3384bce15eaa",
      "name": "Store Learning Insights",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2400,
        304
      ]
    },
    {
      "id": "0e4d4dbd-f0f8-4ca2-b568-b2b226a0b366",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2208,
        -48
      ],
      "parameters": {
        "width": 1104,
        "height": 1040,
        "content": "## Document Ingestion \nExtracts text from PDFs and academic papers using multiple extraction methods for reliability.\n## Why:\nEnsures comprehensive text capture from diverse document formats, preventi"
      }
    },
    {
      "id": "ab6e5669-52ef-4143-914d-9a99a0b4b6e8",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -352
      ],
      "parameters": {
        "width": 544,
        "height": 288,
        "content": "## Prerequisites\nActive accounts and API keys for Pinecone, OpenAI \n## Use Cases\nLiterature review automation with semantic paper discovery. \n## Customization\nModify AI model selection logic for domai"
      }
    },
    {
      "id": "f6be4f03-7a78-486f-a0ec-611f1e365481",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        -352
      ],
      "parameters": {
        "width": 432,
        "height": 288,
        "content": "## Setup Steps\n1. Configure Pinecone credentials  \n2. Add OpenAI API key for GPT-4 access and embeddings\n3. Set up Anthropic Claude API credentials for advanced reasoning\n4. Configure NVIDIA NIM API k"
      }
    },
    {
      "id": "a85fe669-0920-4747-ab31-f7c29cc589be",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2208,
        -320
      ],
      "parameters": {
        "width": 928,
        "height": 240,
        "content": "## How It Works\nThis workflow automates academic research processing by routing queries through specialized AI models while maintaining contextual memory. Designed for researchers, faculty, and gradua"
      }
    },
    {
      "id": "5fdfd941-adc9-4c74-bc1b-8d2661075143",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        -48
      ],
      "parameters": {
        "width": 960,
        "height": 1024,
        "content": "## Vector Storage \nEmbeds processed content into Pinecone vector database with metadata tagging.\n## Why:\nEnables semantic search across research corpus, allowing contextually relevant retrieval rather"
      }
    },
    {
      "id": "c0b55cdb-61e2-41d2-abf9-5155f3191b77",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -48
      ],
      "parameters": {
        "width": 2704,
        "height": 1056,
        "content": "## AI Routing \nAnalyzes query complexity and routes to OpenAI GPT-4, Claude, or NVIDIA models based on task requirements.\n## Why: \nOptimizes cost and performance by matching specialized models to spec"
      }
    }
  ],
  "connections": {
    "Fetch Patents": {
      "main": [
        [
          {
            "node": "Combine All Sources",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Document Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Datasets": {
      "main": [
        [
          {
            "node": "Combine All Sources",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Document Loader": {
      "ai_document": [
        [
          {
            "node": "Knowledge Base Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Rate Limit Delay": {
      "main": [
        [
          {
            "node": "Knowledge Base Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Embeddings": {
      "ai_embedding": [
        [
          {
            "node": "Knowledge Base Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Model": {
      "ai_languageModel": [
        [
          {
            "node": "Research Analysis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Citation Embeddings": {
      "ai_embedding": [
        [
          {
            "node": "Citation Reference Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Combine All Sources": {
      "main": [
        [
          {
            "node": "Rate Limit Delay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Format Model": {
      "ai_languageModel": [
        [
          {
            "node": "Format Adaptation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Format Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Format Adaptation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Plagiarism Check API": {
      "main": [
        [
          {
            "node": "Check Validation Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Academic Papers": {
      "main": [
        [
          {
            "node": "Combine All Sources",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Technical Blogs": {
      "main": [
        [
          {
            "node": "Combine All Sources",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Log Reviewer Feedback": {
      "main": [
        [
          {
            "node": "Learning Optimization Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Learning Model": {
      "ai_languageModel": [
        [
          {
            "node": "Learning Optimization Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Analysis Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Research Analysis Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Learning Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Learning Optimization Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Academic Papers",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Patents",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Datasets",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Technical Blogs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Adaptation Agent": {
      "main": [
        [
          {
            "node": "Track Submission Deadlines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Analysis Agent": {
      "main": [
        [
          {
            "node": "Save to Research Database",
            "type": "main",
            "index": 0
          },
          {
            "node": "Manuscript Drafting Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Context Memory": {
      "ai_memory": [
        [
          {
            "node": "Research Analysis Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Validate References API": {
      "main": [
        [
          {
            "node": "Plagiarism Check API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Validation Results": {
      "main": [
        [
          {
            "node": "Format Adaptation Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Manuscript Drafting Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Citation Reference Store": {
      "ai_tool": [
        [
          {
            "node": "Manuscript Drafting Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Manuscript Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Manuscript Drafting Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Manuscript Drafting Agent": {
      "main": [
        [
          {
            "node": "Validate References API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Track Submission Deadlines": {
      "main": [
        [
          {
            "node": "Log Reviewer Feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Knowledge Base Vector Store": {
      "main": [
        [
          {
            "node": "Research Analysis Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Learning Optimization Agent": {
      "main": [
        [
          {
            "node": "Store Learning Insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4 Drafting Model": {
      "ai_languageModel": [
        [
          {
            "node": "Manuscript Drafting Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Research Monitoring": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}