AI Document Assistant via Telegram + Supabase
detail.loadingPreview
An n8n workflow that creates an AI assistant for Telegram to help users with document analysis and general queries.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow provides a robust AI assistant accessible through Telegram. It handles both direct chat interactions and document analysis. Users can send text messages for AI-powered responses or upload PDF files for text extraction, embedding generation, and storage in a Supabase Vector Store. The assistant can then answer questions based on the content of these uploaded documents.
Key Features
- Handles direct user messages via Telegram.
- Processes PDF file uploads for text extraction.
- Generates embeddings for extracted document text.
- Stores embeddings in a Supabase Vector Store.
- Answers user questions based on uploaded documents.
- Integrates with Google Gemini for AI capabilities.
- Uses OpenWeatherMap for potential weather-related queries.
- Supports Telegram bot commands (e.g., /start).
- Formats AI responses using Telegram's HTML syntax for rich text display.
How To Use
- Set up Telegram Bot: Obtain an API token from BotFather on Telegram and configure the 'Telegram account' credential in n8n.
- Set up Supabase: Create a Supabase project, set up a
user_knowledge_basetable with appropriate schema for vector storage, and configure the 'Supabase account' credential in n8n. - Configure Google Gemini: Obtain an API key for Google Gemini and configure the 'Google Gemini(PaLM) Api account' credential in n8n.
- Configure OpenWeatherMap: Obtain an API key for OpenWeatherMap and configure the 'OpenWeatherMap account' credential in n8n.
- Import Workflow: Import this JSON into your n8n instance.
- Connect Nodes: Ensure all credential references in the nodes are correctly linked to your configured credentials.
- Deploy and Test: Activate the workflow and interact with your Telegram bot.
Apps Used
Workflow JSON
{
"id": "24ff19cd-6c99-4842-939f-4ada90118883",
"name": "AI Document Assistant via Telegram + Supabase",
"nodes": 0,
"category": "Telegram Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 24ff19cd-6c99...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Telegram Chat with Buffering
Allows users to send a sequence of messages to an AI agent in Telegram with Supabase for message buffering.
Telegram Cocktail Image Sender
Receives a message on Telegram and sends back a cocktail image and name.
Telegram Image Analysis and Response
Analyze images sent via Telegram and respond with analysis results.
Telegram Pomodoro Tracker
Track your Pomodoro sessions using Telegram.
Telegram Speech Support Workflow
Processes incoming Telegram messages, handling both text and voice inputs to provide speech support.
Telegram Community Task Manager
A workflow to manage tasks received via Telegram messages and interact with Google Tasks.