Back to Catalog
John Alejandro SIlva

John Alejandro SIlva

Detail-oriented professional with a dual degree in Systems Engineering and Business Administration and international experience in technology and process improvement. I specialize in workflow automation with n8n, API integration, programming, and data analysis. Known for strong analytical skills and clear technical documentation.

Total Views41,865
Templates2

Templates by John Alejandro SIlva

Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets

πŸ€–πŸ₯— Telegram Nutrition AI Assistant (Alternative to Cal AI App) > AI-powered nutrition assistant for Telegram β€” log meals, set goals, and get personalized daily reports with Google Sheets integration. πŸ“‹ Description This n8n template creates a Telegram-based Nutrition AI Assistant πŸ₯‘πŸ”₯ designed as an open-source alternative to the Cal AI mobile app. It allows users to interact with an AI agent via text, voice, or images to track meals, calculate macros, and monitor nutrition goals directly from Telegram. The system integrates Google Sheets as the database, handling both user profiles and meal logs, while leveraging Gemini AI for natural conversation, food recognition, and daily progress reports. ✨ Key Features πŸ’¬ Multi-input support: Text, voice messages (transcribed), and food images (AI analysis). πŸ“Š Macro calculation: Automatic estimation of calories, proteins, carbs, and fats. πŸ“ User-friendly registration: Simple onboarding without storing personal health data (no weight/height required). 🎯 Goal tracking: Users can set and update calorie and protein targets. πŸ“ˆ Daily reports: Personalized progress messages with visual progress bars. πŸ—‚ Google Sheets integration: Profile table for user targets. Meals table for food logs. πŸ”„ Advanced n8n nodes: Includes use of Merge, Subworkflow, and Code nodes for data processing and report generation. πŸ’‘ Acknowledgment Inspired by the Cal AI concept πŸ’‘ β€” this template demonstrates how to reproduce its main functionality with n8n, Telegram, and AI agents as a flexible, open-source automation workflow. 🏷 Tags telegram ai-assistant nutrition meal-tracking google-sheets food-logging voice-transcription image-analysis daily-reports n8n-template merge-node subworkflow-node code-node telegram-trigger google-gemini πŸ’Ό Use Case Use this template if you want to: πŸ₯— Log meals using text, images, or voice messages. πŸ“Š Track nutrition goals (calories, proteins) with daily progress updates. πŸ€– Provide a chat-based nutrition assistant without building a full app. πŸ—‚ Store structured nutrition data in Google Sheets for easy access and analysis. πŸ’¬ Example User Interactions πŸ“Έ User sends a photo of a meal β†’ AI analyzes the food and logs calories/macros. 🎀 User sends a voice message β†’ AI transcribes and logs the meal. ⌨️ User types β€œreport” β†’ AI returns a daily nutrition summary with progress bars. πŸ₯… User says β€œupdate my protein goal” β†’ AI updates profile in Google Sheets. πŸ”‘ Required Credentials Telegram Bot API (Bot Token) Google Sheets API credentials AI Provider API (Google Gemini or compatible LLM) βš™οΈ Setup Instructions πŸ—‚ Create two Google Sheets tables: Profile: UserID, Name, Caloriestarget, Protein_target Meals: UserID, Date, Mealdescription, Calories, Proteins, Carbs, Fats πŸ”Œ Configure the Telegram Trigger with your bot token. πŸ€– Connect your AI provider credentials (Gemini recommended). πŸ“‘ Connect Google Sheets with your credentials. ▢️ Deploy the workflow in n8n. 🎯 Start interacting with your nutrition assistant via Telegram. πŸ“Œ Extra Notes 🟩 Green section: Handles Telegram trigger and user check. πŸŸ₯ Red section: Registers new users and sets goals. 🟦 Blue section: Processes text, voice, and images. 🟨 Yellow section: Generates nutrition reports. πŸŸͺ Purple section: Main AI agent controlling tools and logic. --- πŸ’‘ Need Assistance? If you’d like help customizing or extending this workflow, feel free to reach out: πŸ“§ Email: johnsilva11031@gmail.com πŸ”— LinkedIn: John Alejandro Silva RodrΓ­guez

John Alejandro SIlvaBy John Alejandro SIlva
32823

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 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: media_group media_queue chat_histories πŸ“‘ 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. --- πŸ’‘ Acknowledgment A huge thank you to Ezema Gingsley Chibuzo πŸ™Œ for the inspiration of the first version of this workflow: Create a Multi-Modal Telegram Support Bot with GPT-4 and Supabase RAG Your pioneering work laid the foundation for this improved, database-powered multi-modal assistant πŸš€ --- 🏷 Tags telegram ai-assistant postgresql multi-file media-group file-processing voice-transcription document-parser pdf-extraction markdown-formatting n8n-template --- πŸ’Ό Use Case Use this template if you need an AI-powered Telegram bot that can: πŸ“¦ Handle multiple files sent in a single message (albums, multiple PDFs, etc.). 🧾 Extract & analyze content from many file formats. πŸŽ™οΈ Transcribe voice and video messages. πŸ—‚οΈ Maintain chat memory for contextual AI answers. πŸ›‘οΈ Avoid Telegram formatting errors and length limit issues. This workflow automates the full chain: Receive β†’ Process β†’ AI Analysis β†’ Telegram-safe Reply. --- πŸ’¬ Example User Interactions πŸ“„ Multiple PDFs with a caption β†’ AI extracts and summarizes all PDFs in one combined reply. 🎀 Voice message β†’ AI transcribes and replies with a contextual answer. πŸ“Š CSV or spreadsheet file β†’ AI parses and summarizes the data. πŸ–ΌοΈ Multiple images β†’ AI describes each image and replies in a single message. --- πŸ”‘ Required Credentials Telegram Bot API (Bot Token) PostgreSQL (Connection credentials) AI Provider API (OpenAI, Google Gemini, or compatible LLM) --- βš™οΈ Setup Instructions πŸ—„οΈ Create the PostgreSQL tables (Gray section SQL): media_group media_queue chat_histories πŸ”Œ Configure the Telegram Trigger with your bot token. πŸ€– Connect your AI provider credentials. πŸ—‚οΈ Set up PostgreSQL credentials in the database nodes. ▢️ Deploy the workflow in n8n. 🎯 Start sending messages and files to your bot. --- πŸ“Œ Extra Notes βœ… Green section ensures only one trigger per media group. πŸ“Œ Yellow section guarantees captions and files are stored in the correct sequence. ✨ Purple section formats AI output to be Telegram-safe and split if needed. 🧠 AI prompt is not fixed, allowing full customization. --- πŸ’‘ Need Assistance? If you’d like help customizing or extending this workflow, feel free to reach out: πŸ“§ Email: johnsilva11031@gmail.com πŸ”— LinkedIn: John Alejandro Silva RodrΓ­guez

John Alejandro SIlvaBy John Alejandro SIlva
9042
All templates loaded