Create anti-cheating tests from PDFs with GPT-4o-mini and Google Docs
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when someone submits an n8n form (“AI Test Generator”). Along the way it connects OpenAI, Google Docs, Google Drive and Gmail.
How it runs
Trigger: When someone submits an n8n form (“AI Test Generator”).
- Extract PDF (Extract from File): extracts data from a file (pdf)
- AI Generate (OpenAI): uses OpenAI
- Format Test (Code): runs custom JavaScript code
- Create Doc (Google Docs): uses Google Docs
- Share Doc (Google Drive): share
- Insert Group A (Google Docs): update
- Page Break (Google Docs): update
- Insert Group B (Google Docs): update
- Send Email (Gmail): uses Gmail
Services it uses
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 (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Google Docs
n8n-nodes-base.googleDocs - Google Drive
n8n-nodes-base.googleDrive - Gmail
n8n-nodes-base.gmail
From the author
Extract content from PDFs, generate two different test versions with AI, and create formatted Google Docs with automated email delivery. This workflow extracts text from PDF teaching materials, uses OpenAI to generate 10 test questions in two different…