AutomationMart
Home/Browse/Create chapter-wise notes and MCQ quizzes from YouTube with WayinVideo, GPT-4o-mini, Google Sheets, and Gmail
n8n

Create chapter-wise notes and MCQ quizzes from YouTube with WayinVideo, GPT-4o-mini, Google Sheets, and Gmail

n8nn8n14 modulesv1.0
GmailGoogle SheetsOpenAIGoogle Drive

Quick overview Submit any YouTube lecture URL through a form and this workflow transcribes the full video using WayinVideo, generates chapter-wise study notes and a 5-question MCQ quiz per chapter using GPT-4o-mini, and delivers a formatted HTML email with everything ready for revision. How it works 1. You fill in a form with the YouTube lecture URL, subject name, number of chapters you want, and your email address. 2. The YouTube URL is submitted to the WayinVideo Transcription API v2, which be

At a glance

Create chapter-wise notes and MCQ quizzes from YouTube with WayinVideo, GPT-4o-mini, Google Sheets, and Gmail is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Google Sheets, OpenAI, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Google Sheets, OpenAI, Google Drive
Modules
14
Price
Free
Version
v1.0
Create chapter-wise notes and MCQ quizzes from YouTube with WayinVideo, GPT-4o-mini, Google Sheets, and Gmail workflow diagram

About this workflow

Quick overview Submit any YouTube lecture URL through a form and this workflow transcribes the full video using WayinVideo, generates chapter-wise study notes and a 5-question MCQ quiz per chapter using GPT-4o-mini, and delivers a formatted HTML email with everything ready for revision. How it works 1. You fill in a form with the YouTube lecture URL, subject name, number of chapters you want, and your email address. 2. The YouTube URL is submitted to the WayinVideo Transcription API v2, which begins extracting the full spoken transcript with speaker labels and timestamps. A task ID is returned to track the job. 3. After an initial 30-second wait, the workflow polls the WayinVideo results endpoint. If the transcript is still processing, it waits 30 seconds and polls again. This loop repeats automatically until the status returns SUCCEEDED. 4. Once complete, the transcript segments are joined into clean readable text and trimmed to 12,000 characters for AI processing. 5. GPT-4o-mini reads the full transcript and generates a structured JSON output containing: an inferred lecture title, chapter-wise notes (one per requested chapter), key concepts, important terms with definitions, 5 MCQ questions per chapter with correct answers and explanations, an overall lecture summary, and key takeaways. 6. The structured output is parsed and built into a fully formatted HTML email with chapter sections, concept badges, quiz cards, and a summary block. 7. Google Sheets logs the video URL, subject, lecture title, chapter count, quiz question count, summary, notes, and quiz text for every session. 8. Gmail sends the complete HTML study email to the address submitted in the form — subject line includes the lecture title, chapter count, and quiz question count. Setup 1. Add your WayinVideo API key by replacing YOURWAYINVIDEOAPIKEY in both WayinVideo HTTP requests, and ensure your WayinVideo account has available API units. 2. Connect an OpenAI credential for the GPT-4o-mini chat model. 3. Connect a Google Sheets OAuth2 credential, set YOURGOOGLESHEETID, and create a “Study Log” sheet with columns that match the fields being appended (for example: Date, YouTube URL, Subject, Lecture Title, Chapters Generated, Quiz Questions, Summary, Notes, Quiz, Status). 4. Connect a Gmail OAuth2 credential and verify the sender account can send emails to your recipients. Requirements - Active n8n instance (self-hosted or cloud) - WayinVideo account with API key and purchased API units — get both at wayin.ai/wayinvideo/api-dashboard - OpenAI account with GPT-4o-mini API access - Google Sheets with a tab named Study Log - Gmail account connected via OAuth2 for sending study notes Customization - Change the number of chapters — the form field Number of Chapters controls how many chapters GPT generates; users can enter any number from 1 to 6 depending on video length - Change quiz questions per chapter — in the system prompt of node 10. AI Agent — Generate Notes and Quiz, change "exactly 5 quiz questions" to a different number to generate more or fewer questions per chapter - Add a Google Drive upload — after node 12. Google Sheets — Log Study Session, add a Google Drive step to save the notes text as a plain text file so students can access the notes outside their inbox - Support non-English lectures — in node 2. HTTP — WayinVideo Submit Transcription, change sourcelang from en to any WayinVideo-supported language code to transcribe lectures in other languages - Increase the transcript length limit — in node 9. Code — Prepare Transcript, change .slice(0, 12000) to a larger number such as 20000 for longer lectures — note this increases GPT token usage and cost Additional info The WayinVideo API key appears in two separate steps — node 2. HTTP — WayinVideo Submit Transcription and node 5. HTTP — Poll Transcription Status. You must replace YOURWAYINVIDEOAPIKEY in both. Missing either one will cause the workflow to fail. WayinVideo charges API units per transcription based on video length. Make sure you have sufficient units purchased at wayin.ai/wayinvideo/api-dashboard before running the workflow on long lectures. The polling loop between nodes 5, 6, 7, and 8 runs automatically until the transcription status equals SUCCEEDED. For longer videos this may take several minutes. The workflow handles this without any manual intervention — do not stop the execution while it is running. The transcript is trimmed to 12,000 characters before being sent to GPT. For very long lectures, content from the end of the video may be cut off. To process longer transcripts, increase the character limit in node 9. Code — Prepare Transcript, keeping in mind GPT context window limits and increased token cost.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Generate Google ad copy automatically with Claude 3.5, Channable & Relevance AI

