AI Agents

Intelligent Document Analysis Assistant via Telegram

28 nodes 243 131 Automatic trigger
Download

Workflow Description

Automation that receives documents through Telegram, analyzes them using Google Gemini's AI model, stores their content as vectors in a Supabase database, and provides accurate answers to user queries based on stored documents with semantic search capabilities.

How it works

  1. 1.Receive documents and text files from Telegram messages
  2. 2.Split content into chunks and convert them to embeddings using Gemini
  3. 3.Store vectors and document data in Supabase vector database
  4. 4.Process user queries through an intelligent AI agent
  5. 5.Search relevant information from the database using semantic matching
  6. 6.Send enhanced answers back to users via Telegram

Use cases

  • Analyze company reports, contracts, and extract critical business information
  • Answer employee questions about stored document content in real-time
  • Build a smart customer support system that responds to inquiries based on organizational knowledge base

Requirements

  • Active Telegram account with Bot API token
  • Google Gemini API key for AI processing
  • Supabase project with configured vector database
  • Permission to upload and process documents

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Gemini Tool AI Agent Telegram Document Default Data Loader Text Splitter Vector Store Memory

Details

Trigger Automatic trigger
Nodes 28
Apps 8
Views 243
Downloads 131

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (28)

/

Google Gemini Chat Model

Gemini Model

#1

OpenWeatherMap

Open Weather Map Tool

#2

AI Agent

Agent

#3

Telegram Trigger

Set

#4

Telegram

Set

#5

Think

Tool Think

#6

Embeddings Google Gemini

Gemini Model

#7

Default Data Loader

Document Default Data Loader

#8

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#9

Extract from File

Extract From File

#10

Answer questions with a vector store

Tool Vector Store

#11

Supabase Vector Store

Vector Store Supabase

#12

Sticky Note10

Sticky Note

#13

Sticky Note11

Sticky Note

#14

Telegram - Embedding Complete

Set

#15

Supabase - Save Embeddings

Vector Store Supabase

#16

Command Router

Switch

#17

Telegram - Download file

Set

#18

Aggregate

Aggregate

#19

Fallback- No formatting

Set

#20

Split Out

Split Out

#21

Simple Memory

Memory Buffer Window

#22

Handle formatting and split

Code

#23

Sticky Note

Sticky Note

#24

Manual Mapping

Set

#25

Unsupported message

Set

#26

Send processing document message

Set

#27

Send embedding Started message

Set

#28