Create an AI-Powered Speech Coach with n8n & Telegram

Discover how this n8n workflow transforms your Telegram messages into a personal AI speech coach. It handles voice and text inputs, offers constructive speech feedback, and generates new speeches, saving you hours in preparation time.
telegramTrigger
agent
lmChatGoogleGemini
+8
Workflow Identifier: 1102
NODES in Use: telegramTrigger, set, if, telegram, openAi, switch, agent, lmChatGoogleGemini, memoryManager, memoryBufferWindow, code
Automate speech coaching with n8n and Telegram

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does ✏️

This workflow uses Telegram messages as input to help users prepare speeches.
The main problem it solves is long, hard speech editing and unclear message points.
It gives back clear feedback, guides steps, and can write a new speech.
The result is faster, better speeches with less stress.

  • Receives text or voice messages through Telegram Bot.
  • Transcribes voice messages to text using OpenAI transcription.
  • Analyzes speech contents to give feedback on clarity, structure, and pacing.
  • Directs user through speech prep steps using tailored AI prompts.
  • Generates new speeches based on feedback from previous messages.
  • Sends back cleaned and properly split messages formatted to Telegram rules.

This saves hours of manual editing and helps people get instant, helpful AI advice for their speeches.


Tools and Services Used

  • Telegram Bot API: Receives and sends messages from users.
  • OpenAI API: Transcribes voice audio to text.
  • Google PaLM (Google Gemini): Generates AI feedback and speech content.
  • n8n: Automates message processing and AI calls using the LangChain nodes.

Inputs, Processing and Outputs

Inputs

  • User sends text or voice messages via Telegram Bot.

Processing Steps

  • Telegram Trigger: Watches for new messages and starts workflow.
  • Message Type Detection: Checks if incoming message is text or voice.
  • Audio Download and Transcription: Downloads audio file, sends to OpenAI for transcription.
  • Routing Based on Keywords: Routes messages through Switch node based on words like “new speech” or “generate speech”.
  • AI Prompt Setup: Sets prompt for LangChain AI Agent depending on task.
  • Memory Management: Clears AI conversation memory before new tasks to avoid confusion.
  • AI Response Generation: AI Agent creates feedback or speech text.
  • Response Cleaning: Code node strips unsupported Telegram markdown symbols.
  • Text Chunking: Code node breaks messages into parts under 4000 characters.
  • Telegram Reply: Sends chunks back to user in chat.
  • Memory Storage: Saves conversation history by user to keep context over messages.

Output

  • Clear, relevant AI feedback or new speech texts sent back in Telegram messages.
  • Messages fit Telegram limits and have no unsupported formatting.
  • Conversation context maintained for smooth follow-ups.

Who Should Use This Workflow?

Anyone who needs help preparing speeches fast without confusion.
Users who send texts or voice notes and want AI feedback or new speech drafts.
Good for learners with little speech-writing experience or those with limited time.


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import Workflow

  1. Locate the Download button on this page.
  2. Download the workflow JSON file.
  3. Open n8n editor where you build workflows.
  4. Select “Import from File” option in n8n.
  5. Upload the downloaded JSON you just got.

Step 2: Configure Credentials and Settings

  1. Enter your Telegram Bot API credentials in the Telegram Trigger and Telegram response nodes.
  2. Set your OpenAI API Key in the LangChain OpenAI transcription node.
  3. Provide Google PaLM (Google Gemini) API key in the AI Agent nodes.
  4. Check any IDs or emails used in nodes (chat ID, file IDs). Update if you have custom channels or folders.
  5. Review prompt text in Set prompt nodes; copy/paste any adjusted prompt if needed.

Step 3: Test the Workflow

  1. Send a test text message or voice note to the Telegram bot.
  2. Watch n8n execution panel to confirm workflow triggers.
  3. Check the Telegram chat for AI-generated feedback or speech text replies.

Step 4: Activate for Production

  1. Turn the workflow status ON in n8n editor.
  2. The Telegram bot will now run continuously and handle user messages.
  3. Monitor execution panel for errors or warnings during live use.

For more control and better reliability, consider using self-host n8n to run the workflow on your own server.


Customization Ideas

  • Switch AI models from Google Gemini to OpenAI GPT by replacing the AI model nodes.
  • Change system prompt text to focus on different speech styles or coaching types.
  • Add support for more message types like videos or documents in Telegram Trigger and routing.
  • Adjust conversation memory length by changing the contextWindowLength in Memory Buffer Window node.

Handling Edge Cases and Common Issues

AI Memory Confusion

If AI responses mix unrelated topics or have wrong details, likely the conversation memory is not cleared.

Fix by making sure the Memory Manager node wipes memory before starting new speech work.

Voice Message Transcription Failures

If voice messages do not transcribe or cause errors, likely the file ID is wrong or OpenAI API credentials are missing.

Double check Telegram audio file ID mapping and verify OpenAI API keys set properly in transcription node.

Summary of Results ✓

✓ Speeches can be made faster with AI feedback and speech creation.
✓ Messages are clear and fit Telegram’s size and format rules.
✓ Works well with both text and voice inputs.
✓ Keeps conversation context so AI replies make sense.
✓ Saves time and improves quality of public speaking preparation.


Automate speech coaching with n8n and Telegram

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, users can replace the Google Gemini Chat Model node with an OpenAI chat node for a different AI model.
Voice message transcription fails when the Telegram audio file ID is incorrect or OpenAI API credentials are not set properly.
The workflow uses the LangChain Memory Buffer Window node with the user’s Telegram ID as session key to store conversation memory.
Users should download the workflow file, import it into n8n, add API keys and correct IDs, test with Telegram messages, then activate the workflow.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.