Skip to content
WP Commerce Lab

WORDPRESS + AI

An AI choose-your-own-adventure quiz for WordPress

A quiz where AI writes each next scene and its choices from the path so far. A config, not a prompt, holds the rules, and code (not the AI) decides the result type. It embeds with a WordPress shortcode or block, a script tag, an iframe or a hosted page.

The problem

Quizzes are either static and forgettable, or generated freely by AI with no guarantee on tone, length or what the result says.

What it does

A quiz where AI writes each next scene and its choices from the path so far. A config, not a prompt, holds the rules, and code (not the AI) decides the result type. It embeds with a WordPress shortcode or block, a script tag, an iframe or a hosted page.

Watch it work

About 2 minutes. A sample "What kind of traveler are you?" quiz on a sample WordPress site. Captions are burned in. Open the MP4.

Key features

  • 01

    Rules live in config

    Theme, tone, premise, a fixed number of steps, do and do-not lines, and a fixed list of result types.

  • 02

    Validated AI output

    The AI must return structured scenes. Each choice must lean toward a real result type; anything invalid is discarded.

  • 03

    Result chosen by code

    The most-chosen type wins, with ties going to the latest choice. The AI only writes the result card, and must cite choices the visitor actually made.

  • 04

    Always completes

    On a timeout, error or over-budget session, a pre-written scene or result is used, so the quiz never dead-ends. The video forces a failure to show it.

  • 05

    Measured speed and cost

    In the recorded runs, a click waited a median of about 2 seconds, or near zero with prefetch on. Cost per completed quiz was about $0.002 without prefetch and $0.007 with it, at list prices.

  • 06

    Accessible by design

    Real buttons, visible focus, number keys pick a choice, focus moves to each new scene, a live status for screen readers and reduced-motion support.

Built by Jay, demo on sample data

  • Built by Jay as a demo. The travel theme and the pre-written fallback text are samples; live scene text comes from the AI. The email capture writes to a file in the demo and would be replaced with a CRM or mailing-list call.
  • The speed and cost numbers are from real calls, computed from token counts at list prices; the provider bill was not checked.

Not built yet

  • The visitor's path is validated for shape but not signed, so a visitor could forge choices. Sign the path if results gate anything.
  • No analytics, saved sessions or admin editor for quizzes yet; a quiz is a JSON file plus a restart.
  • The widget loads from the quiz server, so both WordPress and the server need HTTPS in production.
  • The AI key stays on the quiz server only. A formal accessibility audit has not been run.

Tested on. A small Node and TypeScript quiz server, a dependency-free widget, and a WordPress plugin. 50 automated tests with the AI stubbed.

More solutions

WORDPRESS

Membership Course Site

Plans, video lessons, progress tracking and renewals, with an AI quiz builder for the owner.

114 s videoView the demo

CONFIGURATOR

PrintFlow Configurator

A product page that turns into a print configurator, with a pre-flight check that blocks bad artwork.

84 s videoView the demo

QUOTE FLOW

Craft Quote Requests

Quote-only products: customers upload photos and pick options, you reply with a price and turn it into an order.

62 s videoView the demo

Start with a brief

Want something like AI Adventure Quiz?

Tell us what the plugin or store feature should do. You get a plain-language reply, and if it fits, a working demo with a video before you commit.