N8N
10 min read

Case Study: Building a Document-Only AI Chatbot for Sylvain Using RAG and n8n

During a conversation with Sylvain,  asked me if we could build a chatbot that only answers using documents we provide nothing else.
To demonstrate it, I built a workflow in n8n using RAG. I used my own background as a test document, and asked the bot questions about me. It responded accurately, using only the content from the file.
This project shows how I turn real needs into reliable AI workflows, with full control over the source of truth.
Published on
25 June 2025
Tools Used
N8N
OpenIA
Pinecone

Discussion with Sylvain, IT Support Lead

Sylvain manages a small IT support team. During a call, he asks me:


“Can we build a chatbot that only replies using our internal docs and nothing else?”

I reply:
“Yes. That’s RAG. Retrieval-Augmented Generation. Want a demo?”

https://metro.co.uk/

To prove it, I create a test case using my own background as documentation.
I feed it into a local knowledge base, build the workflow in n8n using OpenAI, and connect it to a basic chat UI.

Then I start asking:
“Where did I work last year?”
“What tool do I use for automations?”
“Am I a designer?”

Each time, the bot answers with precision but only based on the file. When I ask something it doesn’t know, it replies:
“I don't have that information.”
Exactly as planned.

Problems addressed:

  • Chatbots that hallucinate or invent info
  • Support teams that need reliable assistants
  • Lack of control over what the AI uses to reply
uzenzen/Getty Images)

The solution I built :


A complete RAG pipeline using n8n :

  • Google Drive : To store and download my file.
  • Pinecone Vector Store: To store the document and make it vector.

Then in the same workflow :

  • Chatbox : To ask a simple question
  • Question and Answer Chain : To check into my vector
  • Respond to Webhook : To send the answer into the chat
workflow RAG

The result :


Sylvain tries it himself. He asks about our internal tools.
Accurate answers only. No guesses. No bullshit.

He says:


“Perfect. That’s the kind of assistant I’d trust.”

Mission done.

See other projectsBack to Homepage