ECA Quiz prompts view

This project is not covered by Drupal’s security advisory policy.

This is a Drupal recipe for automatic generation of quiz questions for the Quiz module, using the ECA (Event-Condition-Action) and the AI modules. It also leverages the ECA Quiz module to enable content-related actions.

Why Use This Recipe?

  • ✅ Generate quiz questions automatically using AI, saving time and effort.
  • ✅ Leverage ECA actions to streamline quiz creation and management.
  • ✅ Seamless integration with the Quiz, ECA, and AI modules.
  • ✅ User-friendly UI for configuring and deploying quizzes.
  • ✅ Supports OpenAI for advanced question generation (OpenAI platform API key required).

What’s Included?

This recipe installs and configures the following modules:

  • ECA and ECA UI for workflow automation
  • Quiz for quiz management
  • AI and OpenAI Provider for AI-powered question generation
  • ECA Quiz for quiz-specific ECA actions
  • Views for custom quiz displays
  • Supporting modules like Token, Paragraphs, and Tagify for enhanced functionality

Installation and usage instruction

  1. Configure your OpenAI API key (see introduction on the OpenAI platform).
  2. Download this recipe via Composer:
    composer require drupal/quiz_questions_by_eca_and_ai
  3. Install the reciple via Drush (from the web folder):
    drush recipe ../recipes/quiz_questions_by_eca_and_ai
    Note: Here you will be asked for your previously setup Open AI platform API key​​​
  4. Flush the cache. E.g. via Drush: drush cr
  5. Sign-in into your administration backend (e.g. via drush uli)
  6. Create a question prompt at /node/add/question_prompt
  7. Run the "Quiz questions generation by AI prompt" action on the question prompt view: /admin/content/ai-prompts-for-questions
    ECA quiz prompts view
  8. See the list of your AI-generated 10 quiz questions: /admin/quiz/questions

Project information

Releases