Templates / Convert PDF documents to AI podcasts with Google Gemini and text-to-speech

Convert PDF documents to AI podcasts with Google Gemini and text-to-speech

Needs changes

by Mathis · 4,524 views · created 2025-06-11 · Content Creation, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Write Binary File. 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 8 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model. It also calls generativelanguage.googleapis.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. 📄 Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  2. 🤖 Generate Podcast Script (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Flash 2.
  3. ⚙️ Prepare TTS Request (Code): runs custom JavaScript code
  4. 🎙️ Convert Text to Speech With Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
  5. 🔧 Process Audio Response (Code): runs custom JavaScript code
  6. 💾 Save Podcast Audio (Write Binary File): uses Write Binary File

Services it uses

Google Gemini Chat Model

HTTP calls to: generativelanguage.googleapis.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Write Binary File in 💾 Save Podcast Audio: replace with Read/Write Files from Disk.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Write Binary File
💾 Save Podcast Audio
Read/Write Files from Disk

Nodes used (7)

From the author

Convert PDF documents to AI-generated podcasts with Google Gemini and Text-to-Speech Transform any PDF document into an engaging, natural-sounding podcast using Google's Gemini AI and advanced Text-to-Speech technology. This automated workflow extracts text…

Excerpt from Mathis's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.