quiz_questions_by_eca_and_ai
No security coverage
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
- Configure your OpenAI API key (see introduction on the OpenAI platform).
- Download this recipe via Composer:
composer require drupal/quiz_questions_by_eca_and_ai - 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 - Flush the cache. E.g. via Drush:
drush cr - Sign-in into your administration backend (e.g. via
drush uli) - Create a question prompt at
/node/add/question_prompt - Run the "Quiz questions generation by AI prompt" action on the question prompt view:
/admin/content/ai-prompts-for-questions
- See the list of your AI-generated 10 quiz questions:
/admin/quiz/questions