πŸ”¬ Generate interactive MCQ quizzes from PDF textbooks with Google Gemini, UploadToURL and Gmail

⚑ 90 views Β· πŸ”¬ Document Extraction & Analysis

Description

This workflow transforms any textbook PDF into a fully interactive quiz β€” automatically.

Users upload a PDF, choose difficulty & number of questions, and the system:


✨ Key Features


🧩 Workflow Breakdown (Node-by-Node)


🟒 1. Get-Details (Form Trigger)

What it does:
Acts as the entry point of the workflow.

How it works:


🟣 2. Extract from File

What it does:
Extracts text from the uploaded PDF.

How it works:


πŸ”΅ 3. Generate-MCQ (AI Node)

What it does:
Converts textbook content into MCQs using AI.

How it works:


🟑 4. Template (Code Node)

What it does:
Builds a fully interactive quiz webpage.

How it works:

1. JSON Parsing

2. Personalization

3. HTML Generation

4. Interactivity (JavaScript)

Output:


🟒 5. Upload a File (UploadToURL) ⭐

What it does:
Uploads the generated quiz and creates a public shareable link.

How it works:

πŸ”₯ Why this node is powerful:

πŸ‘‰ UploadToURL - Turn Files into Shareable Links


🟠 6. Send a Message (Gmail)

What it does:
Sends the quiz link directly to the user.

How it works:

Result:
User receives their interactive quiz instantly πŸ“§


🎯 Use Cases

πŸ”— Nodes Used

Gmail, Basic LLM Chain, n8n Form Trigger, Extract from File, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup