The Claude quiz prompt, and why it asks for JSON
Claude is careful and good at nuanced questions, but when you ask it for a quiz it often builds an artifact: a small interactive app that only works inside that Claude conversation. That is fun once, but you cannot save it as a quiz, retry your mistakes or come back to it from another device.
The prompt on this page asks Claude for a JSON object instead, with a title and questions that each have options, the exact correct answer and an explanation. It also makes Claude ask about your topic, quiz length and difficulty before it writes anything.
Build a Claude quiz from a long PDF
Claude handles long documents well, which makes it a strong choice for textbook chapters, research papers and reading packs. Attach the PDF when Claude asks for material, and tell it which sections matter. Ask for one quiz per section of 10 to 25 questions rather than one huge quiz, so every question stays specific.
If you want questions traced back to the exact page, Lorea's own quiz generator reads the PDF and cites where each question came from.
From Claude's JSON to an interactive quiz
Paste the reply below and Lorea handles the rest:
- Questions one at a time, answers hidden until you choose
- Claude's explanation shown right after each answer
- A final score with the questions you missed
- A retry of only the missed questions
- Save to Lorea to keep the quiz and get more questions
Save the instruction in a Claude Project
Create a Project in Claude and paste the instruction into its project instructions. Add your course PDFs to the Project knowledge too. Every new chat in that Project then starts as a quiz maker for your course, and each quiz is one paste away from playable.
Using a different assistant? The same flow works with the ChatGPT Quiz Maker and the Gemini Quiz Maker. To skip the copy-paste completely, turn a file straight into questions with PDF to Multiple Choice, build a timed mock exam, or make a class review game with the AI Jeopardy Generator.