workflows.fit
Back to n8n workflows
n8n templateFreeBy John Alejandro SIlva

Process multiple media files in Telegram with Gemini AI & PostgreSQL database

πŸ€–πŸ“¨ Telegram AI Assistant with Multi-File Media Group Handling, Smart File Processing & PostgreSQL Integration > AI-powered Telegram bot for text, voice, video, documents & media β€” with database-driven grouping an...

DevelopmentData & StorageCommunicationHITLCore NodesAILangchainTelegram
Loading interactive preview...

Template notes

πŸ€–πŸ“¨ Telegram AI Assistant with Multi-File Media Group Handling, Smart File Processing & PostgreSQL Integration

> AI-powered Telegram bot for text, voice, video, documents & media β€” with database-driven grouping and Telegram-safe formatting.

---

πŸ“‹ Description

This n8n template creates a next-generation Telegram AI assistant πŸ§ πŸ’¬ capable of handling text messages, media files, and documents with advanced processing, PostgreSQL integration, and AI-powered responses.

It is designed to solve Telegram’s media group challenge πŸ“¦ β€” when multiple files are sent together, they are stored, processed, and combined into one coherent AI-generated reply.

✨ Key Features - πŸ“‚ Multi-file media group management with PostgreSQL: - mediagroup - mediaqueue - chathistories - πŸ“‘ Document parsing for CSV, HTML, ICS, JSON, ODS, PDF (with AI fallback), RTF, TXT, XML, and spreadsheets. - 🎀 Voice & video transcription for AI analysis. - πŸ–ΌοΈ Image, audio, and video description for richer AI context. - πŸ›‘οΈ Telegram-safe MarkdownV2 formatting with auto-splitting for messages over 4096 chars. - ⚠️ Error fallback for unsupported file types.

---