Skip to main content

Generate Question AI Node

The Generate Question AI Node generates customized questions in formats such as Multiple Choice, Short Answer, and Paragraph. Flow creators can select their desired question type, choose an AI model (e.g., GPT-4 or GPT-3.5), and provide additional instructions to tailor the questions according to their inputs.

Generate Question AI Node


Basic Usage

Use the Text, Display Text, Generate Question Via AI Node, and Display Quiz Nodes for your process.


Inputs

The Generate Question Via AI Node accepts the following input:

  • Instruction: Custom instructions that guide the AI in generating questions based on specific topics, difficulty levels, or learning objectives.

Outputs

  • Output: The generated question in text format.
  • AI-Generated Quiz JSON: Structured JSON output containing the complete quiz data, ready to be used with Display Quiz node.

Configuration

Process Type

Select the AI model to use for question generation:

  • GPT-4o-mini: Fast and cost-effective option for most question generation tasks.
  • GPT-4o: Advanced reasoning for more sophisticated and nuanced questions.
  • GPT-3.5: Efficient model for simpler question generation.
  • Gemini 1.5 Pro: Google's advanced AI model for diverse question types.
  • Claude 3.5 Sonnet: Anthropic's balanced model for various question formats.
  • Other supported models: Additional AI models available in your LearningFlow instance.

Type

Choose the question format to generate:

  • Multiple-Choice Questions: Questions with multiple answer options where students select the correct answer(s).
  • Fill in the blank: Questions where students complete sentences or statements with missing words.
  • True/False: Binary questions where students determine if a statement is true or false.

Number of Questions

Specify how many questions to generate (enter a numeric value in the input field).


Example Workflows

Solar System Quiz Generator

Scenario: Create an automated quiz generator that produces multiple-choice questions about the solar system.

Generate Question Via AI Example

Steps to Create the Flow:

  1. Start with the Start Node.

  2. Add and connect a Text node with instructions for question generation:

    Generate questions about the solar system.
    • Enable Encrypt the text if needed for security.
  3. Add and connect a Generate Question Via AI Node:

    i. Choose the Process Type: GPT-4o-mini (for efficient question generation)

    ii. Select Type: Check Multiple-Choice Questions

    iii. Set Number of Questions: Enter 1 (or your desired number)

    iv. Connect the Text node's Output to Instruction

  4. Add and connect a Display Quiz node:

    • Connect the AI-Generated Quiz JSON output to the Display Quiz node's Input
    • Configure Display Quiz settings:
      • Show Answers: Enable to display correct answers
      • Set Score, Base Score, and User Responses connections as needed
  5. Add a Text Join node (optional) to combine results with other content.

  6. Add Display Text to show the final output.

Example Generated Question:

{
"question": "Which planet is known as the Red Planet?",
"options": [
"Mars",
"Venus",
"Jupiter",
"Saturn"
],
"correctAnswer": "Mars"
}

Result: Users receive automatically generated quiz questions about the solar system that can be immediately displayed and used for assessment.


Multi-Topic Assessment Generator

Scenario: Generate a comprehensive assessment with multiple questions on a specific topic.

Steps to Create the Flow:

  1. Start with the Start Node.

  2. Add and connect a Text node with detailed instructions:

    Generate challenging questions about photosynthesis for high school biology students. 
    Include questions about the light-dependent reactions, Calvin cycle, and factors
    affecting photosynthesis rate.
  3. Add and connect a Generate Question Via AI Node:

    i. Choose the Process Type: GPT-4o (for more sophisticated questions)

    ii. Select Type: Check Multiple-Choice Questions

    iii. Set Number of Questions: Enter 5

    iv. Connect the Text node's Output to Instruction

  4. Add Display Quiz node to present the generated questions:

    • Connect AI-Generated Quiz JSON to Display Quiz input
    • Enable Show Answers for review mode
    • Configure scoring parameters
  5. Add Display Text to show completion message or additional instructions.

Benefits:

  • Quickly generate multiple questions on complex topics
  • Consistent question quality using advanced AI models
  • JSON output ready for immediate use in quiz displays
  • Customizable difficulty and focus areas through instructions

True/False Quick Assessment

Scenario: Create a rapid true/false assessment for concept verification.

Steps to Create the Flow:

  1. Start with the Start Node.

  2. Add and connect a Text node with instructions:

    Generate true/false questions about the water cycle, including evaporation, 
    condensation, precipitation, and collection.
  3. Add and connect a Generate Question Via AI Node:

    i. Choose the Process Type: GPT-4o-mini

    ii. Select Type: Check True/False

    iii. Set Number of Questions: Enter 3

    iv. Connect the Text node's Output to Instruction

  4. Add Display Quiz node to show the true/false questions.

  5. Add Display Text for results and feedback.

Example Generated Questions:

  • "Evaporation is the process where water vapor turns into liquid water. (False)"
  • "Precipitation includes rain, snow, sleet, and hail. (True)"
  • "The water cycle is a continuous process. (True)"

Result: Quick and effective true/false assessments that test fundamental understanding of key concepts.