{
  "name": "Build a company website RAG chatbot using Apify, Pinecone and Gemini",
  "nodes": [
    {
      "id": "09ac58e3-6087-4e79-a2bb-a0ae2ca5d5a2",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        240,
        240
      ]
    },
    {
      "id": "bb8a134c-d2ac-4ebd-bd62-4bc5de691e9f",
      "name": "Embeddings Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        208,
        528
      ]
    },
    {
      "id": "fdc7c33c-2d4e-4b71-8051-ae1b2c0f27a2",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        400,
        464
      ]
    },
    {
      "id": "481a5d38-f18e-4aff-add0-b06183892ed6",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        560,
        688
      ]
    },
    {
      "id": "cd132fcf-10fd-439e-be41-2421934188e9",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -16,
        1088
      ]
    },
    {
      "id": "a4b400dd-0547-4ae5-9067-2cc618e30fc2",
      "name": "Vector Store Tool",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        496,
        1200
      ]
    },
    {
      "id": "1bbf4fdf-c8c0-4f4b-9c48-675b2de00fd4",
      "name": "Pinecone Vector Store (Retrieval)",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        320,
        1440
      ]
    },
    {
      "id": "862bac5f-4af9-4b79-898f-3c65f377695c",
      "name": "Embeddings Google Gemini (retrieval)",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        272,
        1648
      ]
    },
    {
      "id": "2a54bc3d-d09e-43a7-9fe8-8c9856ed7acc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        992
      ],
      "parameters": {
        "width": 1392,
        "height": 912,
        "content": "## Chat bot logic"
      }
    },
    {
      "id": "144c7d7e-8b52-4b19-bb75-9548568700a3",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        112,
        1376
      ]
    },
    {
      "id": "e1caf870-a499-4082-a005-59b38516f5b8",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -368,
        1088
      ]
    },
    {
      "id": "8446347a-3466-42dc-a09c-73ee7176eb15",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -128,
        1392
      ]
    },
    {
      "id": "a169290d-cd1b-4913-8347-908de915e360",
      "name": "Google Gemini Chat Model (retrieval)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        768,
        1424
      ]
    },
    {
      "id": "34ac062b-1c3f-41f2-8d05-6c4f080e11e5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        464
      ],
      "parameters": {
        "width": 420,
        "height": 720,
        "content": "## Set up guide\n\nAll Nodes with an orange sticky note require setup.\n\n**Get your tools set up:**\n1 Google Cloud Project and Vertex AI API:\n* Create a Google Cloud project.\n* Enable the Vertex AI API f"
      }
    },
    {
      "id": "a44e688b-7d6e-4e92-af8e-541714a52c86",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -384,
        240
      ]
    },
    {
      "id": "eaf6d91a-54e5-4c58-bdca-a996051c1ac1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 288,
        "content": "\nChoose the update frequency"
      }
    },
    {
      "id": "d21591be-d555-430e-aad1-20160d055ea9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        112
      ],
      "parameters": {
        "width": 224,
        "height": 288,
        "content": "Connect your Apify Actor\nSetup target website in JSON input, instead of tetriz.io"
      }
    },
    {
      "id": "066a4d09-5329-4f5a-8b37-f950b8d51d77",
      "name": "Scrape website data",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -128,
        240
      ]
    },
    {
      "id": "80d93e16-6b55-4934-afc4-9ccd0321a97a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        176
      ],
      "parameters": {
        "width": 368,
        "height": 208,
        "content": "**Environment setting:**\nConnect Pinecone (using Pinecone API key)"
      }
    },
    {
      "id": "a59f473c-7da8-46e7-bef8-5b5a1a0e5b2a",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        464
      ],
      "parameters": {
        "width": 208,
        "height": 304,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n**Environment setting:**\nConnect Google Gemini (using your Google AI API key)"
      }
    },
    {
      "id": "030a5bb7-953b-4d00-84fd-88b68ca326e3",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        1344
      ],
      "parameters": {
        "width": 208,
        "height": 320,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n**Environment setting:**\nConnect Google Gemini (using your Google AI API key)"
      }
    },
    {
      "id": "3ff672ce-6e3a-420e-8a47-73b25bc10de9",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        1328
      ],
      "parameters": {
        "width": 208,
        "height": 336,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n**Environment setting:**\nConnect Google Gemini (using your Google AI API key)"
      }
    },
    {
      "id": "3ff43827-49e3-4da3-ba60-1a2835f26e0c",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        1584
      ],
      "parameters": {
        "width": 208,
        "height": 304,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n**Environment setting:**\nConnect Google Gemini (using your Google AI API key)"
      }
    },
    {
      "id": "f28432e3-74e9-46e6-bcc7-140e91e30c89",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        1344
      ],
      "parameters": {
        "width": 368,
        "height": 208,
        "content": "**Environment setting:**\nConnect Pinecone (using Pinecone API key)"
      }
    },
    {
      "id": "ffdb313d-fc36-4ad0-8faa-ae70aa50e0f0",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        32
      ],
      "parameters": {
        "width": 1392,
        "height": 912,
        "content": "## Training logic"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Scrape website data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vector Store Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Scrape website data": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store (Retrieval)": {
      "ai_vectorStore": [
        [
          {
            "node": "Vector Store Tool",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini (retrieval)": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store (Retrieval)",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model (retrieval)": {
      "ai_languageModel": [
        [
          {
            "node": "Vector Store Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}