Skip to main content

Prompts Guide — Smart Rules AI

Smart Rules AI lets you create individual Moodle activities from a prompt.

Before using Smart Rules AI, configure an AI context in Course Creator AI (a system instruction or custom prompt). That context acts as the general rules for how the AI should create activities — set it once per course.

Then, when you create a rule with a "Create AI activity" action, you write a prompt describing the specific activity you want.


Quick rules

Include these in every prompt for better results:

  • Activity type — Quiz, H5P, Page, Book, Forum, Assignment, Glossary, etc.
  • Goal — what learners will practice or learn (measurable, not vague)
  • Audience — level, age, or role
  • Language
  • Exact quantities — number of questions or items when consistency matters
  • No external links — if everything must stay inside Moodle

Create a single activity

Example 1 — Assignment with rubric

AI context (set once in Course Creator)

You are an activity generator for Moodle. Create standalone activities that are ready to use.

RULES:
- Every activity must have a clear title, specific learning goal, and step-by-step instructions.
- Use Spanish.
- Include assessment criteria or a simple rubric when the activity requires evaluation.
- Keep descriptions concise and practical.

Your prompt (write in the rule action)

Create a Moodle Assignment about "SQL JOINs practice".

Language: Spanish.
Audience: beginners, database course.
Goal: write correct JOIN queries for 5 scenarios and explain the result set.

Format:
- Scenario descriptions with sample tables.
- Task: learners write INNER JOIN, LEFT JOIN, and FULL JOIN queries.
- Submission: SQL queries + short explanation for each.
- Rubric: 3 criteria (syntax correctness, JOIN choice, explanation clarity) with 3 levels each.

Constraints:
- No external links.
- Estimated time: 40 minutes.

Example 2 — Quiz

AI context (set once in Course Creator)

You are an activity generator for Moodle.
Use Spanish. Include clear instructions and brief feedback after each question.

Your prompt (write in the rule action)

Create a Moodle Quiz about "SQL JOINs basics".

Language: Spanish.
Audience: beginners, database course.
Goal: recognize when to use INNER vs LEFT JOIN and predict the result.

Constraints:
- 10 questions.
- Mix: 6 multiple choice, 2 true/false, 2 scenario-based (given two tables and a query, what is the output?).
- Brief feedback after each question.
- No external links.
- Time estimate: 20 minutes.

Template

AI context (set once in Course Creator)

You are an activity generator for Moodle.

RULES:
- {role and scope}
- {format and language requirements}
- {quality guidelines}

Your prompt (write in the rule action)

Create a Moodle {type} about "{topic}".

Language: {language}.
Audience: {level}.
Goal: {specific, measurable goal}.

Format:
- {description of format}

Constraints:
- {key constraints: time, number of items, external links, etc.}