Skip to main content

IT support chatbot with Google Drive, Pinecone & Gemini | AI doc processing

Workflow preview

Workflow preview
100%
IT support chatbot with Google Drive, Pinecone & Gemini | AI doc processing preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template empowers IT support teams by automating document ingestion and instant query resolution through a conversational AI. It integrates Google Drive , Pinecone , and a Chat AI agent (u...

Best for

  • Internal Wiki automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive, n8n-nodes-base.extractfromfile, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsgooglegemini, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.documentdefaultdataloader

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AI Incarnation.

Original n8n.io source

1.1 Workflow description

Title
IT support chatbot with Google Drive, Pinecone & Gemini | AI doc processing
Workflow name
IT support chatbot with Google Drive, Pinecone & Gemini | AI doc processing

This n8n template empowers IT support teams by automating document ingestion and instant query resolution through a conversational AI. It integrates Google Drive, Pinecone, and a Chat AI agent (using Google Gemini/OpenRouter) to transform static support documents into an interactive, searchable knowledge base. With two interlinked workflows—one for processing support documents and one for handling chat queries—employees receive fast, context-aware answers directly from your support documentation.

Overview

Document Ingestion Workflow

  • Google Drive Trigger: Monitors a specified folder for new file uploads (e.g., updated support documents).
  • File Download & Extraction: Automatically downloads new files and extracts text content.
  • Data Cleaning & Text Splitting: Utilizes a Code node to remove line breaks, trim extra spaces, and strip special characters, while a text splitter segments the content into manageable chunks.
  • Embedding & Storage: Generates text embeddings using Google Gemini and stores them in a Pinecone vector store for rapid similarity search.

Chat Query Workflow

  • Chat Trigger: Initiates when an employee sends a support query.
  • Vector Search & Context Retrieval: Retrieves the top relevant document segments from Pinecone based on similarity scores.
  • Prompt Construction: A Code node combines the retrieved document snippets with the user’s query into a detailed prompt.
  • AI Agent Response: The constructed prompt is sent to an AI agent (using OpenRouter Chat Model) to generate a clear, step-by-step solution.

Key Benefits & Use Case

Imagine a large organization where every IT support document—from troubleshooting guides to system configurations—is stored in a single Google Drive folder. When an employee encounters an issue (e.g., “How do I reset my VPN credentials?”), they simply type the query into a chat interface. Instantly, the workflow retrieves the most relevant context from the ingested documents and provides a detailed, actionable answer. This process reduces resolution times, enhances support consistency, and significantly lightens the load on IT staff.

Prerequisites

  • A valid Google Drive account with access to the designated folder.
  • A Pinecone account for storing and retrieving text embeddings.
  • Google Gemini (or OpenRouter) credentials to power the Chat AI agent.
  • An operational n8n instance configured with the necessary nodes and credentials.

Workflow Details

1 Document Ingestion Workflow

  • Google Drive Trigger Node:
    • Listens for file creation events in the specified folder.
  • Google Drive Download Node:
    • Downloads the newly added file.
  • Extract from File Node:
    • Extracts text content from the downloaded file.
  • Code Node (Data Cleaning):
    • Cleans the extracted text by removing line breaks, trimming spaces, and eliminating special characters.
  • Recursive Text Splitter Node:
    • Segments the cleaned text into manageable chunks.
  • Pinecone Vector Store Node:
    • Generates embeddings (via Google Gemini) and uploads the chunks to Pinecone.

2 Chat Query Workflow

  • Chat Trigger Node:
    • Receives incoming user queries.
  • Pinecone Vector Store Node (Query):
    • Searches for relevant document chunks based on the query.
  • Code Node (Context Builder):
    • Sorts the retrieved documents by relevance and constructs a prompt merging the context with the query.
  • AI Agent Node:
    • Sends the prompt to the Chat AI agent, which returns a detailed answer.

How to Use

  1. Import the Template:
    • Import the template into your n8n instance.
  2. Configure the Google Drive Trigger:
    • Set the folder ID (e.g., 1RQvAHIw8cQbtwI9ZvdVV0k0x6TM6H12P) and connect your Google Drive credentials.
  3. Set Up Pinecone Nodes:
    • Enter your Pinecone index details and credentials.
  4. Configure the Chat AI Agent:
    • Provide your Google Gemini (or OpenRouter) API credentials.
  5. Test the Workflows:
    • Validate the document ingestion workflow by uploading a sample support document.
    • Validate the chat query workflow by sending a test query and verifying the returned support information.

Additional Notes

  • Ensure all credentials (Google Drive, Pinecone, and Chat AI) are correctly set up and tested before deploying the workflows in production.
  • The template is fully customizable. Adjust the text cleaning, splitting parameters, or the number of document chunks retrieved based on your support documentation's size and structure.
  • This template not only enhances IT support efficiency but also offers a scalable solution for managing and leveraging growing volumes of support content.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 2 - Monitor Google Drive for New Files

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 3 - Download File from Google Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 4 - Extract PDF Content

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 5 - Insert Document into Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1

Block 6 - Generate Document Embeddings (Google Gemini)

Type / Role
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - embeddingsGoogleGemini
Config choices
Version 1

Block 7 - Clean and Normalize PDF Text

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Load Document Data for Processing

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 9 - Split Document Text into Chunks

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 10 - Chat Message Trigger

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 11 - Retrieve Relevant Documents from Pinecone

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1

Block 12 - Generate Query Embeddings (Google Gemini)

Type / Role
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - embeddingsGoogleGemini
Config choices
Version 1

Block 13 - Generate Chat Prompt with Context

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - OpenRouter Chat Model Interface

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

3. Summary Table

Workflow IT support chatbot with Google Drive, Pinecone & Gemini | AI doc processing
Complexity intermediate
Nodes 14
Categories Internal Wiki, AI RAG
Author AI Incarnation
Published 17 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3192/3192.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does IT support chatbot with Google Drive, Pinecone & Gemini | AI doc processing do?

This n8n template empowers IT support teams by automating document ingestion and instant query resolution through a conversational AI. It integrates Google Drive , Pinecone , and a Chat AI agent (u...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, AI RAG use case.