AgentHub

Reply to Telegram voice messages with Smallest.ai and Google Gemini

Quick Overview

Live
Open / InstallLast updated July 27, 2026

Description

Quick Overview This workflow listens for Telegram bot messages, detects voice audio, downloads the audio file, transcribes it with Smallest.ai, and uses a Google Gemini–powered AI agent to draft a helpful reply that is sent back to the same Telegram chat. How it works Triggers when a new message is received by your Telegram bot. Checks whether the incoming message contains a voice/audio attachment. Downloads the audio file from Telegram using the message’s file ID. Sends the audio to Smallest.ai Speech-to-Text to generate a transcription. Passes the transcription and chat ID to a LangChain AI agent backed by Google Gemini to generate a suggested reply. Sends the formatted response back to the originating Telegram chat. Setup Create a Telegram bot with BotFather, then add your Telegram credentials/token to the Telegram Trigger, file download, and Telegram reply tool nodes. Add your Smallest.ai API credentials to the transcription step. Add your Google Gemini (Google AI) credentials to the chat model used by the AI agent. Start the workflow and message your Telegram bot with a voice note to test the end-to-end transcription and reply. An n8n automation workflow template by Zain Khan.

Author

Zain Khan

Platform

web

Pricing model

free

Categories

Automation
AI

Tags

n8n
workflow
telegram
ai-agent
google-gemini-chat-model

Capabilities

  • 3 nodes
  • 1 views