# PDF to Google Forms Quiz Generator

**Category:** Education  
**Tools:** OpenAI, Google Sheets, n8n  
**Nodes:** 12  
**Built by:** Forgent Systems

Upload study material as a PDF and get a ready-to-share Google Forms quiz. AI writes the multiple-choice questions, answers and marks, and a copy of every question is saved to Google Sheets.

![Workflow](preview.webp)

## How it works

1. A form accepts the PDF and quiz settings.
2. Text is extracted and AI generates structured MCQs with correct answers.
3. A Google Form is created, quiz mode is switched on and student detail fields are added.
4. All questions are inserted into the form and logged in Google Sheets.

## Use cases

- Teachers and tutors
- Corporate training teams
- Coaching institutes

## Data setup

**Google Sheets** (tab: columns)

- **My Quiz Form → Quiz Form**: `Question`, `Option1`, `Option2`, `Option3`, `Option4`, `Correct_answer`, `Quiz Url`

## Setup

1. In n8n open **Workflows → Import from File** and choose `workflow.json`.
2. Connect these credentials:
   - Google Sheets account
   - Google account
   - Http Header Auth account
   - OpenAI account
3. Point the Sheets / Airtable / Drive / Slack nodes at your own resources (structure above).
4. Replace placeholder emails, phone numbers and `YOUR-FORM-ID` links with your own.
5. Times use the America/New_York timezone and dates use MM/DD/YYYY. Adjust if needed.
6. Run a test execution, then activate.

## Nodes

- **OpenAI Chat Model** — `@n8n/n8n-nodes-langchain.lmChatOpenAi`
- **Create Form** — `n8n-nodes-base.httpRequest`
- **Enable Quiz Mode** — `n8n-nodes-base.httpRequest`
- **Add Questions** — `n8n-nodes-base.httpRequest`
- **Add Student Details** — `n8n-nodes-base.httpRequest`
- **Extract from File** — `n8n-nodes-base.extractFromFile`
- **Structured Output Parser** — `@n8n/n8n-nodes-langchain.outputParserStructured`
- **On form submission** — `n8n-nodes-base.formTrigger`
- **Questions Generate** — `@n8n/n8n-nodes-langchain.chainLlm`
- **Set a Google Sheet Structure for all Questions** — `n8n-nodes-base.code`
- **Append All Questions** — `n8n-nodes-base.googleSheets`
- **Sticky Note** — `n8n-nodes-base.stickyNote`
