🔬 Transform YouTube videos into interactive MCQ quizzes with Google Forms & Gemini AI

⚡ 1,760 views · 🔬 Document Extraction & Analysis

💡 Pro Tip — YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments — no quota limits, just structured data.

View All Scrapers

Description

AI-Powered MCQ Quiz Generator from YouTube Videos

Transform any YouTube video into an interactive MCQ quiz automatically! This workflow uses Google Gemini AI to analyze video content and generate comprehensive multiple-choice questions with automatic grading - perfect for educators, trainers, and content creators.

Who is this For

This workflow is perfect for:

Features

How It Works

  1. User Input via n8n Web Form:

    • Form Name (Quiz Title)
    • Email Address
    • YouTube Video URL
    • Number of Questions (1-90)
  2. AI Processing Pipeline:

    • Google Gemini analyzes the YouTube video content
    • AI extracts key concepts and generates relevant questions
    • Structured output parser formats questions into JSON
  3. Google Forms Integration:

    • Automatically creates a new Google Form
    • Adds all generated questions with multiple choice options
    • Configures quiz settings with correct answers and scoring
  4. Completion & Access:

    • User receives direct link to the generated quiz
    • Form ready for immediate use or sharing
  5. Video Demo:

Set Up Steps

  1. Import the Workflow

    • Create a new workflow in n8n
    • Import the JSON file by clicking “three dots” (upper right corner) > “Import from file…”
  2. Configure Google Gemini API

    • Get your Google AI Studio API key from Google AI Studio
    • On “HTTP Request to Gemini” node replace the “API_KEY” from url with your API key.
    • Create a “Google Gemini (PaLM) API” credential in n8n
    • Add your API key to the credential
    • Connect the credential to the “Google Gemini Chat Model” node
  3. Set Up Google Forms Integration

    • Enable Google Forms API in Google Cloud Console
    • Create a “Google OAuth2 API” credential in n8n
    • Authorize the credential with Forms permissions
    • Connect the credential to both HTTP Request nodes (“Create a Google Form” node and “Create MCQ Quizzes” node)
  4. Configure Form Trigger

    • The workflow includes a built-in form trigger
    • No additional setup needed - the form URL will be generated automatically
    • Customize form fields if needed in the “Input YouTube URL” node
  5. Test the Workflow

    • Activate the workflow
    • Submit the form to generate a test quiz
    • Verify the Google Form is created successfully

Pre-requisites

Customization Guidance

  1. Question Generation Prompts:

    • Modify the prompt in “Set Prompt and model” node for different question styles
    • Adjust difficulty levels or focus areas
    • Change question format (True/False, Fill-in-blanks, etc.)
  2. Form Customization:

    • Update form title and description templates
    • Add additional input fields (difficulty level, subject area)
    • Customize success/error messages
  3. Advanced Features You Can Add:

    • Email Notifications: Send quiz links via email
    • Analytics Integration: Track quiz performance and completion rates
    • Multi-language Support: Generate quizzes in different languages
    • Question Bank Storage: Save generated questions to a database
    • Batch Processing: Generate multiple quizzes from a YouTube playlist
  4. Error Handling Enhancements:

    • Add retry logic for API failures
    • Implement fallback question generation
    • Create detailed error logging

Technical Specifications

Limitations & Considerations

Ready to Transform Videos into Quizzes? This workflow streamlines the entire process from video analysis to quiz deployment. Perfect for educators and trainers looking to create engaging assessments from video content quickly and efficiently.

đź”— Nodes Used

HTTP Request, Basic LLM Chain, Structured Output Parser, n8n Form Trigger, Google Gemini Chat Model, n8n Form

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup