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.
Categories
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
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