Skip to main content

Convert PDF content to an MCQ question bank in Excel with Google Gemini

Workflow preview

Workflow preview
100%
Convert PDF content to an MCQ question bank in Excel with Google Gemini preview
Open on n8n.io

1. Workflow Overview

Convert PDF to MCQ Question Bank in Excel with AI (Gemini) Convert any PDF into a structured Multiple Choice Question (MCQ) bank with answer keys and explanations β€” fully automated using n8n and...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.extractfromfile, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.if, n8n-nodes-base.respondtowebhook, n8n-nodes-base.converttofile, n8n-nodes-base.telegram

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Convert PDF content to an MCQ question bank in Excel with Google Gemini
Workflow name
Convert PDF content to an MCQ question bank in Excel with Google Gemini

πŸš€ Convert PDF to MCQ Question Bank in Excel with AI (Gemini)

Convert any PDF into a structured Multiple Choice Question (MCQ) bank with answer keys and explanations β€” fully automated using n8n and Google Gemini.


🎯 Use Case

  • Teachers & Educators
  • Trainers & Course Creators
  • HR & Corporate Training Teams
  • EdTech Builders

βš™οΈ Features

  • Webhook-based PDF upload
  • File validation (max 5MB + file existence check)
  • PDF text extraction
  • Automatic text chunking
  • AI-generated MCQs using Google Gemini
  • Clean JSON parsing
  • Export to Excel (.xlsx)
  • Upload to Google Drive
  • Send results via Email & Telegram

πŸ”„ Workflow Steps

  1. Webhook Trigger
  2. Validate File
  3. Conditional Check (Success / Failed)
  4. Extract Text from PDF
  5. Chunk Text
  6. Generate MCQs (Google Gemini)
  7. Clean JSON Output
  8. Convert to Excel
  9. Upload to Google Drive
  10. Send via Telegram
  11. Send via Email

πŸ”Œ Requirements

  • n8n (self-hosted or cloud)
  • Google Gemini API Key
  • Google Drive credentials
  • Email (SMTP / Gmail)
  • Telegram Bot Token

πŸ“₯ How to Use

Send POST request to webhook with form-data:

  • file β†’ PDF file
  • email β†’ (optional)
  • telegram_chat_id β†’ (optional)

πŸ“€ Output

  • Excel file with MCQs
  • Stored in Google Drive
  • Delivered via Email / Telegram

⚠️ Notes

  • Max file size: 5MB
  • Works best with text-based PDFs
  • AI output quality depends on input clarity

πŸ’‘ Ideas for Improvement

  • Difficulty level classification
  • Multi-language support
  • LMS export (Moodle, Google Forms)
  • Bulk PDF processing

πŸ’° Commercial Use

This workflow can be used for:

  • Internal automation
  • Client services
  • Digital product monetization

❀️ Support

If you find this useful:

  • Upvote on n8n
  • Share with others

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

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

Block 2 - Extract from File

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

Block 3 - Cleaner

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

Block 4 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 5 - Validate Parameter & PDF

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

Block 6 - Condition Valid

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

Block 7 - Chunk

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

Block 8 - Respond Success

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 9 - Respond Failed

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 10 - Convert to File

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

Block 11 - Send a document

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Send email

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

Block 13 - Upload file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 14 - Sticky Note

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

Block 15 - Sticky Note1

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

Block 16 - Sticky Note2

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

Block 17 - Sticky Note3

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

Block 18 - Sticky Note4

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

Block 19 - Sticky Note5

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

3. Summary Table

Workflow Convert PDF content to an MCQ question bank in Excel with Google Gemini
Complexity advanced
Nodes 19
Categories Document Extraction, AI Summarization
Author Ramdoni
Published 18 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14131/14131.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 Convert PDF content to an MCQ question bank in Excel with Google Gemini do?

Convert PDF to MCQ Question Bank in Excel with AI (Gemini) Convert any PDF into a structured Multiple Choice Question (MCQ) bank with answer keys and explanations β€” fully automated using n8n and...

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 Document Extraction, AI Summarization use case.