{
  "name": "IT support chatbot with Google Drive, Pinecone & Gemini | AI doc processing",
  "nodes": [
    {
      "id": "e7769ee7-a247-426e-b792-c095597ada54",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        320,
        700
      ]
    },
    {
      "id": "72ca46ad-891f-42f2-81d7-00e04e1c6f5f",
      "name": "Monitor Google Drive for New Files",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -520,
        -240
      ]
    },
    {
      "id": "03e9dc61-bdba-49d7-859e-73b8adebae41",
      "name": "Download File from Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -300,
        -240
      ]
    },
    {
      "id": "782fc162-0c3f-40fc-af92-455c1250ede0",
      "name": "Extract PDF Content",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -80,
        -240
      ]
    },
    {
      "id": "b8da9cff-756b-419e-b39a-4ad1020092d0",
      "name": "Insert Document into Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        360,
        -240
      ]
    },
    {
      "id": "f5b93646-b466-4cd7-aec9-6fae62023fa3",
      "name": "Generate Document Embeddings (Google Gemini)",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        260,
        20
      ]
    },
    {
      "id": "b5277663-3120-4614-85e3-f7dc05c4e1c2",
      "name": "Clean and Normalize PDF Text",
      "type": "n8n-nodes-base.code",
      "position": [
        140,
        -240
      ]
    },
    {
      "id": "68aa5515-6b58-4e98-ab08-4d9516e1f2a3",
      "name": "Load Document Data for Processing",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        480,
        20
      ]
    },
    {
      "id": "3f463338-c692-4b7b-a888-8c00d190c441",
      "name": "Split Document Text into Chunks",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        380,
        240
      ]
    },
    {
      "id": "9c4a7ec9-0808-443f-9e12-9ec12c7288b9",
      "name": "Chat Message Trigger",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -520,
        700
      ]
    },
    {
      "id": "ee62efc9-60b2-40ec-a10c-8897d24b1429",
      "name": "Retrieve Relevant Documents from Pinecone",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -260,
        700
      ]
    },
    {
      "id": "8d479b6b-3c87-40c6-8a68-4390e6bafac8",
      "name": "Generate Query Embeddings (Google Gemini)",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        -280,
        940
      ]
    },
    {
      "id": "f521d243-1b62-4bc5-972d-736c65c48818",
      "name": "Generate Chat Prompt with Context",
      "type": "n8n-nodes-base.code",
      "position": [
        100,
        700
      ]
    },
    {
      "id": "208057c8-8672-41d2-9c99-89e52856a742",
      "name": "OpenRouter Chat Model Interface",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        280,
        940
      ]
    }
  ],
  "connections": {
    "Extract PDF Content": {
      "main": [
        [
          {
            "node": "Clean and Normalize PDF Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Message Trigger": {
      "main": [
        [
          {
            "node": "Retrieve Relevant Documents from Pinecone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean and Normalize PDF Text": {
      "main": [
        [
          {
            "node": "Insert Document into Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File from Google Drive": {
      "main": [
        [
          {
            "node": "Extract PDF Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model Interface": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Split Document Text into Chunks": {
      "ai_textSplitter": [
        [
          {
            "node": "Load Document Data for Processing",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Generate Chat Prompt with Context": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load Document Data for Processing": {
      "ai_document": [
        [
          {
            "node": "Insert Document into Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Monitor Google Drive for New Files": {
      "main": [
        [
          {
            "node": "Download File from Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Query Embeddings (Google Gemini)": {
      "ai_embedding": [
        [
          {
            "node": "Retrieve Relevant Documents from Pinecone",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Relevant Documents from Pinecone": {
      "main": [
        [
          {
            "node": "Generate Chat Prompt with Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Document Embeddings (Google Gemini)": {
      "ai_embedding": [
        [
          {
            "node": "Insert Document into Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    }
  }
}