Templates / Create anti-cheating tests from PDFs with GPT-4o-mini and Google Docs

Create anti-cheating tests from PDFs with GPT-4o-mini and Google Docs

Ready for 3.0

by Sasha · 48 views · created 2026-01-31 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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”).

  1. Extract PDF (Extract from File): extracts data from a file (pdf)
  2. AI Generate (OpenAI): uses OpenAI
  3. Format Test (Code): runs custom JavaScript code
  4. Create Doc (Google Docs): uses Google Docs
  5. Share Doc (Google Drive): share
  6. Insert Group A (Google Docs): update
  7. Page Break (Google Docs): update
  8. Insert Group B (Google Docs): update
  9. Send Email (Gmail): uses Gmail

Services it uses

OpenAIGoogle DocsGoogle DriveGmail

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)

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…

Excerpt from Sasha's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.