← Back to directory
Personal Productivity Medium to set up AI workflow Repurpose/Transform

Wikipedia Podcast Generator

Source reviewed Updated 2026-07-07

Send a topic or voice note to the bot and get back a 5-minute podcast episode researched from Wikipedia and synthesized with AI.

What it does

Send a text or voice note about any topic to instantly receive a five-minute podcast episode researched from Wikipedia. The system transcribes your input, writes a structured script using AI research, and delivers natural-sounding audio directly back to you via Telegram.

Step by step

  1. Set up a Telegram bot via BotFather and store the token in environment variables for secure access.
  2. Configure the workflow to detect message type (text vs voice) using Telegram's update payload structure.
  3. Define the ElevenLabs API endpoint parameters for voice cloning or standard model selection.

Where the LLM does the work

  • Prompt the Anthropic agent to retrieve accurate Wikipedia summaries and convert them into an engaging, conversational script suitable for audio.
  • Instruct the LLM to structure the output with clear speaker cues and pacing notes so ElevenLabs can generate natural-sounding speech.
  • Refine the research query strategy to ensure the AI focuses on key historical or factual points rather than getting lost in tangential details.

Watch out for

Voice files from Telegram can be large, so implement a download step with size limits to prevent memory overflow during Whisper processing.
Wikipedia content may change rapidly, so add a timestamp check in the LLM prompt to prioritize recent edits or stable versions for accuracy.
ElevenLabs API costs scale with character count, so cap the script length to ensure the final audio stays within the five-minute target duration.
Telegram has strict file size limits for outgoing media, so compress the generated MP3 or split long responses if they exceed 50MB.

Tools that fit

Telegram Service Receive and send messages
Anthropic Chat Model LLM AI agent processing and script generation
OpenAI API Speech transcription via Whisper
ElevenLabs API Service Text to speech synthesis

The agent brief

Everything your agent needs, including the gotchas. Copy it and go.
agent-brief.md
You are helping me build the following AI agent workflow.

## Goal
Wikipedia Podcast Generator: Send a topic or voice note to the bot and get back a 5-minute podcast episode researched from Wikipedia and synthesized with AI.

## Specification
- What it does: Send a text or voice note about any topic to instantly receive a five-minute podcast episode researched from Wikipedia. The system transcribes your input, writes a structured script using AI research, and delivers natural-sounding audio directly back to you via Telegram.
- Trigger: Run manually (Event · on new Telegram message)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - Telegram: Receive and send messages
  - Anthropic Chat Model: AI agent processing and script generation
  - OpenAI: Speech transcription via Whisper
  - ElevenLabs API: Text to speech synthesis

## Known pitfalls, handle each one explicitly in your implementation
1. Voice files from Telegram can be large, so implement a download step with size limits to prevent memory overflow during Whisper processing.
2. Wikipedia content may change rapidly, so add a timestamp check in the LLM prompt to prioritize recent edits or stable versions for accuracy.
3. ElevenLabs API costs scale with character count, so cap the script length to ensure the final audio stays within the five-minute target duration.
4. Telegram has strict file size limits for outgoing media, so compress the generated MP3 or split long responses if they exceed 50MB.

## Reference implementation
https://n8n.io/workflows/4496 (workflow template)
Fetch and inspect this before building. If it matches my stack, adapt it;
if not, rebuild the pattern with my tools.

## Process requirements
1. Before building: ask me which of the listed tools I actually use and
   what my platform is (n8n / Make / code / other). Do not assume.
2. Adapt the pattern to my answers; do not force the reference stack.
3. Address every pitfall above; tell me how you handled each.
4. Provide a test plan I can run before letting this touch real data.
5. Ask before any step that sends messages, modifies data, or spends money.

Source: https://usecasesforagents.com/use-case/wikipedia-podcast-generator/ via usecasesforagents.com

Frequently asked questions

Can I use a different Messaging than Telegram?

Yes. Telegram is only the example messaging in this recipe. The same flow works with ClickSend API, Discord, Google Chat and LINE Messaging API. Swap the messaging connection and keep the rest of the setup as written.

Want this running in your business?

This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Get in touch →

Who it's for

Built for anyone who wants this off their own plate, no team or company required.

Seen in the wild

← Back to directory