Transform YouTube videos into interactive MCQ quizzes with Google Forms & Gemini
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (10)
- Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Code
n8n-nodes-base.code - n8n Form
n8n-nodes-base.form
What it does
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: - Educators creating quizzes from educational YouTube content - Corporate Trainers developing assessments from training videos - Content Creators engaging their audience with interactive quizzes - Students testing their knowledge on video lectures - Online Course Creators building assessments from video content Features AI Video Analysis: Google Gemini 2.5 Flash analyzes entire YouTube videos (up to 50 minutes) Dynamic Question Generation: Creates up to 90 MCQ questions with 3 options each Automatic Form Creation: Generates Google Forms with quiz functionality Smart Grading: Built-in correct answer identification and scoring Error Handling: Robust error management with user feedback 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: - See this youtube Video to explore "how it works". 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 “APIKEY” 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 Necessary Accounts: 1. Google Account (for Forms API access) 2. Google AI Studio Account (for Gemini API access) 3. n8n Instance (cloud or self-hosted) API Access: - Google Forms API enabled - Google drive API enabled - Google Generative AI API access - Valid API keys and OAuth credentials N8N Requirements: - n8n version 1.95.2 or higher - LangChain nodes package installed - Internet access for API calls 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 da