Convert newsletters into AI podcasts with GPT-4o Mini and ElevenLabs
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on Gmail events. Along the way it connects Gmail and OpenAI.
How it runs
Trigger: On Gmail events.
- Generate Dialogue Script (OpenAI): uses OpenAI
- Split script (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Save Audio Chucks (Read/Write Files from Disk): writes a file to disk
- Function Node – Clean Segment (Code): runs custom JavaScript code
- Generate `concat_list.txt` (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Save concat_list (Read/Write Files from Disk): writes a file to disk
- Function Node – Prepare Text for TTS (Code): runs custom JavaScript code
- Function Node – Prepare Text for TTS (Code): runs custom JavaScript code
…plus 5 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + ElevenLabs templates (55) · Other ElevenLabs + Gmail templates (30)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Get Newsletter).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Execute Command
n8n-nodes-base.executeCommand - Gmail
n8n-nodes-base.gmail
From the author
🎧 Convert Unread Newsletters into Conversational AI Podcasts Turn email overload into audio insights — automatically. This workflow transforms unread newsletters sitting in your inbox into engaging, human-like audio conversations between two AI voices. It’s…