In this article, we'll explore how to build an AI News Podcast Producer Agent that automatically generates, narrates, and publishes daily news updates covering AI, Sports, and Finance using Supercog Agentic Framework. This powerful agent combines multiple AI models and tools to create professional-quality podcast episodes.

Outline 📋

Installation Options 🛠️

You have two options for installation:

Option 1: Install from PyPI (Recommended)

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install from PyPI
pip install agentic-framework

# Initialize your project
agentic init .

This will create a basic project structure and copy example agents into your directory.

Option 2: Install from Source

# Clone the repository
git clone https://github.com/supercog-ai/agentic.git

# Change to the agentic directory
cd agentic

# Install with all dependencies
uv pip install -e ".[all,dev]"

Set up required API keys 🔑

To use the Podcast Agent, you'll need to set up the following API keys:

  1. Transistor API Key & Show ID:

    • Create an account at Transistor.fm
    • Create a new podcast show
    • Get your Show ID from the URL: https://dashboard.transistor.fm/shows/SHOW-ID/episodes
    • Get your API key from Your Account > API Access
  2. Tavily API Key:

    • Sign up at Tavily
    • Navigate to your dashboard to get your API key
  3. OpenAI API Key:

    • Sign up at OpenAI
    • Create an API key in your account settings
  4. Anthropic API Key:

    • Sign up at Anthropic
    • Get your API key from the dashboard

You can set these keys:

  • Environment Variables:
export TRANSISTOR_API_KEY=your_transistor_key
export TRANSISTOR_SHOW_ID=your_show_id
export TAVILY_API_KEY=your_tavily_key
export OPENAI_API_KEY=your_openai_key
export ANTHROPIC_API_KEY=your_anthropic_key

Running the Podcast Agent 🚀

  1. Navigate to the examples directory:
cd examples/podcast
  1. Run the podcast agent:
python podcast_short.py
  1. Enter the command to start podcast production:
run

The agent will then:

  1. Generate AI news using Claude
  2. Generate sports news using Claude
  3. Generate finance news using Claude
  4. Format the news for broadcast
  5. Convert the text to speech
  6. Publish the episode to Transistor.fm

You can listen to an example episode here: https://share.transistor.fm/s/95fa8302

Customizing the Prompts 🎯

The agent uses prompts defined in podcast_short.yaml to generate each news segment. You can customize these prompts to change:

  • The style and tone of reporting
  • The topics covered
  • The length and detail of each segment
  • The sources and focus of news gathering

Here's an example of the AI News Reporter prompt:

AI_NEWS_REPORTER: >
  You are an experienced, hard-hitting news reporter. You are preparing a news report.
  Follow these steps precisely:
  1. Search for headlines, using query_news, about "AI and artificial intelligence" but exclude "motley fool".
  2. Download pages for the most interesting articles, max 10.
  3. Now create a long, extensive "morning news" report in the style of NPR or CNN, but with a hard news edge, and reporting as "Supercog News", at least 10,000 characters. Do not print any paragraph headers.

Feel free to modify these prompts to create your own unique podcast format!

Architecture Overview 🏗️

The podcast agent uses several components:

  • Google News Tool for gathering news
  • Tavily Search Tool for additional research
  • Text-to-Speech Tool for narration
  • Claude and GPT-4 for content generation and formatting
  • Transistor.fm API for podcast publishing

Each news segment is generated by a specialized agent (AI, Sports, Finance) that uses both news gathering tools and language models to create professional broadcast-style content.

Conclusion 🎉

The AI News Podcast Agent demonstrates the power of the Supercog Agentic Framework for creating complex, multi-step automation workflows. By combining multiple AI models and tools, we can create a fully automated podcast production system that generates, narrates, and publishes professional-quality content.

To learn more about Supercog Agentic Framework:

Don't forget to star the repository if you find it useful! ⭐