FM
FlowMarket
AI Agents Advanced ⚡ 28 n8n Nodes

Document Q A chatbot with Gemini AI and Supabase vector search f

This template creates a Telegram AI Assistant that answers questions based on your documents, powered by Google Gemini and Supabase. Key features include Int...

🔌 Nodes & Integrations Used (12)

Lm Chat Google Gemini Open Weather Map Tool Agent Telegram Trigger Telegram Tool Think Embeddings Google Gemini Document Default Data Loader Text Splitter Recursive Character Text Splitter Extract From File Tool Vector Store Vector Store Supabase

📖 Implementation & Setup Guide

This template creates a Telegram AI Assistant that answers questions based on your documents, powered by Google Gemini and Supabase. Key features include **Intelligent HTML Post-processing** for **rich formatting in Telegram** and **Adaptive Message Chunking** to handle long text responses. ## 📹 Watch the Bot in Action

[![𝗨𝗻𝗹𝗲𝗮𝘀𝗵𝗶𝗻𝗴 𝗔𝗜 𝗼𝗻 𝗠𝘆 𝗕𝗼𝗼𝗸𝘀𝗵𝗲𝗹𝗳: 𝗙𝗹𝗼𝘄 𝗣𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 𝗣𝗼𝘄𝗲𝗿𝘀 𝗮 𝗡𝗲𝘅𝘁-𝗟𝗲𝘃𝗲𝗹 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 𝗕𝗼𝘁🤖](https://img.youtube.com/vi/r_KGyJApy5M/maxresdefault.jpg)](https://www.youtube.com/watch?v=r_KGyJApy5M)

**▶️ Click the image above to watch a live demo on YouTube.**

This video provides a live demonstration of the bot's core features and how it interacts. See a quick walkthrough of its capabilities and user flow.

**How it works:**

* User uploads a PDF document to a Telegram bot.

* The workflow processes the PDF, creates embeddings using Google Gemini, and stores these embeddings in a **Supabase vector table**.

* Users then ask questions to the bot.

* The workflow performs a **vector search in Supabase** to find relevant document chunks based on the user's query.

* Google Gemini uses the retrieved relevant chunks to generate an intelligent answer.

* The bot sends the formatted answer back to the user on Telegram, utilizing **HTML markup** for enhanced presentation.

**Set up steps:**

Setup should take approximately 15-20 minutes.

  1. Import the workflow into your n8n instance.

2. Configure credentials for Telegram, Google Gemini, and Supabase.

3. Set up your Supabase vector table using the provided SQL script.

4. Activate the workflow.

Detailed setup instructions, including how to get API keys and configure nodes, are available in the sticky notes within the workflow itself.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Document_Q_A_chatbot_with_Gemini_AI_and_Supabase_vector_search_f.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →