πŸ’¬ Website chatbot with Google Drive knowledge base using GPT-4 and Mistral AI

⚑ 1,577 views Β· πŸ’¬ Support Chatbots

Description

AI-Powered Website Chatbot with Google Drive Knowledge Base

Overview

This workflow combines website chatbot intelligence with automated document ingestion and vectorization β€” enabling live Q&A from both chat input and processed Google Drive files.
It uses Mistral AI for OCR + embeddings, and Qdrant for vector search.


Chatbot Flow


Document β†’ Knowledge Base Pipeline

Triggered manually to keep vector store up-to-date.

Steps

  1. Google Drive (brand folder)
    β†’ Fetch files from folder Website kb (ID: 1o3DK9Ceka5Lqb8irvFSfEeB8SVGG_OL7)
  2. Loop Over Items
    β†’ For each file:
    • Set metadata
    • Download file
    • Upload to Mistral for OCR
    • Get Signed URL
    • Run OCR extraction (mistral-ocr-latest)
  3. If OCR success
    β†’ Pass to chunking pipeline
    Else β†’ skip and continue
  4. Chunking Logic (Code node)
    • Splits document into 1,000-character JSON chunks
    • Adds metadata (source, char positions, file ID)
  5. Default Data Loader + Text Splitter
    β†’ Prepares chunks for embedding
  6. Embeddings (Mistral Cloud)
    β†’ Generates embeddings for text chunks
  7. Qdrant Vector Store (Insert mode)
    β†’ Saves embeddings into docragtestkb collection
  8. Wait
    β†’ Optional delay between batches

Integrations Used

ServicePurposeCredential
Google DriveFile sourceGoogle Drive account 6 rn dbt
Mistral CloudOCR + embeddingsMistral Cloud account 2 dbt rn
QdrantVector storageQdrantApi account
OpenAIChat modelOpenAi account 8 dbt digi

Agent System Prompt Summary

> β€œYou are the official AI assistant for this website.
Use chatdbtai only as your knowledge source.
Respond conversationally, list offerings clearly, link blogs, and say
β€˜I couldn’t find that on this site’ if no match.”


Key Features


Summary

> A unified workflow that turns brand files + web content into a knowledge base that powers a intelligent chatbot β€” capable of responding to visitors in real time, powered by Mistral, OpenAI, and Qdrant.


Need Help or More Workflows?

Want to customize this workflow for your business or integrate it with your existing tools?
Our team at Digital Biz Tech can tailor it precisely to your use case from automation logic to AI-powered enhancements.

πŸ’‘ We can help you set it up for free β€” from connecting credentials to deploying it live.

Contact: rajeet.nair@digitalbiz.tech
Website: https://www.digitalbiz.tech
LinkedIn: https://www.linkedin.com/company/digital-biz-tech/
You can also DM us on LinkedIn for any help.


πŸ”— Nodes Used

HTTP Request, Webhook, Google Drive, AI Agent, OpenAI Chat Model, Simple Memory

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup