Automate AI-powered quiz generation from PDFs with Google Forms
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“PDF”). Along the way it connects OpenAI Chat Model and Google Sheets. It also calls forms.googleapis.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“PDF”).
- Extract from File: extracts data from a file (pdf)
- Questions Generate (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Create Form (HTTP Request): calls forms.googleapis.com (POST)
- Enable Quiz Mode (HTTP Request): calls an HTTP API (POST)
- Add Questions (HTTP Request): calls an HTTP API (POST)
- Add Student Details (HTTP Request): calls an HTTP API (POST)
- Set a Google Sheet Structure for all Questions (Code): runs custom JavaScript code
- Append All Questions (Google Sheets): append
Services it uses
HTTP calls to: forms.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - n8n Form Trigger
n8n-nodes-base.formTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets
From the author
✅ What problem does this workflow solve? Teachers, coaches, and educators spend hours manually creating quizzes from study notes and PDFs. This workflow eliminates that effort by using AI to convert PDF study material into fully functional quizzes, complete…