Turn book PDFs into audio with OpenAI and Google Drive
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“Turn your Book into Audio”). Along the way it connects Google Drive, OpenAI and OpenAI Chat Model.
How it runs
Trigger: When someone submits an n8n form (“Turn your Book into Audio”).
- Extract Book Content (Extract from File): extracts data from a file (pdf)
- Create folder (Google Drive): work with folder
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Merge: merges the data from its input branches
- Structure The Content (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Generate audio (OpenAI): work with audio
- Upload file (Google Drive): uses Google Drive
Services it uses
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.
Nodes used (10)
- Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge - n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Book2Audio Pro Workflow brief Book2Audio Pro turns an uploaded book PDF into organized audio files. The workflow starts with a file upload form, extracts the book text, uses AI to detect the chapter structure and generate splitting logic, converts each chunk…