đź’¬ Conversational Telegram bot with GPT-5/GPT-4o for text and voice messages

⚡ 90,705 views · 💬 Support Chatbots

Description

This n8n workflow leverages a Telegram Message Trigger to activate an intelligent AI Agent capable of processing both text and voice messages. When a user sends a message in text or in voice format, the workflow captures and transcribes it (if necessary), then passes it to the AI Agent for understanding and response generation.

To enhance user experience, the bot also displays a typing indicator while processing requests, simulating a natural, human-like interaction.

Key Features

How It Works

Setup Instructions

  1. Create a Telegram Bot:
    • Use @BotFather to create a bot and obtain your bot token.
  2. Configure n8n Credentials:
    • Add Telegram API credentials in n8n with your bot token.
    • Add credentials for any speech-to-text service used for voice transcription (e.g., Open AI Transcribe A Recording).
  3. Import the Workflow:
    • Import this workflow into your n8n instance.
    • Update all credential nodes to use your Telegram and transcription service credentials.
  4. Set Webhook URLs:
    • Ensure Telegram webhook is set properly for your bot to receive messages.
    • Make sure your n8n instance is publicly accessible for Telegram callbacks.
  5. Test the Workflow:
    • Send text messages and voice notes to your Telegram bot and observe the AI responses.

Customization Guidance

Security and Implementation

Benefits

đź”— Nodes Used

Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Simple Memory, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup