Automate BBC News to Podcast Script Using n8n & Gemini LLM

Save hours by automating BBC news scraping, filtering, and podcast script creation with n8n. This workflow uses Gemini LLM to classify news and generate conversational podcast scripts, then converts the script into speech with Hugging Face Text-to-Speech.
httpRequest
lmChatGoogleGemini
html
+9
Workflow Identifier: 2303
NODES in Use: Manual Trigger, HTTP Request, HTML, Split Out, Limit, LangChain Text Classifier, LangChain Chain LLM, Filter, If, LangChain LM Chat Google Gemini, LangChain Output Parser Structured, Sticky Note

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow fetches top news stories from BBC News, chooses good ones for a podcast, writes a friendly script, and makes an audio file from it.

It stops you wasting many hours every day writing news scripts and recording manually.

By running it, you get a ready-to-use podcast episode containing well-written news and natural sounding voice audio.


Workflow Inputs, Processing, and Output

Inputs

  • BBC News homepage URL
  • Google Gemini Language Model for news classification and script writing
  • Hugging Face API for text-to-speech conversion

Processing Steps

  1. Get BBC News homepage HTML
  2. Extract news title blocks using CSS selectors
  3. Split news into individual items for processing
  4. Parse titles, links, and descriptions from each news block
  5. Limit the number of stories to 10
  6. Classify stories with Google Gemini LLM to select suitable podcast content
  7. Fetch full news article HTML for chosen stories
  8. Extract detailed article text from each
  9. Remove articles with empty details
  10. Combine all article texts into one input dataset
  11. Use Google Gemini to generate a warm and conversational podcast script
  12. Check if the podcast script exists and is not empty
  13. Send script text to Hugging Face text-to-speech API
  14. Produce an audio file of the podcast episode

Output

A podcast script in text form and an audio file ready to publish.


Who Should Use This Workflow

Anyone who records daily news podcasts and wants to save time scripting.

This helps content creators who need consistent, engaging news narration without manual hassle.

Also useful for people wanting easy automation of news-to-audio pipelines.


Tools and Services Used

  • n8n: Runs the automation workflow.
  • Google Gemini LLM: Classifies news and writes podcast scripts.
  • Hugging Face Text-to-Speech API: Converts text scripts into audio.
  • BBC News website: Source for news content.

How to Use This Workflow in n8n for Beginners

Step 1: Import the Workflow

  1. Download the workflow file by clicking the Download button on this page.
  2. In the n8n editor, open the menu and select Import from File.
  3. Choose the downloaded workflow file and import it.

Step 2: Configure Credentials

  1. Add your Google Gemini API key in the credentials section.
  2. Add your Hugging Face API key similarly.
  3. If asked, update URLs, email addresses, or channel names to fit your setup.

Step 3: Check Workflow Settings

  1. Look at each HTTP Request node to make sure URLs are correct.
  2. Check CSS selectors in HTML extraction nodes and update if BBC site changes.
  3. Review prompt texts in Gemini nodes to match the tone you want.

Step 4: Test and Activate

  1. Use the Manual Trigger node to run the workflow once and watch output.
  2. If output is okay, activate the workflow by toggling it to Active in n8n.
  3. Optionally, schedule the workflow using a cron trigger if you want automatic runs.

For users running self-host n8n, remember to safely store API keys and secure your instance.


Common Problems and How This Workflow Handles Them

  • Empty or blocked HTTP requests resolved by verifying URLs and headers.
  • Wrong news classification fixed by checking input expressions to Gemini nodes.
  • No scripts generated prevented by tuning the filtering criteria and prompt clarity.
  • Filtering out articles with no main content to avoid empty podcast sections.

Customization Ideas

  • Change news source by updating the BBC URL to another news site in the fetch node.
  • Change number of news items by adjusting the limit node’s max count.
  • Modify Gemini classification categories or criteria to fit different editorial guidelines.
  • Tweak the chatbot prompt to alter podcast script tone (more formal or casual).
  • Replace Hugging Face with another text-to-speech API by updating endpoints and credentials.

Summary of Results

✓ Saves many hours daily by removing manual news script writing.

✓ Delivers consistent, well-structured podcast scripts and audio.

→ Lets users focus on creative tasks, not repetitive work.

→ Provides a clear, easy path for beginners to use automation in podcast production.

Frequently Asked Questions

Yes, update the Fetch BBC News Page HTTP Request node URL and adjust CSS selectors to match the new site.
Yes, both APIs may use credits based on usage and subscription plans.
Data flows only between the n8n instance and third-party APIs using standard security. Users should protect API keys and instance access.
It processes 10 articles per run by default for stable performance. This can be changed but may affect API limits and processing time.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free