Automate the process of fetching, cleaning, and storing YouTube video transcripts into Google Sheets using n8n + LLMs.
- π Automatically triggers on schedule.
- π₯ Fetches video links from Google Sheets.
- π Extracts & cleans YouTube video transcripts.
- π€ Uses AI (Google Gemini / LLM) to summarize or optimize transcripts.
- β¨ Cleans and reformats AI outputs (removes
\n,**, etc.). - π Updates processed titles and transcripts back into Google Sheets.
- Schedule Trigger β starts the automation.
- Get Rows (Google Sheets) β fetches video links.
- Loop Over Items β processes each link.
- Extract Link β parse and clean YouTube video ID.
- Get Transcripts β fetch raw transcripts from YouTube.
- Extract & Combine Transcripts β merge into full text.
- Basic LLM Chain (Gemini / OpenAI) β process transcripts (summarization, title generation, etc.).
- Code Node β clean and format AI-generated text.
- Manage Output β structure results.
- Update Row in Sheet β write back clean titles & transcripts.
- n8n β Workflow automation.
- Google Sheets API β Store input links & outputs.
- YouTube Transcript API β Extract raw captions.
- Google Gemini (or OpenAI) β AI processing & summarization.
- JavaScript (Code Nodes) β cleaning & formatting.
| Video Link | Transcript (Summary) | AI Titles |
|---|---|---|
| https://youtu.be/xxxx | Short clean transcript here | 1. Title idea β¦ 2. Title idea β¦ |
Pull requests are welcome! For major changes, please open an issue first to discuss what youβd like to change.
Would you like me to also export your workflow JSON into a workflows/ folder template (so people can import it directly into n8n)?