Templates / Create an AI knowledge base assistant using Ollama, PGVector and Telegram

Create an AI knowledge base assistant using Ollama, PGVector and Telegram

Ready for 3.0

by Jyothish S L ✓ · 247 views · created 2026-05-14 · Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Postgres PGVector Store, Embeddings Ollama, Ollama Chat Model and Telegram.

How it runs

Trigger: On Telegram events (message) (plus 1 other trigger).

  1. Question and Answer Chain: answers questions over your documents (RAG), with model: Ollama Chat Model; retriever: Vector Store Retriever
  2. If: checks a condition and branches into true / false
  3. Send a text message (Telegram): uses Telegram
  4. Form (n8n Form): shows the next form page
  5. Form (n8n Form): shows the next form page
  6. Switch: routes items into 5 branches
  7. Postgres PGVector Store: stores documents in the Postgres PGVector Store vector store, with embeddings: Embeddings Ollama; document loader: Default Data Loader
  8. Extract from File: extracts data from a file (pdf)
  9. Extract from File: extracts data from a file (xls)
  10. Extract from File: extracts data from a file (xlsx)

…plus 2 more steps. See the full node list below.

Services it uses

Postgres PGVector StoreEmbeddings OllamaOllama Chat ModelTelegram

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (14)

From the author

This workflow automatically converts uploaded documents and text into an AI-powered searchable knowledge base using semantic vector embeddings and Retrieval-Augmented Generation (RAG). Users can upload PDFs, JSON, CSV, XLS, XLSX, or raw text files, which are…

Excerpt from Jyothish S L's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.