AutomationMart
Home/Browse/Cheaper, faster, accurate answers with memory summarization & dynamic routing!
n8n

Cheaper, faster, accurate answers with memory summarization & dynamic routing!

n8nn8n25 modulesv1.0
GmailTelegramLinkedInGemini

Smart Telegram AI Assistant with Memory Summarization & Dynamic Model Selection > Optimize your AI workflows, cut costs, and get faster, more accurate answers. --- 📋 Description Tired of expensive AI calls, slow responses, or bots that forget your context? This Telegram AI Assistant template is designed to optimize cost, speed, and precision in your AI-powered conversations. By combining PostgreSQL chat memory, AI summarization, and dynamic model selection, this workflow ensures you only pa

At a glance

Cheaper, faster, accurate answers with memory summarization & dynamic routing! is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Telegram, LinkedIn, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Telegram, LinkedIn, Gemini
Modules
25
Price
Free
Version
v1.0
Cheaper, faster, accurate answers with memory summarization & dynamic routing! workflow diagram

About this workflow

Smart Telegram AI Assistant with Memory Summarization & Dynamic Model Selection > Optimize your AI workflows, cut costs, and get faster, more accurate answers. --- 📋 Description Tired of expensive AI calls, slow responses, or bots that forget your context? This Telegram AI Assistant template is designed to optimize cost, speed, and precision in your AI-powered conversations. By combining PostgreSQL chat memory, AI summarization, and dynamic model selection, this workflow ensures you only pay for what you really need. Simple queries get routed to lightweight models, while complex requests automatically trigger more advanced ones. The result? Smarter context, lower costs, and better answers. This template is perfect for anyone who wants to: - ⚡ Save money by using cheaper models for easy tasks. - 🧠 Keep context relevant with AI-powered summarization. - ⏱️ Respond faster thanks to optimized chat memory storage. - 💬 Deliver better answers directly inside Telegram. --- ✨ Key Benefits - 💸 Cost Optimization: Automatically routes simple requests to Gemini Flash Lite and reserves Gemini Pro only for complex reasoning. - 🧠 Smarter Context: Summarization ensures only the most relevant chat history is used. - ⏱️ Faster Workflows: Storing user + agent messages in a single row reduces DB queries by half and saves 0.3s per response. - 🎤 Voice Message Support: Convert Telegram voice notes to text and reply intelligently. - 🛡️ Error-Proof Formatting: Safe MarkdownV2 ensures Telegram-ready answers. --- 💼 Use Case This template is for anyone who needs an AI chatbot on Telegram that balances cost, performance, and intelligence. - Customer support teams can reduce expenses by using lightweight models for FAQs. - Freelancers and consultants can offer faster AI-powered chats without losing context. - Power users can handle voice + text seamlessly while keeping conversations memory-aware. Whether you’re scaling a business or just want a smarter assistant, this workflow adapts to your needs and budget. --- 💬 Example Interactions - Quick Q&A → Routed to Gemini Flash Lite for fast, low-cost answers. - Complex problem-solving → Sent to Gemini Pro for in-depth reasoning. - Voice messages → Automatically transcribed, summarized, and answered. - Long conversations → Context is summarized, ensuring precise and efficient replies. --- 🔑 Required Credentials - Telegram Bot API (Bot Token) - PostgreSQL (Database connection) - Google Gemini API (Flash Lite, Flash, Pro) --- ⚙️ Setup Instructions 1. 🗄️ Create the PostgreSQL table (chatmemory) from the Gray section SQL. 2. 🔌 Configure the Telegram Trigger with your bot token. 3. 🤖 Connect your Gemini API credentials. 4. 🗂️ Set up PostgreSQL nodes with your DB details. 5. ▶️ Activate the workflow and start chatting with your AI-powered Telegram bot. --- 🏷 Tags telegram ai-assistant chatbot postgresql summarization memory gemini dynamic-routing workflow-optimization cost-saving voice-to-text --- 🙏 Acknowledgement A special thank you to Davide for the inspiration behind this template. His work on the AI Orchestrator that dynamically selects models based on input type served as a foundational guide for this architecture. --- 💡 Need Assistance? Want to customize this workflow for your business or project? Let’s connect: 📧 Email: johnsilva11031@gmail.com 🔗 LinkedIn: John Alejandro Silva Rodríguez

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Conversational PostgreSQL agent with visuals, multi-KPI, and data editing (MCP)

