Generate structured exams from PDFs with OpenAI GPT-4o and HTML to PDF
ExamForge AI Automated PDF to Structured Exam Generator (MCQ + Essay + Answer Key) Generate structured exams automatically from text-based PDF materials using AI. ExamForge AI is a production-ready n8n workflow that transforms educational content into multiple-choice and essay questions with customizable difficulty and automatic answer key generation. --- β¨ Features - π Upload PDF via Webhook - β File size validation (default: max 5MB) - π§Ή Automatic text cleaning - π Token length
At a glance
Generate structured exams from PDFs with OpenAI GPT-4o and HTML to PDF is a ready-made n8n workflow you import as a workflow JSON file β no build required. It connects OpenAI, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- OpenAI, Telegram
- Modules
- 16
- Price
- Free
- Version
- v1.0

About this workflow
ExamForge AI Automated PDF to Structured Exam Generator (MCQ + Essay + Answer Key) Generate structured exams automatically from text-based PDF materials using AI. ExamForge AI is a production-ready n8n workflow that transforms educational content into multiple-choice and essay questions with customizable difficulty and automatic answer key generation. --- β¨ Features - π Upload PDF via Webhook - β File size validation (default: max 5MB) - π§Ή Automatic text cleaning - π Token length estimation & safety control - π― Customizable MCQ & Essay count - π§ Difficulty selection (easy / medium / hard) - π Language selection - π¦ Structured JSON AI output - π Separate Exam PDF & Answer Key PDF - π² Telegram delivery support (optional) - π Parameter validation with structured error responses --- π§ What This Workflow Does 1. Accepts PDF upload via Webhook 2. Validates file size 3. Extracts and cleans text content 4. Estimates text length to prevent token overflow 5. Validates required parameters: - mcqcount - essaycount - difficulty - language 6. Sends structured prompt to OpenAI 7. Parses JSON response 8. Formats exam and answer key separately 9. Converts both into PDF 10. Sends results via Telegram or Webhook response --- βοΈ Requirements Accounts Required - OpenAI account (API key required) - Telegram Bot (optional) - PDF Munk (API key required) Environment - n8n (self-hosted or cloud) - Node version compatible with your n8n installation --- π Credentials Setup 1οΈβ£ OpenAI - Add OpenAI credentials inside n8n - Insert your API key - Select preferred model (e.g., GPT-4o / GPT-4) 2οΈβ£ Telegram (Optional) - Create a Telegram Bot via BotFather - Insert Bot Token into Telegram node - Add your Chat ID --- π Webhook Configuration Method: POST Content-Type: multipart/form-data Required Parameters | Parameter | Type | Required | Description | |--------------|--------|----------|-------------| | file | File | Yes | PDF document | | mcqcount | Number | Yes | Number of multiple-choice questions | | essaycount | Number | Yes | Number of essay questions | | difficulty | String | Yes | easy / medium / hard | | language | String | Yes | Output language | --- π₯ Example Request `bash curl -X POST \ -F "file=@document.pdf" \ -F "mcqcount=20" \ -F "essaycount=5" \ -F "difficulty=medium" \ -F "language=Indonesian"
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n β click the menu β Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Create iCalendar events from new Telegram messages
Map which AI search topics each domain owns with SE Ranking and GPT
Get new Slack messages on Telegram
Create low-cost AI videos with Veo3 fast and upload to YouTube & TikTok
Create viral LinkedIn content with O3 & GPT-4.1-mini multi-agent team
Generate a personal newsfeed using Bright Data web scraping and GPT-4.1
Simulate business decisions with Google Sheets, GPT-4.1 and Slack
Route and validate emailed documents with Gmail and Google Gemini
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint β instant download
- Setup guide PDF included
- 5 downloads Β· valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you