{
  "name": "Build enterprise RAG system with Google Gemini file search & retell AI voice",
  "nodes": [
    {
      "id": "2021892f-abce-4b0c-9b6f-1c1d4d67f546",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -848,
        -224
      ]
    },
    {
      "id": "27bca463-6d0b-4aa5-a653-78716eb61ec8",
      "name": "Create Gemini File Search Store",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -640,
        -224
      ]
    },
    {
      "id": "44c1de29-f905-455e-932e-db258b4a3848",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        -448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c2e67eb5-596a-492d-b363-a07c7fb3c987",
      "name": "Google Drive - RAG Source",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        160,
        -224
      ]
    },
    {
      "id": "409d0bf1-7c14-4db7-8cda-d9f8c540e6ea",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        832,
        -224
      ]
    },
    {
      "id": "8434a81b-428d-42ea-95b4-e8da7317214a",
      "name": "Store File Store",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -432,
        -224
      ]
    },
    {
      "id": "b5c3bd21-3c39-4b65-92fd-42a5079e1b68",
      "name": "Get File Search Store",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        384,
        -224
      ]
    },
    {
      "id": "cbe3d8e3-425a-4944-8341-dbca2f0d62ee",
      "name": "Initial File Upload to Gemini Search",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        608,
        -224
      ]
    },
    {
      "id": "fb885a30-8fbf-47f3-9c00-be23909894ce",
      "name": "Upload the Actual File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1056,
        -224
      ]
    },
    {
      "id": "370e9371-7b65-40c2-b4bf-68a59cdc72b5",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -384,
        480
      ]
    },
    {
      "id": "24458dd8-b77d-421e-91ab-9bb70f99e8d2",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        80,
        784
      ]
    },
    {
      "id": "4559b2fa-67a9-4b7c-b9fe-7a1833c19ddc",
      "name": "Search Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        896,
        864
      ]
    },
    {
      "id": "166b88e7-b648-46ab-82ec-246e2c782e33",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        576
      ]
    },
    {
      "id": "a41fe09a-fea5-431c-96c4-31f9178e9002",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -608,
        1024
      ]
    },
    {
      "id": "3ee14e29-0843-485a-b51c-4f3be82381a9",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        848,
        384
      ]
    },
    {
      "id": "40d27b49-d34d-42ea-a909-3b52246ee8e9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        -448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9673e5e9-ba45-4203-b712-b8424dde0798",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1a29fe51-ba15-40d4-b8fb-3e9b733be540",
      "name": "AI Powered RAG Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        192,
        576
      ]
    },
    {
      "id": "14852c74-ebb3-47b2-89d5-f3e8f16f15b1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        336
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "259656d1-07c2-4315-8304-d379cd0953d6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3d5a3f24-c7cd-46fd-bc29-e253abbd07c1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5f90b6d5-188b-42c1-9e21-b04db070342b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f20322c7-aaa3-42a9-9289-9e34764b7475",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c0199b99-1357-44a1-8565-efb1caf4898f",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fc1914fb-26f3-42f8-8ca2-553bead99fb8",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        144
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a7513359-e983-47d9-83fe-32d5ec8709fa",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        928
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Powered RAG Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Powered RAG Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Upload the Actual File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Powered RAG Agent": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File Search Store": {
      "main": [
        [
          {
            "node": "Initial File Upload to Gemini Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Powered RAG Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive - RAG Source": {
      "main": [
        [
          {
            "node": "Get File Search Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Gemini File Search Store": {
      "main": [
        [
          {
            "node": "Store File Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Initial File Upload to Gemini Search": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Create Gemini File Search Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}