Ask your PostgreSQL database complex questions and receive clear summaries, charts, and even update or insert data — all through one smart agent powered by n8n’s Model Context Protocol (MCP). Supports: - Multi-KPI insights in one prompt - Auto-generated QuickChart bar/pie charts - Natural-language inserts and updates - Markdown-friendly output for dashboards --- 🚀 Why This Version Stands Out This version goes beyond reporting: - 📈 Auto-generates charts (QuickChart) - 🧮 Answers multiple KPIs i

Free

Get Keyword's Top-10 Rank Drop Alert via Gmail with DataForSEO

This weekly workflow helps you keep track of important ranking losses by automatically detecting when your keywords fall out of Google’s top 10 results. On each run, the scenario pulls your domain’s latest keyword ranking data using the DataForSEO Labs API and compares it with the records stored from the previous run in Google Sheets. It then identifies keywords that previously ranked in positions 1–10 but have now dropped out. For every lost keyword (i.e., no longer in the top 10), the workflow

Free

Automated B2B lead generation: Google Maps to Sheets with BrowserAct & Telegram

Automated B2B Lead Generation from Google Maps to Google Sheets using BrowserAct This n8n template automates local lead generation by scraping Google Maps for businesses, saving them to Google Sheets, and notifying you in real-time via Telegram. This workflow is perfect for sales teams, marketing agencies, and local B2B services looking to build targeted lead lists automatically. --- S

Free

Automate audio/video transcription in any language with the new ElevenLabs model

How it works 🗣️> 📖 I set up this workflow to convert any audio or video file into structured text using the new ElevenLabs Scribe model, one of the best Speech-to-Text AIs, available in 99+ languages. This workflow integrates seamlessly with n8n and leverages the ElevenLabs Scribe API to: This workflow seamlessly integrates with n8n to: ✅ Upload audio/video files automatically ✅ Transcribe them with industry-leading accuracy in any language ✅ Export the text for further processing (summaries,

Free

Traffic Funnel: Multiplatform Video Publishing & Traffic Automation (Short version)

This scenario is the first part of a powerful automation system for video creators, marketers, and social media managers. It handles the full pre-publishing cycle of your video content — from raw footage to SEO-optimized posts — and works with any platform that supports video content. ✅ What this scenario does: • Takes a video from Google Drive, no size or format restrictions. • Runs an automated transcription via the Harmoniq module. • Extracts key moments, timestamps, and converts them into pl

Free

Get daily currency exchange rate from ČNB in Telegram

Make will retrieve relevant currency exchange rate on Czech koruna to any other currency available in CNB on schedule which you can set up yourself and send it to your Telegram.

Free

Create a daily market brief from Google Sheets, Alpha Vantage, Reddit, OpenAI, and Slack

Description This workflow automatically creates a daily market intelligence brief for your stock portfolio. Instead of checking prices, news, and social media separately, it brings everything together into one clear update. On a scheduled basis, the workflow reads your stock list from Google Sheets and processes each stock individually. It fetches the latest stock price data, recent market news, and investor sentiment from public sources. All this information is then analyzed by AI to identify w

Free

Auto-backup n8n workflows to OneDrive with cleanup & email notifications

Automatically BackUp Your n8n Workflows to OneDrive This workflow automates the backup of your self-hosted n8n instance by exporting all workflows and saving them as individual .json files to a designated OneDrive folder. Each file is timestamped for easy versioning and audit tracking. After a successful backup, the workflow optionally cleans up old backup files and sends a confirmation email to notify you that the process completed. How it works 1. Uses the HTTP Request node to fetch all workfl

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free