"

Automatic Creation of H5P

H5P Quiz Content Type

The Quiz H5P Content type lets you specify a quiz in Respondus text format in the Textual editor. While it still involves a copy/paste operation, quizzes can be generated in ChatGPT using the H5P QuizCraft GPT and then pasted into the H5P Quiz Textual editor. The required format is as follows.

H5P Quiz Textual Editor Instructions
Sample ChatGPT Prompt – Quiz Generation
Editing Source Files and Re-uploading .h5p Files
Dialogue Card Creation
  1. Create a new Dialogue Card H5P. Create one card in the new H5P.
  2. Once created, you will see a screen with the H5P. Click the Reuse button and download as a .h5p file
  3. Extract the .h5p with the built-in ZIP program, 7-Zip, or WinZip.
  4. The folder structure should be similar to:
  5. In the content folder, you will find the content.json file:
  6. You can open this file with a text editor like Notepad, Notepad++ or VS Code.
  7. The main content is the dialogue Array in the file; adding one example question before saving the .h5p file will give you the proper formatting.
  8. Copy the dialogue array from the JSON with the example question formatted and use it as a prompt to an AI assistant like Chat GPT or Gemini

    “Using this formatting :

     “dialogs”: [
        {
          “text”: “<p style=\”text-align:center;\”>Biological macromolecules</p>”,
          “answer”: “<p style=\”text-align:center;\”>Large, complex molecules essential to life</p>”,
          “tips”: {}
        }
    }
      Can you complete the dialogs array with these terms keeping the exact wording: *pass the terms/answers here in format: [key term: answer]*
  9.  Replace the dialogs array with the new content and save the  file.
  10. Use the latest release of the H5P Zipper Tool, open the tool and press 1 and enter on your keyboard.
  11. Paste the folder path of the extracted H5P folder with the updated content file into the tool and hit enter.
  12. You should get a success message and a new .h5p file with the same name as the folder in the source folder.
  13.  Upload this newly created.h5p file to the hub and check for errors. Sometimes, AI will change wording or miss a question.

H5P Other Content Type

You can modify the H5P zip file containing the text to other content types to automatically load content. For instance, see the example below for the Flashcard content type.

 

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Fanshawe OER Training Guide Copyright © 2024 by Fanshawe College is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.