Automated YouTube Video Quiz Generator with Gemini AI
detail.loadingPreview
Effortlessly create multiple-choice quizzes from any YouTube video using advanced Google Gemini AI. Simply input a YouTube URL and the desired number of questions, and this workflow handles the rest, delivering structured quiz content.
About This Workflow
This powerful n8n workflow revolutionizes content creation for educators, trainers, and content marketers by automating quiz generation from YouTube videos. Say goodbye to manual question crafting; our solution leverages Google Gemini's cutting-edge AI to analyze video content and generate engaging multiple-choice questions with answers. Users provide a YouTube URL and specify the number of questions via a user-friendly form. The workflow intelligently processes the video, crafts a dynamic prompt for Gemini, and then extracts and structures the generated quiz data, including valuable token usage metrics. This not only saves immense time but also enhances the learning experience with readily available, relevant quizzes.
Key Features
- YouTube URL Integration: Directly processes video content from any public YouTube link.
- AI-Powered Quiz Generation: Utilizes Google Gemini's advanced capabilities to create relevant multiple-choice questions.
- Customizable Question Count: Specify the exact number of questions needed (up to 90 per video).
- Structured JSON Output: Receives and parses AI-generated quizzes into a clean, consumable JSON format.
- Usage Metadata Tracking: Automatically logs AI token usage and model version for cost analysis and performance insights.
- User-Friendly Form Interface: Initiates quiz generation through a simple web form.
How To Use
- Deploy the Workflow: Activate the workflow in your n8n instance. This will make the 'Input YouTube URL' form accessible.
- Access the Form: Share the URL of the 'Input YouTube URL' form trigger with your users or use it yourself. Fill in the 'Form Name', 'Email', the desired 'Youtube URL', and the 'Number of Questions' (up to 90).
- Configure API Key: Ensure your Google Gemini (or Google PaLM) API credentials are set up. In the 'HTTP Request to Gemini' node, replace
API_KEYin the URL with your actual Google API key or ensure the credential is correctly linked if using a dedicated credential type. - Review Output: After submission, the workflow will run. The generated quiz content, along with AI usage metadata, will be available in the output of the 'Set Fields: Define Outcome' node, typically structured as JSON.
- Handle Errors (Optional): The 'If: Was an error detected?' node provides a branch for handling cases where the AI might not return valid content. You can extend this branch to send notifications or retry.
Apps Used
Workflow JSON
{
"id": "93387c40-0bf6-4ed0-89df-66dc20a4e2b3",
"name": "Automated YouTube Video Quiz Generator with Gemini AI",
"nodes": 26,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 93387c40-0bf6...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.