This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n.
Welcome to my Wikipedia Podcast Telegram Bot Workflow!
This workflow creates an intelligent Telegram bot that transforms Wikipedia articles into engaging 5-minute podcast episodes using natural language queries and voice messages.

What this workflow does
This workflow processes incoming Telegram messages (text or voice, e.g. "Berlin") and generates professional podcast content about any Wikipedia topic (e.g. "Berlin", "Shakespeare", etc.). The AI agent researches the requested subject, creates a structured podcast script, and delivers it as high-quality audio directly through Telegram.
Key Features:
- Voice message support (speech-to-text and text-to-speech)
- Wikipedia research integration for accurate content
- Professional podcast structure (intro, main content, outro)
- Natural-sounding AI voice synthesis
- Conversational and educational tone optimized for audio consumption
This workflow has the following sequence:
- Telegram Trigger - Receives incoming messages (text or voice) from users via Telegram bot
- Text or Voice Switch - Routes the message based on input type (text message vs. voice message)
- Voice Message Processing (if voice input):
- Retrieval of voice file from Telegram
- Transcription of voice message to text using OpenAI Whisper
- Text Message Preparation (if text input) - Prepares the text message for the AI agent
- Wikipedia Podcast Agent - Core AI agent that:
- Researches the requested topic using Wikipedia tool
- Creates a professional 5-minute podcast script (600-750 words)
- Follows structured format: intro, main content, outro
- Uses conversational, accessible, and enthusiastic tone
- ElevenLabs Text to Speech - Converts the podcast script into natural-sounding audio using AI voice synthesis
- Send Voice Response - Delivers the generated podcast audio back to the user via Telegram
Requirements:
- Telegram Bot API: Documentation
- Create a bot via @BotFather on Telegram
- Get bot token and configure webhook
- Anthropic API (Claude 4 Sonnet): Documentation
- Used for AI agent processing and podcast script generation
- Provides Wikipedia research capabilities
- OpenAI API: Documentation
- Used for speech transcription (Whisper model)
- ElevenLabs API: Documentation
- Used for high-quality text-to-speech generation
- Provides natural-sounding voice synthesis
Important: The workflow uses the Wikipedia tool integrated with Claude 4 Sonnet to ensure accurate and comprehensive research. The AI agent is specifically prompted to create engaging, educational podcast content suitable for audio consumption.
Configuration Notes:
- Update the Telegram chat ID in the trigger for your specific bot
- Modify the voice selection in ElevenLabs for different narrator styles
- The system prompt can be customized for different podcast formats or target audiences
- Supports both individual users and can be extended for group chats
Feel free to contact me via LinkedIn, if you have any questions!