ChatGPT questions to Moodle quiz

You can ask a chatbot such as ChatGPT to draft quiz questions, then turn them into a file Moodle can import. The trick is asking for a layout the converter understands. This page gives you a prompt for that.

Step 1: use this prompt

Replace the topic and number, then paste it into the chatbot:

Write 10 multiple choice questions about [YOUR TOPIC] for [YOUR LEVEL] students.
Use exactly this layout and nothing else:

1. Question text
A) First option
B) Second option
C) Third option
D) Fourth option
Answer: B
Feedback: One sentence explaining why B is correct.

Rules: number the questions 1, 2, 3. Give exactly one correct answer per
question. Put each option on its own line starting with A) B) C) D).
Put the answer on its own line as "Answer: " and the letter.
Leave a blank line between questions. Do not add any introduction,
headings or closing remarks.

The "Feedback:" line is optional. Without it, the questions still convert.

Step 2: check every answer key yourself

Chatbots make mistakes. They can pick the wrong letter, write two options that are both right, or state something false with confidence. Read every question and confirm every answer before you give the quiz to students.

Step 3: paste into the converter and export

  1. Open the converter and paste the chatbot's text.
  2. Check the question count and the "Problems found" list. A question with no clear correct answer is left out.
  3. Choose GIFT or Moodle XML and download the file.

If the chatbot adds Markdown bold, the tool removes it. If it ignores your layout, ask it to repeat the answer in the exact format.

Step 4: import into Moodle

In Moodle 5.3: open your course, choose Question banks, open the question bank, choose Import from the menu, select the format that matches your file (GIFT format or Moodle XML format), upload it and select Import. Menu names depend on your Moodle version. We tested this import in Moodle 5.3 on Moodle's public demo site with a 10-question set and the answers came through correctly. Other Moodle versions and larger files are untested, so import a small batch first and check the answers. Then add the questions to a quiz.

Limits

Back to the tool

Open the free quiz converter. It runs in your browser and nothing is uploaded.