Quiz Definition JSON — Define Quizzes as Data, Not Code
A QuizDefinition is a plain JavaScript object that describes every step of a quiz funnel: the entry point, the list of steps (each with an id, type, optional branch rules, and props), and the connections between them. Because it's pure data, you can store it in a config file, generate it with AI, or load it from a CMS.
Last updated: 2026-09-25
Frequently asked questions
What does a QuizDefinition look like?
{ id: 'my-quiz', entry: 'step-1', steps: [{ id: 'step-1', type: 'choice', props: { question: '...', options: [...] }, next: 'step-2' }] }
Can I generate a QuizDefinition with AI?
Yes. The examples section includes LLM prompts for every component. An AI can generate a complete QuizDefinition from a natural-language description.
Is the QuizDefinition validated?
The engine validates step references at runtime. Missing step IDs or circular references will throw clear errors.