Intelligent Document Analysis Assistant via Telegram
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.Receive documents and text files from Telegram messages
- 2.Split content into chunks and convert them to embeddings using Gemini
- 3.Store vectors and document data in Supabase vector database
- 4.Process user queries through an intelligent AI agent
- 5.Search relevant information from the database using semantic matching
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (28)
Google Gemini Chat Model
Gemini Model
OpenWeatherMap
Open Weather Map Tool
AI Agent
Agent
Telegram Trigger
Set
Telegram
Set
Think
Tool Think
Embeddings Google Gemini
Gemini Model
Default Data Loader
Document Default Data Loader
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
Extract from File
Extract From File
Answer questions with a vector store
Tool Vector Store
Supabase Vector Store
Vector Store Supabase
Sticky Note10
Sticky Note
Sticky Note11
Sticky Note
Telegram - Embedding Complete
Set
Supabase - Save Embeddings
Vector Store Supabase
Command Router
Switch
Telegram - Download file
Set
Aggregate
Aggregate
Fallback- No formatting
Set
Split Out
Split Out
Simple Memory
Memory Buffer Window
Handle formatting and split
Code
Sticky Note
Sticky Note
Manual Mapping
Set
Unsupported message
Set
Send processing document message
Set
Send embedding Started message
Set