Channable + Google Ads + Relevance AI: Scalable AI Workflow for Automated Ad Copy Generation & Publishing --- 🧩 Overview This workflow automates the entire ad creation process for Google Ads by integrating product data, AI-generated copy, compliance checks, and publication into your marketing pipeline. It connects n8n, Relevance AI, Google Sheets, and optionally Channable to: Fetch product data from your catalog Generate Google Text Ad headlines and d

Free

Add new Bubble data entries as rows in Google Sheets

Streamline your data management process by automatically adding new entries from Bubble to Google Sheets. With this template, every time a new data thing is created in Bubble, Make will seamlessly add a corresponding row in your Google Sheets. This integration ensures that your data is always up-to-date and easily accessible for analysis and reporting, enhancing your workflow efficiency.

Free

Create Google Calendar events and log them in Google Sheets using a webhook

Automatically create Google Calendar events from webhook data and log details in Google Sheets. Streamline event management and record-keeping with this integration.

Free

Send WhatsApp template messages based on filtered Google Sheets rows

Automatically send personalized WhatsApp template messages by filtering Google Sheets rows, ensuring targeted communication with your audience using Google Sheets and WhatsApp Business Cloud.

Free

Edit & deliver images with DALL-E 2, Google Drive & Telegram messaging

AI Image Editor with Form Upload + Telegram Delivery 🚀 Who’s it for? 👥 This workflow is built for content creators, social media managers, designers, and agencies who need fast, AI-powered image editing without the hassle. Whether you're batch-editing for clients or spicing up personal projects, this tool gets it done — effortlessly. What it does 🛠️ A seamless pipeline that: 📥 Accepts uploads + prompts via a clean form ☁️ Saves images to Google Drive automatically 🧠 Edits images with OpenAI’s im

Free

Filter and update Google Sheets rows using ChatGPT completions

This template periodically filters Google Sheets rows, generates ChatGPT completions, and updates rows. Streamline data processing and enhance spreadsheet functionality with AI insights.

Free

Build an AI-powered tech radar advisor with SQL DB, RAG, and routing agents

AI-Powered Tech Radar Advisor This project is built on top of the famous open source ThoughtWorks Tech Radar. You can use this template to build your own AI-Powered Tech Radar Advisor for your company or group of companies. Target Audience This template is perfect for: - Tech Audit & Governance Leaders: Those seeking to build a tech landscape AI platform portal. - Tech Leaders & Architects: Those aiming to provide modern AI platforms that help others understand the rationale behind strategic te

Free

Score LinkedIn profiles against your ICP with Airtop

Scoring LinkedIn Profiles Against Your ICP Use Case This automation scores individual LinkedIn profiles against your Ideal Customer Profile (ICP) based on interest in AI, technical depth, and seniority level. It's ideal for prioritizing leads and understanding how well a person fits your ICP criteria. What This Automation Does Given a LinkedIn profile and an Airtop profile, it: - Extracts relevant data from the person's profile - Determines levels of AI interest, seniority, and technical depth -

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free