Wiris

Documentation / LearningLemur

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • LearningLemur
                      • Using LearningLemur
                      • Creating questions with AI in LearningLemur
                      • Creating questions with AI in LearningLemur

                      Writing effective prompts for AI question generation

                      Reading time: 2min

                      The quality of AI-generated questions in LearningLemur depends directly on the prompt you provide. A well-written prompt helps the system generate questions that match your intended topic, difficulty level, and structure.

                      This article explains how to write effective prompts and how to improve the quality of generated questions.

                      What It Is

                      A prompt is a textual description that tells the AI what kind of questions to generate. It defines:

                      • The mathematical topic.
                      • The type of task.
                      • The expected level of difficulty.
                      • Any specific constraints.

                      The AI uses this information to generate question drafts.

                      Why It Matters

                      The AI does not infer context beyond what you explicitly provide. A vague prompt may produce:

                      • Unclear questions.
                      • Inconsistent difficulty.
                      • Missing requirements.

                      A precise prompt leads to:

                      • More accurate questions.
                      • Better alignment with your goals.
                      • Less manual editing.

                      How It Works

                      Principle 1: Be specific about the topic

                      Clearly describe the mathematical concept.

                      • Good: Solve linear equations with one variable
                      • Too vague: Math problems

                      Principle 2: Specify the task type

                      Indicate what students are expected to do.

                      • Good: Create problems where students must simplify fractions
                      • Ambiguous: Fractions

                      Principle 3: Define the difficulty level

                      Mention the target level or constraints.

                      • Good: For middle school students with integer results
                      • Missing context: Solve equations

                      Principle 4: Add constraints when needed

                      Include any requirements that affect the structure of the question.

                      • Good:
                        • Require answers in simplified form
                        • Use numbers between 1 and 10
                        • Include units in the answer

                      Principle 5: Combine multiple instructions

                      A strong prompt combines topic, task, and constraints.

                      • Example: Create 3 open-answer questions where students solve linear equations with one variable. Use integer coefficients and require simplified answers.

                      Key Rules or Behaviours

                      • The AI relies entirely on the prompt content.
                      • Missing information leads to less predictable results.
                      • More detailed prompts generally produce better outputs.
                      • Overly complex prompts may produce inconsistent results.

                      Examples

                      Example 1

                      Prompt Create fraction addition problems
                      Result
                      • Generic questions
                      • Variable difficulty
                      • Minimal constraints

                      Example 2

                      Prompt Create 3 open-answer questions where students add two fractions and provide the result in simplified form. Use denominators between 2 and 10.
                      Result
                      • Clear structure
                      • Controlled difficulty
                      • Consistent output

                      Example 3

                      Prompt Create 2 multiple-choice questions about solving linear equations. Include one correct answer and three distractors based on common mistakes.
                      Result
                      • Better alignment with question type
                      • More usable output (though distractors may still need review)

                      Common Misunderstandings

                      Misconception: The AI will infer the intended difficulty.
                      Clarification: Prompts guide generation, but manual review is always required.

                      Misconception: The AI will generate complete, ready-to-use questions.
                      Clarification: Prompts should be clear and structured, not overly verbose.

                      Misconception: Adding more text always improves results.
                      Clarification: Prompts should be clear and structured, not overly verbose.

                      Related Concepts

                      • How AI question generation works in LearningLemur
                      • Creating questions in LearningLemur
                      • Understanding Question Types in LearningLemur

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • WirisQuizzes Moodle Plug-In
                      • WirisQuizzes Answer Types

                      Writing effective prompts for AI question generation

                      What It Is Why It Matters How It Works Key Rules or Behaviours Examples Common Misunderstandings Related Concepts

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand