Skip to main content

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

Workflow preview

Workflow preview
100%
Create chapter-wise notes and MCQ quizzes from YouTube with WayinVideo, GPT-4o-mini, Google Sheets, and Gmail preview
Open on n8n.io

1. Workflow Overview

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 ...

Best for

  • Content Creation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.wait, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by isaWOW.

Original n8n.io source

1.1 Workflow description

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

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 YOUR_WAYINVIDEO_API_KEY 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 YOUR_GOOGLE_SHEET_ID, 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 source_lang 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 YOUR_WAYINVIDEO_API_KEY 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section — Form Input and WayinVideo Transcription Submit

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section — Task ID Extract, Initial Wait, Status Poll Loop

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section — Transcript Preparation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section — GPT-4o-mini Notes and Quiz Generation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Section — Google Sheets Log and Gmail Delivery

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - 1. Form — YouTube Lecture URL

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 8 - 2. HTTP — WayinVideo Submit Transcription

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - 3. Code — Extract Task ID

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - 4. Wait — 30 Seconds

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 11 - 5. HTTP — Poll Transcription Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - 6. Code — Merge Poll Status

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - 7. IF — Transcription Complete?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 14 - 8. Wait — 30 Second Retry

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 15 - 9. Code — Prepare Transcript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - 10. AI Agent — Generate Notes and Quiz

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 17 - OpenAI — GPT-4o-mini Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 18 - 11. Code — Parse Notes and Quiz

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - 12. Google Sheets — Log Study Session

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 20 - 13. Gmail — Send Notes and Quiz

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Create chapter-wise notes and MCQ quizzes from YouTube with WayinVideo, GPT-4o-mini, Google Sheets, and Gmail
Complexity advanced
Nodes 20
Categories Content Creation, AI Summarization
Author isaWOW
Published 28 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15999/15999.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

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

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, AI Summarization use case.