Build a Voice & Text Telegram Bot with GPT-4.1-Mini and Gemini Transcription
Go to WorkflowDescription
How it works:
This Telegram automation works with voice and text messages given to the Telegram bot, and it returns the response in voice form if the input is in voice form. If the input is in text form, it will return a response in text form.
Use Cases:
Customer Support
Personal Chatbot
Prerequisites:
OpenAI API Key
Gemini API Key
Telegram Bot built by BotFather
Telegram Bot's API Key
Target Audience:
AI Automation learners who want to learn how to build and set up a basic Telegram Bot using n8n.
How to set up:
Create a telegram bot using BotFather, and the BotFather will give you an API key
Copy the API key and set it up in a Telegram node inside n8n
Get a free gemini api from https://aistudio.google.com/
Set up the Gemini API in the Transcribe recording node
Get an OpenAI API key from https://platform.openai.com/docs/overview and make sure to top up your credits
Copy the API key from the OpenAI platform and set it up in any OpenAI Chat Model, and it will be configured for all other nodes automatically by n8n
That's it! Now you can activate the workflow and test it by sending a simple message to your Telegram bot