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

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

Ready for 3.0

by John Alejandro SIlva ✓ · 1,636 views · created 2025-08-25 · AI Chatbot, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 25 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Model Selector, Google Gemini Chat Model, Postgres and Telegram and 1 more.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Create Chat Memory Table (Postgres): run a query
  2. Input Message Router (Switch): routes items into 2 branches
  3. Typing… (Telegram): send chat action
  4. get_message (text) (Edit Fields (Set)): sets 2 fields: message, chat_id
  5. Download Voice Message (Telegram): work with file
  6. get_error_message (Edit Fields (Set)): sets 2 fields: message, chat_id
  7. Normalize input (Edit Fields (Set)): sets 2 fields: message, chat_id
  8. Fix mime (Code): runs custom JavaScript code
  9. Get Chat Memory (Postgres): select
  10. Analyze voice message (Google Gemini): analyze (audio)

…plus 7 more steps. See the full node list below.

Services it uses

Model SelectorGoogle Gemini Chat ModelPostgresTelegramGoogle Gemini

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (14)

From the author

🤖💬 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…

Excerpt from John Alejandro SIlva's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.