Skip to content

This workflow automates the end-to-end process of converting YouTube videos into structured, multilingual written content. It transcribes the video's speech, optionally summarizes it, translates it into the chosen language and stores the result in a well-formatted Google Doc—ready for review, sharing or publication.

License

Notifications You must be signed in to change notification settings

weblineindia/n8n-YouTube-Transcription-Translation-to-Google-Docs-with-Gemini-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

YouTube Transcription, Summarization & Translation to Google Docs

This workflow automates the end-to-end process of converting YouTube videos into structured, multilingual written content.
It transcribes the video's speech, optionally summarizes it, translates it into the chosen language, and stores the result in a well-formatted Google Doc — ready for review, sharing, or publication.


🎯 Who’s It For

  • Content creators and bloggers repurposing video content.
  • Educators and researchers converting lectures into readable notes.
  • Marketing teams localizing video material for international audiences.
  • Students summarizing and translating study material.
  • YouTube viewers who want written notes or blog-ready formats.

⚙️ How It Works

  1. Webhook Trigger – Accepts inputs: youtube_url, language, enable_summary.
  2. Code Node – Formats these into videoId, originalUrl, language, enable_summary.
  3. HTTP Request Node – Sends the video to Supadata API for transcription.
  4. Code Node – Combines transcript segments into one text block.
  5. Basic LLM Chain Node – Uses Google Gemini to summarize and translate (if requested).
  6. Google Docs Node – Creates a new document titled with videoId and language.
  7. Google Docs Append Node – Appends transcript/summary/translation to the created doc.

🔧 How to Set Up

  1. Webhook Input
    • Send a POST request with JSON body:
      {
        "youtube_url": "https://youtube.com/...",
        "language": "fr",
        "enable_summary": true
      }
  2. Configure Supadata API
    • Add HTTP URL and Authorization Header for transcription.
  3. Set up Gemini Chat Model
    • Use Google Vertex AI / Gemini in the LLM Chain node.
  4. Google Docs Credentials
    • Connect Google account via OAuth2.
  5. Document Naming Logic
    • Example: {{ videoId }} - {{ language }}.

✅ Requirements

  • Supadata API key (or any video-to-text API).
  • Google account with Google Docs access.
  • Google Gemini (Vertex AI) integration in n8n.
  • n8n Cloud or self-hosted instance.
  • Basic knowledge of webhook setup.

🎨 How to Customize

  • Change LLM Model → Swap Gemini with GPT-4 or Claude.
  • Summarization Toggle → Use enable_summary flag.
  • Document Layout → Customize headings, font styles, and structure.
  • Multiple Languages → Generate one doc per target language.
  • Sharing Options → Add Gmail or Slack nodes for auto-notifications.

➕ Add-ons

  • Notion Export → Push summaries into Notion.
  • Slack Notification → Share Google Doc links with team.
  • Google Sheets Logging → Log processed video details.
  • n8n Forms Integration → Allow user-submitted inputs.

📌 Use Case Examples

  • Repurposing podcasts into multilingual blog posts.
  • Extracting and translating lecture notes for education.
  • Localizing explainer videos for global marketing teams.
  • Building a searchable database of translated transcripts.

🛠️ Common Troubleshooting

Issue Possible Cause Solution
Webhook not triggering Incorrect URL or POST format Double-check payload & content-type (application/json)
Transcription API fails Invalid video ID or API key Validate YouTube URL & Supadata API access
Empty translation/summary Transcript empty or weak prompt Ensure spoken content exists & refine prompt
Google Doc not created OAuth2 credentials not authorized Reconnect Google Docs credentials
Gemini LLM Chain fails Misconfigured model or malformed req Verify model selection & payload

🤝 Need Help?

WeblineIndia automation experts can help you:

  • Set up transcription and translation APIs.
  • Modify and optimize the summarization prompt.
  • Customize Google Docs layouts or automate sharing.

👉 Contact us to tailor this workflow for your needs!


About

This workflow automates the end-to-end process of converting YouTube videos into structured, multilingual written content. It transcribes the video's speech, optionally summarizes it, translates it into the chosen language and stores the result in a well-formatted Google Doc—ready for review, sharing or publication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published