Templates / Chat with PDFs on Telegram using Google Gemini and Pinecone

Chat with PDFs on Telegram using Google Gemini and Pinecone

Ready for 3.0

by Intuz ✓ · 1,091 views · created 2025-10-23 · 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 18 nodes and runs on Telegram events (message). Along the way it connects Pinecone Vector Store, Telegram, Embeddings Google Gemini and Google Gemini Chat Model.

How it runs

Trigger: On Telegram events (message).

  1. Verify Document Presence (If): checks a condition and branches into true / false
  2. Retrieve Telegram File (Telegram): work with file
  3. QA Chain Processing (Question and Answer Chain): answers questions over your documents (RAG), with model: Utilize Google Gemini Chat; retriever: Retrieve from Vector Store
  4. Convert Metadata to PDF (Code): runs custom JavaScript code
  5. Send Telegram Response (Telegram): uses Telegram
  6. Manage Pinecone Store (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Generate Google Gemini Embeddings; document loader: Load Default Document Data
  7. Trigger Error Handling (Stop and Error): stops the run with an error
  8. Restrict to 10 Items (Limit): keeps the first few items
  9. Respond via Telegram (Database) (Telegram): uses Telegram
  10. Handle Database Error (Stop and Error): stops the run with an error

Services it uses

Pinecone Vector StoreTelegramEmbeddings Google GeminiGoogle Gemini Chat Model

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 (13)

From the author

Quick overview This workflow lets users upload PDFs or ask questions in Telegram, indexes PDF content in Pinecone using Google Gemini embeddings, and answers follow-up questions with a Google Gemini chat model using retrieval-augmented generation formatted…

Excerpt from Intuz '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.