Skip to main content

Client FAQ bot with RAG using Google Drive PDFs & Azure GPT-4o-mini

Workflow preview

Workflow preview
100%
Client FAQ bot with RAG using Google Drive PDFs & Azure GPT-4o-mini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description: Build your own AI powered Client FAQ system with Retrieval Augmented Generation (RAG) — fully automated using n8n, Google Drive, and Azure OpenAI (GPT 4o mini). This no code automation...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googledrive, n8n-nodes-base.respondtowebhook, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatazureopenai, n8n-nodes-base.set, n8n-nodes-base.extractfromfile, n8n-nodes-base.splitinbatches

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Client FAQ bot with RAG using Google Drive PDFs & Azure GPT-4o-mini
Workflow name
Client FAQ bot with RAG using Google Drive PDFs & Azure GPT-4o-mini

Description:

Build your own AI-powered Client FAQ system with Retrieval-Augmented Generation (RAG) — fully automated using n8n, Google Drive, and Azure OpenAI (GPT-4o-mini). This no-code automation enables your clients or team to ask questions through a webhook, and get precise answers sourced directly from a collection of PDF documents stored in Google Drive. Ideal for support teams, sales enablement, onboarding automation, and customer self-service — this RAG-powered bot ensures accurate, document-based answers with no hallucinations or AI guesses.

What This Template Does (Step-by-Step):

🌐 Webhook Trigger for Incoming Questions

  • Accepts POST requests with a client’s question
  • Triggers the entire FAQ automation on request

🗂️ Search Google Drive Folder for Source Documents

  • Connects to a specific Google Drive folder (e.g., “Case Studies”)
  • Fetches all PDFs to be used as the context source

📥 Downloads and Processes Each File

  • Downloads all matched files
  • Extracts clean text from each PDF file

🔄 Iterates Over Each File for Text Extraction

  • Loops through multiple files
  • Extracts relevant content from each file individually

🧠 Prepares Clean Context + Question for RAG

  • Combines the extracted PDF text into a single context block
  • Injects the user’s question into the RAG-ready prompt

💬 Azure OpenAI (GPT-4o-mini) RAG Prompt

  • Generates an accurate answer ONLY from the extracted documents
  • If the answer isn’t found, returns a fallback response

📤 Sends the Final Response Back via Webhook

  • Returns the AI-generated answer directly to the client via HTTP response

Perfect For:

📞 Sales & client onboarding teams 📚 Knowledge base & internal SOP support 🧑‍💻 B2B SaaS customer success teams 🏢 Enterprises automating policy or document queries 💼 Agencies offering client-specific documentation portals

Built With:

  • Webhook Trigger (n8n)
  • Google Drive API (search + download)
  • PDF Text Extractor
  • Loop / Split Batches
  • Azure OpenAI GPT-4o-mini via LangChain LLM
  • Context-safe RAG prompt logic
  • Webhook Response for real-time delivery

Key Benefits:

✅ Fast, context-aware answers from internal PDFs 🔒 No hallucinations — AI only responds using uploaded documents 📎 Works with any internal client folder in Google Drive 💬 Easily embed into any app, bot, or portal via Webhook 🧩 100% modular — extend with email, Slack, CRM, or ticketing tools

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 - Download File

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

Block 2 - Return Answer

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

Block 3 - Webhook

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

Block 4 - Search files and folders

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

Block 5 - Basic LLM Chain

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

Block 6 - Azure OpenAI Chat Model

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

Block 7 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Extract from File

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

Block 9 - Edit Fields1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Loop Over Items

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

Block 11 - Sticky Note

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

Block 12 - Sticky Note1

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

Block 13 - Sticky Note2

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

Block 14 - Sticky Note3

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

Block 15 - Sticky Note4

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

Block 16 - Sticky Note5

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

Block 17 - Sticky Note6

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

Block 18 - Sticky Note7

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

Block 19 - Sticky Note8

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

Block 20 - Sticky Note9

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

3. Summary Table

Workflow Client FAQ bot with RAG using Google Drive PDFs & Azure GPT-4o-mini
Complexity advanced
Nodes 20
Categories Support Chatbot, AI RAG
Author Rahul Joshi
Published 06 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7052/7052.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 Client FAQ bot with RAG using Google Drive PDFs & Azure GPT-4o-mini do?

Description: Build your own AI powered Client FAQ system with Retrieval Augmented Generation (RAG) — fully automated using n8n, Google Drive, and Azure OpenAI (GPT 4o mini). This no code automation...

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 Support Chatbot, AI RAG use case.