AutomationFlowsAI & RAG › Build Enterprise RAG System with Google Gemini File Search & Retell AI Voice

Build Enterprise RAG System with Google Gemini File Search & Retell AI Voice

BySandeep Patharkar | www.FastTrackAiMastery.com @sandy4v on n8n.io

Build a complete enterprise-grade RAG pipeline using Google Gemini’s brand-new File Search API, combined with a powerful Retell AI voice agent (JARVIS) as the conversational front end. This workflow is designed for AI automation agencies, SMBs, enterprise teams, and internal AI…

Event trigger★★★★☆ complexityAI-powered26 nodesHTTP RequestGoogle Drive TriggerGoogle DriveGoogle SheetsChat TriggerGoogle Gemini ChatHTTP Request ToolAgent
AI & RAG Trigger: Event Nodes: 26 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #11269 — we link there as the canonical source.

This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

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

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Build a complete enterprise-grade RAG pipeline using Google Gemini’s brand-new File Search API, combined with a powerful Retell AI voice agent (JARVIS) as the conversational front end. This workflow is designed for AI automation agencies, SMBs, enterprise teams, and internal AI…

Source: https://n8n.io/workflows/11269/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Based on the Google Sheet data, the AI will retrieve the userstories ID's, retrieves the userstory data and the corresponding attachments and creates sprint goals according to the defined system promp

Google Gemini Chat, Google Sheets, HTTP Request Tool +6
AI & RAG

Extract data from any PDF or image invoice dropped in Google Drive directly into Google Sheets – powered by AI OCR. Free, fully modifiable n8n workflow. Optional add-ons for pro features.

Google Drive Trigger, Google Drive, Google Sheets +3
AI & RAG

This workflow automates the extraction and processing of invoice data from PDFs stored in a Google Drive folder. It leverages Google Drive, Google Sheets, and Gemini AI to streamline invoice managemen

Google Gemini Chat, Google Sheets, HTTP Request +5
AI & RAG

An advanced N8N workflow to anonymize and reformat resumes for internal or external distribution

Google Drive, Google Gemini Chat, Google Sheets +3
AI & RAG

This comprehensive workflow automates the complete financial document processing pipeline using AI. Upload invoices via chat, drop expense receipts into a folder, or add bank statements - the system a

Chat Trigger, HTTP Request, Google Sheets +8