AI speech coach & generator using Telegram, Open AI and Gemini
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 16 nodes and runs on Telegram events (message). Along the way it connects Google Gemini Chat Model, Telegram and OpenAI.
How it runs
Trigger: On Telegram events (message).
- Check For Text or Voice Message (Edit Fields (Set)): sets 1 field: text
- If: checks a condition and branches into true / false
- Download Audio File (Telegram): work with file
- Route Flow Based on Message Content (Switch): routes items into 2 branches
- Transcribe Audio File (OpenAI): transcribe (audio)
- Wipe Conversation Memory (Chat Memory Manager): uses Chat Memory Manager, with memory: Store Conversation Memory
- Set prompt to generate a speech based on the feedback (Edit Fields (Set)): sets 1 field: system_prompt
- Set prompt to provide feedback on speech (Edit Fields (Set)): sets 1 field: system_prompt
- Set prompt to start a new speech (Edit Fields (Set)): sets 1 field: system_prompt
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; memory: Store Conversation Memory
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Chat Memory Manager
@n8n/n8n-nodes-langchain.memoryManager - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Switch
n8n-nodes-base.switch
From the author
Description This n8n workflow acts as your personal AI speechwriting coach, directly accessible through Telegram. It listens to your spoken or typed drafts, provides insightful feedback on clarity, engagement, structure, and content, and iteratively refines…