Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module uses AI to automatically generate quiz questions and answers in Drupal. It leverages the ECA, Quiz, and AI modules to create interactive quizzes from customizable prompts, with questions returned in JSON format for easy processing and integration into your site's content.

AI-Powered Quiz Generation for Drupal

The ECA Quiz module extends the ECA (Event-Condition-Action), Quiz and AI modules to automate the creation of interactive quizzes by providing action plugins.

This module provides the necessary AI and entity related action plugins for the Quiz Questions by ECA and AI recipe.

Key Features

  • βœ… AI-Generated Questions: Uses an AI action with customizable prompt templates (currently supporting OpenAI) to generate quiz questions in JSON format.
  • βœ… Automatic Quiz Generation: An ECA action plugin processes an AI-generated JSON string to create quiz questions with multiple-choice answers as Drupal entities.
  • βœ… Flexible integration: Based on the Quiz module for structured quiz management and ECA for workflow automation.
  • βœ… Extensible architecture: Built on a foundation of proven, well-maintained Drupal modules and best practices.

How It Works

  1. AI Prompt Action: Sends a structured prompt to an AI provider (e.g., OpenAI) to generate quiz questions.
  2. JSON Processing: The AI returns questions in JSON format, including question text, categories, options, and correct answers.
  3. Quiz Generation Action: Parses the JSON and automatically creates quiz questions and alternatives in Drupal.
  4. Ready-to-Use Quizzes: The generated quizzes are immediately available for use in courses, assessments, or interactive content.

Use Cases

  • πŸ“š E-Learning Platforms: Automate quiz generation for courses.
  • πŸ€– AI-Assisted Content Creation: Reduce manual effort in creating engaging quizzes.
  • πŸ”„ Dynamic Assessments: Generate up-to-date quizzes based on evolving content or user input.

Requirements

  • AI module with configured OpenAI provider. This requires an OpenAI platform API key. See introduction on theΒ OpenAI platform.
  • ECA (Event-Condition-Action)
  • Quiz module

Recipe

Use the Quiz Questions by ECA and AI recipe for creating a quick and ready setup for quiz question generation.

Activity

Total releases
3
First release
Sep 2025
Latest release
8 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
1.0.0-alpha3 Pre-release Oct 26, 2025
1.0.0-alpha2 Pre-release Oct 26, 2025
1.0.0-alpha1 Pre-release Sep 27, 2025