# ✨AI Lab

**AI Lab** is a powerful add-on designed to simplify and accelerate course creation within your learning management system. By integrating artificial intelligence into the content-building process, AI Lab allows instructors to generate entire courses, lessons, quizzes, assignments, and even visuals from a single input.

Whether you are creating a course from scratch or enhancing existing content, **AI Lab** helps you work faster, smarter, and with more creativity. It removes the manual workload and lets you focus on teaching, while AI cares for structure, flow, and variety.

**✅ With AI Lab, you can:**

* Generate [**full course**](#how-to-generate-course-with-ai) structures with titles, descriptions, and outlines
* Create interactive and [**well-organized lessons**](#craft-lessons-with-ai)
* Automatically produce[ **quizzes and assignments** ](#craft-quizzes-with-ai)aligned with your content
* Add relevant images to your lessons using [**AI image generation**](#image-generation-with-ai)
* Instantly rewrite or[ **improve any text content**](#improving-content-with-ai) across your course

This documentation will guide you through installing the add-on, using each feature effectively, and customizing the output to fit your teaching style.

## AI Lab Addon Settings

AI Lab addon can be activated by following **WP Dashboard > MS LMS > Pro Addons > AI Lab:**

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fd4mr02qwKHnUnexdQqRU%2Fimage.png?alt=media&#x26;token=170835c1-fffc-4181-a8cb-444f8f3ea91a" alt=""><figcaption></figcaption></figure>

Once you have enabled the add-on, you can reach its settings by clicking the gear :gear: icon or by following **WP Dashboard > MS LMS > Settings > AI Lab:**

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FpjlYqS7M67Npzh6Z612C%2Fimage.png?alt=media&#x26;token=2870b829-fcf2-4ba2-b691-5c55b141ba39" alt=""><figcaption></figcaption></figure>

* **Insert OpenAI API Key** - Enter your OpenAI API key to activate AI-powered features in MasterStudy. You can obtain the key [**by following these steps.**](#obtain-openai-credentials)
* **Model -** Choose the desired OpenAI GPT model.
* **Number of Text Suggestions** - Select how many variations of AI-generated text you want to receive for each request.
* **Number of Image Suggestions** - Choose how many AI-generated image options to receive. The **DALLE-3** model will be used to generate images.
* **Instructor Access** - Enable or disable AI feature access for instructors. Use the "Manage" button to configure permissions.

### Obtain OpenAI Credentials

To use the AI Lab features in MasterStudy, you need to connect your OpenAI account by entering your API key.

{% hint style="info" %}
OpenAI provides powerful language and image generation tools, but please note that these services **are not free.** Each time you generate text or images through the AI Lab, your usage is counted and charged according to OpenAI’s[ **pricing model**](https://openai.com/api/pricing/)**.** Charges depend on the number of tokens used in your requests or the number and type of images generated.

➡️ [**How to Set Up Billing?**](#how-to-set-up-billing)
{% endhint %}

{% stepper %}
{% step %}
Visit <https://platform.openai.com/> and sign in with your **OpenAI** account. If you don't have one, you will need to create it first.

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FpspWrqtd5fLthuI8akNT%2Fimage.png?alt=media&#x26;token=c0241100-9127-4d08-9f4a-fbed43cd31c0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
After logging in, you should be redirected to the API Keys tab <https://platform.openai.com/api-keys/>, and here you have to click on **Create New Secret Key:**

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fg35xVzhIj1iGVLtHn8Hz%2Fimage.png?alt=media&#x26;token=dd3edaa9-9e4a-4854-baa4-48c8c7ec86a3" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Set the parameters **as above**, **name** your project according to your needs, and click on **Create Secret Key:**

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FfEwynh2xDXmaPkGa2DqF%2Fimage.png?alt=media&#x26;token=e05482ae-3bde-403a-ad4c-63ec0d074d1e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Copy the generated **Secret Key:**

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FyrNhS81WuA2dU59xV3W2%2Fimage.png?alt=media&#x26;token=facf7aa5-0177-44e4-be98-0f1399b2b065" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Go back to the addon settings and paste the key into the designated field and save the settings:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FOn1abjGfz6Zue0hbbFWa%2Fimage.png?alt=media&#x26;token=fa7db35f-79b5-46c5-b21f-ee844e42cc14" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

Now you can go and [**set up billing**](#how-to-set-up-billing) to use the feature.

### How to Set Up Billing

OpenAI charges for its API based on usage, so if you haven’t already set up a payment method for billing, you’ll need to do so. **Otherwise, the API key you created won’t function.**

:heavy\_dollar\_sign: **Open AI Pricing** 👉 <https://openai.com/api/pricing/>

{% stepper %}
{% step %}
To begin, click the settings (gear :gear:) icon in the top right corner of the **API keys** screen:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FAVpV8Gb2zHm1peeRizfw%2Fimage.png?alt=media&#x26;token=83f2a1cb-1d1f-4a7c-890d-1a75fb8cebcf" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
On the opened page, move to the **Billing tab a**nd click on **Add Payment Details:**

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FSLfFoGTePntQDlEkNKE7%2Fimage.png?alt=media&#x26;token=9e2ced3e-d0dd-4fb3-927b-50c2cc38b9f5" alt=""><figcaption><p><a href="https://platform.openai.com/settings/organization/billing/overview">https://platform.openai.com/settings/organization/billing/overview</a></p></figcaption></figure>
{% endstep %}

{% step %}
Enter your card information and billing:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2F8EGAZJL9DTIqGB3Joy6r%2Fimage.png?alt=media&#x26;token=0700e343-839e-4da1-a1b6-b684d44c25a7" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Set up the payment amount and/or automatic recharge settings according to your needs, and initiate the payment:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FVQxNber3WxSrbCrW32Qg%2Fimage.png?alt=media&#x26;token=c195f1d5-fdbe-4086-b602-5014f4b30960" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now you’ve set up billing, it’s a good idea to set usage limits to control your monthly API spending. Simply click **Limits** in the left menu, set your desired monthly budget, and choose an email notification threshold according to your needs. Finally, click **Save** to apply your settings.

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FpA8r8PzCRAiexuHffxf5%2Fimage.png?alt=media&#x26;token=cf0abe4b-60a7-4695-8032-38a39df0f452" alt=""><figcaption><p><a href="https://platform.openai.com/settings/organization/limits">https://platform.openai.com/settings/organization/limits</a></p></figcaption></figure>
{% endstep %}

{% step %}
You can also check the usage over your API right on the Usage section of the Addon Setting page:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FzVi1RxA8Yvxv7U7bI3R8%2Fimage.png?alt=media&#x26;token=c09b2246-55f7-4922-a63d-b22f44df9773" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## How to Generate Entire Course with AI

The AI Lab add-on allows instructors to generate an entire course in just a few clicks by harnessing the power of artificial intelligence. With a **well-structured prompt**, AI can create comprehensive, well-organized courses with **sections**, **lessons**, **descriptions**, and learning objectives. Based on your input, **AI Lab** will automatically generate:

* Course title, description, and image
* Sections and lesson outlines
* Lesson content with explanations and key points
* Quizzes for selected lessons
* Assignments to reinforce learning
* Suggested images for each lesson
* Course FAQs

{% hint style="info" %}
AI Lab can not generate **audio, video, Google Meet, Stream, or Zoom lessons**. You can use tools to [**improve their text content,**](#improve-content-with-ai) but these kinds of lessons should be [**created** ](#craft-lessons-with-ai)and added manually to the course.
{% endhint %}

{% stepper %}
{% step %}
Go to the **WP Dashboard > MS LMS > Courses,** then click on the  **Generate Course** button:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FccUcDaUZLqm9NzTqr7Xt%2Fimage.png?alt=media&#x26;token=a8f9c508-c922-47fb-a292-7ae56a6862b5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
On the opened page, you will see a special field dedicated to generating a course via prompt using AI. Click on **Generate Entire Course:**

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FnmTpKmF96es7cCZfAtLE%2Fimage.png?alt=media&#x26;token=4d6af018-d925-48f2-bc56-5a5ce6576bca" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Now, we need a clear and specific prompt that describes your course.**

{% hint style="success" %}

#### 💡 What to include in your prompt:

* **Who is the course for?** Mention the target audience and their skill level.
* **What will learners achieve?** Describe learning goals and outcomes.
* **What topics should it cover?** Name specific subjects, themes, or modules.
* **What should the course image depict?** Help create a relevant and eye-catching visual.
* **Preferred tone or style?** Casual, academic, motivational, etc.
* Optionally, include any preferences for how lessons are written (e.g., “use emojis,” “include examples,” etc).

:white\_check\_mark: **You can** [**later refine**](#improve-content-with-ai) **each lesson using other AI tools in the editor.**
{% endhint %}

📝 **Here is the example prompt:**

> I want to create a course called **"Digital Marketing Basics"** for **young entrepreneurs and students aged 16 to 35**.\
> The course should introduce topics like **SEO, content strategy, social media marketing, and email campaigns**.\
> Learners should gain enough knowledge to start promoting their own brand or freelance service online.
>
> For the course image, please show **a group of diverse students at laptops learning marketing tools** in a modern, colorful setting.\
> Use a **friendly, encouraging tone** with **real-life examples** and **emojis** in the text. Lessons should include short intros and 3–4 key points.

Enter the prompt in the designated area:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FIK1EMba0WUnxtMmmmKlS%2Fimage.png?alt=media&#x26;token=2735056f-9ac7-4900-99ce-43fb4fc3f1ff" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now, provide the rest of the details of the course and proceed by clicking the **✨Generate Entire Course** button:

{% hint style="warning" %}
**Note** that if you enable **Create course outline** **only** setting, AI will only generate section and lesson titles without any content.
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FrcVGOEaqw79fGrkBoipY%2Fimage.png?alt=media&#x26;token=dc71495e-32eb-4efe-a6d5-fcab089d3a14" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
It takes some time for AI to generate an entire course with lessons. Be patient and **do not close** the tab during the course generation:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FluEHVFbLCNAEKwQNoZpu%2Fimage.png?alt=media&#x26;token=defd8a90-3654-4c18-832b-098cfa508a5d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
You will see the ready course preview with short and long descriptions, course cover image, and curriculum:

{% hint style="info" %}
When it comes to curriculum, only **section** and **lesson titles** will be generated. **Lesson content** will be generated in the next steps.
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fal6Rgf4Ibg5U3iUrR3XO%2Fimage.png?alt=media&#x26;token=ec981a59-091c-4803-a9b2-e6db51ebe198" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
If you do not like the AI-generated course, you have several options:

{% tabs %}
{% tab title="Regenerate Course" %}
You can do it by clicking the **Regenerate** button on the right sidebar. It simply regenerates the course without changing your original prompt:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FFCsnxWZutB54xxnC1FJB%2Fimage.png?alt=media&#x26;token=33b5fb73-3c33-4db6-8fdd-64c4fbc52acc" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Change Prompt" %}
If you want to add something or change your ideas, you can try changing your prompt. It can also be done by clicking the **Change prompt** button on the right sidebar:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fdw26T6nxLil4N6vFlJmE%2Fimage.png?alt=media&#x26;token=65faec16-9e88-4695-9af6-8e43f1daa1a2" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Regenerate Curriculum" %}
If you are satisfied with everything except the course curriculum, you can try regenerating it by clicking the **Regenerate Curriculum** button on the top right side of the curriculum section:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FM43laRvQe82NLJcn1g10%2Fimage.png?alt=media&#x26;token=09084bc3-4112-4b77-ac1c-ce2a3a595d17" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
Once you are satisfied with the outputs, proceed by the **Save and Continue** button:

{% hint style="danger" %} <mark style="color:red;">**IMPORTANT**</mark>

**Be careful,** if you **close the tab without clicking the save button**, the generated course **will be lost**. It **will not be saved as a draft either.**
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FB4vWsIDe3vGSZuXn8giu%2Fimage.png?alt=media&#x26;token=4619f692-87b7-4853-92b9-a4af287c6a25" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
After that, the system starts generating lesson contents. The same, wait patiently and do not close the tab:

{% hint style="info" %}
Images for the lessons will not be generated in this step. To include illustrations inside lessons, you have to individually add them via Content Generator.
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FzfkLxZJLg0tNyAIhIuSc%2Fimage.png?alt=media&#x26;token=5f85b345-a65b-4508-a5c9-8dfae0d548bb" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Once it's done, proceed by clicking the **Save and Continue** button:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fg2XhPHfgrH30BkuXGTPB%2Fimage.png?alt=media&#x26;token=f114043a-f8cc-4f95-9b09-14dc06bd6132" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now, you can check the contents one by one and the rest of the settings.&#x20;

{% hint style="warning" %}
Please check each lesson, quiz, and assignment and their content one by one. **AI can make mistakes.** You can use individual **AI tools** in each lesson to improve text content and add relevant images.
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FPDo60T66Hyqo6AC8p39E%2Fimage.png?alt=media&#x26;token=550e7ff5-f208-491a-a9b6-7fff5e4761d9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Move to the Settings tab, and check the **course title, cover image, description,** and provide other relevant details (course category, level, duration, etc.):

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FN2v7nuHKrDIwjkvFWJ67%2Fimage.png?alt=media&#x26;token=dcd31ae8-c8d2-4418-b8c2-4985ff1ccec0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In this step, set pricing for the course on the Pricing tab and check the Course FAQs on the FAQ tab:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FWC7V1dD9p48JPRT7utDe%2Fimage.png?alt=media&#x26;token=24a87f8b-36fe-4829-8dc5-5d8e36943961" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now the course is ready to be published. You can change the course status from Draft to Published:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fm9RoSdXCpK9PAQAQCieE%2Fimage.png?alt=media&#x26;token=102be3be-dfcf-489a-b7e8-9dd052357fa9" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

Here is our **AI-generated** course:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FNhwFwrsbaSI4maB3c8bD%2Fimage.png?alt=media&#x26;token=d81d142a-7448-4879-8512-41b0c8f923b4" alt=""><figcaption></figcaption></figure>

## Improve Content with AI

In the **existing lessons and assignments**, you can find small **Generate with AI** ✨ buttons on each text field.&#x20;

{% hint style="success" %}
These buttons are **available** in **all** types of lessons and assignments.
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FVmWcsPLWFckB8ZwklSBe%2Fimage.png?alt=media&#x26;token=7ddef5db-402f-4478-84f9-523eb7816e91" alt=""><figcaption></figcaption></figure>

By clicking on them, you can get the **AI Text Generator** modals:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FLaDH9NGnZX7uSCceF1qH%2Fimage.png?alt=media&#x26;token=afed1421-00c8-450d-94a5-de86c9fa408e" alt=""><figcaption></figcaption></figure>

* **Prompt Input Field** – Describe what you need help writing. For example: “Write a blog intro about AI in education” or “Generate a course title on web development.” This is the main instruction that guides the AI. **The more specific and structured your prompt is, the better the generated content will match your expectations.**
* **Words Limit** – Sets the maximum length of the output text, in number of words. Use this to control how long the generated content should be.
* **Type** – Select the desired output format. Once you change the type, **Word Limit** will also change to the preferred amount automatically. But you can freely change it.
  * **Title** - generates short text designed to be used as a title for the lesson
  * **Paragraph** - generates a medium-sized text designed to be used as a paragraph along with other content
  * **Article** - generates long text designed to be used as a full article that covers the topic fully
* **Tone** – Choose the desired tone of voice for the content. Options includ*e Formal, Casual, Engaging, Professional, and Conversational.*
* **Language** - choose the text output language

{% hint style="success" %}
Once you provide the nice prompt and adjust the rest of the settings according to your needs, simply click on the ✨**Generate** button.
{% endhint %}

## Image Generation with AI

Images can be generated manually for the lesson contents, course cover image, or anywhere that accepts media via the [**Media File Manager**](https://docs.stylemixthemes.com/masterstudy-lms/lms-pro-addons/media-file-manager). So, make sure you have **enabled it.**

{% hint style="info" %}
**AI Lab** uses **OpenAI's** [**DALL·E** ](https://openai.com/index/dall-e/)models to generate images.
{% endhint %}

{% stepper %}
{% step %}
Go to the desired place and put the cursor where you want to add the AI-generated image:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FAxSmuBcLRc0ppr48OCeN%2Fimage.png?alt=media&#x26;token=3e7ef236-f47a-444b-afa6-7e3d90c11106" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click on the I**nsert Image** button from the **WYSIWYG** editor tools:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FjMZCQknHZgaPCsqUXTgK%2Fimage.png?alt=media&#x26;token=04903fce-905c-4c4a-be4d-3ff09ba20375" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In the **General** tab, click on the **Browse files** button:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FsPmm8AX8ZVOPeFM9r2lk%2Fimage.png?alt=media&#x26;token=313ceaab-2ee6-4f0f-bace-7c7755eee212" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
On the opened pop-up, move to the **AI Generate** tab:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2F50qaZ4k30Gs5oI95ASFh%2Fimage.png?alt=media&#x26;token=c57b4517-065b-409f-a0d2-6b9d809d82d5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Describe the image you need in detail and choose the desired image style. Then simply click on the **Generate** button:

{% hint style="info" %}
It takes some time to generate an image. That's why do not close the tab and wait patiently.
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FFNT9xellEV2MQcLgcYRx%2Fimage.png?alt=media&#x26;token=3b0acf5b-060b-4447-b37f-d5541711502f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Based on the number of images you set in the[ **Addon Settings**](#ai-lab-addon-settings), AI Lab offers you several AI-generated images to select.&#x20;

{% tabs %}
{% tab title="1 Image Generated" %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2F8JrVWGYxY0UabDgMScfW%2Fimage.png?alt=media&#x26;token=abcd3063-b46f-4b40-830a-10ecd3741136" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="3 Images Generated" %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FD4Z464MRcNWHA6qUgfYr%2Fimage.png?alt=media&#x26;token=885e5db4-ee1a-4eee-972b-c5b29b48d8ce" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
If you are not satisfied with the generated images, you can regenerate them or change the prompt. To use the image, click on the **Use Selected Image** button. It saves the image on your website and pastes it to the selected place:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FGVTcucyKWcsZ4vzF7IeX%2Fimage.png?alt=media&#x26;token=9a1a5688-b613-46dc-a162-94a116317c01" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

Following the same steps, you can generate the **Course Cover Image** with AI as well:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FLdU9znrUW5a88Cg2JsOU%2Fimage.png?alt=media&#x26;token=ba4a8956-ada9-4a77-8ab3-e9b4a9977524" alt=""><figcaption><p>Course Builder > Settings > Main > Image</p></figcaption></figure>

## Craft Lessons with AI

You can apply the power of AI to your existing lessons to improve their content, or in any courses, you can simply add new lessons with AI.&#x20;

{% hint style="success" %}
A**I Lab** will generate the **lesson title, short description,** and the **main text-based lesson content**. It also **generates images** for better illustration upon request. &#x20;
{% endhint %}

{% stepper %}
{% step %}
Create any type of new lesson:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FK4ViQE1vU5sx398PmgpI%2Fimage.png?alt=media&#x26;token=1ec4ee4d-64cf-402a-aa5f-44d70db88eae" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
At the top of the lesson, there is a special section dedicated to creating lesson contents with AI. Click on Generate:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fh7F0M8kzWCSd9ObtxfR8%2Fimage.png?alt=media&#x26;token=6e804862-6d73-47d4-9a33-6f5d5d5ffaf6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
After that, this menu opens:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fm0Ta6o5dZRlknFyMf8rs%2Fimage.png?alt=media&#x26;token=417ab526-7727-4db1-8829-51390b4e9887" alt=""><figcaption></figcaption></figure>

* **Prompt Input Field** – Provide a clear description of the lesson topic, target audience, key points, and any specific requirements or context. The AI will use this to generate the full lesson content. Additionally, describe the images you want to include as well.
* **Words Limit** – Set the maximum number of words for the AI-generated lesson. This helps control content length based on your needs.
* **Tone** – Choose the desired tone of voice for the content. Options includ*e Formal, Casual, Engaging, Professional, and Conversational.*
* **Images Limit** – Define how many images you want the AI to generate alongside the lesson. The **DALLE-3** model will be used to generate images.
* **Style** – Choose the appropriate image generation style.&#x20;
* **Language** - Choose the output language
* **Continue Manually** – If selected, it lets you skip AI generation and write the lesson manually.
  {% endstep %}

{% step %}
Write your prompt very carefully and in detail. Here is the example prompt:

> Generate a structured lesson script for a video titled “The Basics of Blockchain for Beginners.” The audience is university students with no prior experience in blockchain. The content should cover: what blockchain is, how it works, real-world use cases, and common misconceptions. Keep the tone formal, the style explanatory, and ensure that the script includes clear transitions and engaging explanations suitable for a 5-minute lesson video. Add one relevant image concept for visual aid.

Then, click on the ✨**Generate** button to proceed:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FoV1QwxrLaW0szdzLGw64%2Fimage.png?alt=media&#x26;token=02a67509-24c9-4a69-83b0-ef1ab1605efe" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
It takes some time to generate the lesson. Do not close the tab and wait patiently:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FdTxNhOURyc04rP3gCYr2%2Fimage.png?alt=media&#x26;token=59d79f9b-c23b-491f-86eb-7796db4b0932" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
You got the success message with the contents generated.

{% hint style="info" %}
For **Audio, Video, Google Meet, Stream, and Zoom Lessons**, the rest of the content and lesson details should be provided **manually**.&#x20;
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2Fz4XQljg8eTH0G6lN2aJm%2Fimage.png?alt=media&#x26;token=b9f14c90-f4b7-466f-b9fc-a1f2fedf7e71" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now you can click on the **Create** button to add the lesson to the course:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2F5beRPG4UgkkRQMpdfLfd%2Fimage.png?alt=media&#x26;token=344199e8-df86-4afa-97dd-f018776752de" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Craft Quizzes with AI

Creating quizzes using AI Lab is also straightforward.

{% stepper %}
{% step %}
Create a new quiz or use the existing one. Inside the quiz, you will see the ✨**Generate Questions** button:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FloXPDWuZHV3c8CIu9xVg%2Fimage.png?alt=media&#x26;token=74fcb881-9c60-4c91-8df4-b4aee17f9729" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
You will see **Questions Generator**:

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FLs5b082mLEr9lqaiS7QS%2Fimage.png?alt=media&#x26;token=ddb9fa6a-ec30-4279-8513-f39d4ddbcd04" alt=""><figcaption></figcaption></figure>

* **Prompt Input Field** – Describe the topic, audience level, key concepts, and any special focus areas. The clearer and more specific your instructions, the more relevant and accurate the generated questions will be.
* **Number of Questions** – Set how many quiz questions you want the AI to generate in one go.
* **Answers Limit** – Define the number of answer choices for each question (applies to formats like multiple or single choice).
* **Language** - Choose the output language
* **Preferred** [**Question Types**](https://docs.stylemixthemes.com/masterstudy-lms/lms-course-features/questions#question-types) – Select which types of questions should be included. Options are:
  * **Single Choice** – One correct answer from a list.
  * **Multiple Choice** – Multiple correct answers possible.
  * **True / False** – Binary statement-based questions.
  * **Item Match** – Matching items between two columns.
  * **Keywords** – Short-answer questions requiring a specific word or phrase.
  * **Fill in the Gap** – Questions with a blank that the student must complete.
  * <mark style="color:red;">**\***</mark>**Image Matching** – Generates *Item Match* questions where the answer options are AI-generated images instead of text.
  * <mark style="color:red;">**\***</mark>**Image Choice** – Generates *Multiple Choice* questions with AI-generated images used as answer options instead of text.

<mark style="color:red;">**\***</mark>*Please note that OpenAI has limitations on the number of image generation requests. If this limit is exceeded, the image will not be generated, and an error message will be displayed instead:*

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FIEx5TxF8GaWrNhcYPf8s%2Fimage.png?alt=media&#x26;token=e8e66e81-7945-48ec-af79-7aa631fccd73" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}

#### **IMPORTANT**

Saving quizzes that contain AI-generated images may take longer than usual. This is because the images need to be downloaded from OpenAI's servers during the saving process.

Generating images consumes API tokens, which may lead to faster usage of your token quota and result in additional costs if you're on a paid OpenAI plan. Use this feature mindfully, especially when generating multiple images at once.
{% endhint %}
{% endstep %}

{% step %}
Write your prompt in detail and adjust the rest of the setting. Then, proceed by clicking the Generate button. Here is the example prompt:

> Create 5 intermediate-level quiz questions on the topic of “Introduction to Artificial Intelligence.” Focus on key concepts such as machine learning, neural networks, supervised vs unsupervised learning, and AI applications in daily life. Include a variety of question types like multiple choice, fill-in-the-gap, and true/false. Each question should have up to 4 answer choices.

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2F3ETA5Y8uBkchOPgWQrG4%2Fimage.png?alt=media&#x26;token=a7ac0c63-2356-47d3-848a-f37ddaa07bb4" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**AI Lab** provides a preview of the questions. If you are not satisfied, you can change the prompt or regenerate the response. If you are not satisfied with only one or two questions, you can accept the response, then manually modify it as well:

{% hint style="warning" %}
Pay attention to each generated question and answer. **AI can make mistakes.**
{% endhint %}

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2F2xoLuY1w5QryoScw4X67%2Fimage.png?alt=media&#x26;token=6a5af4ed-b33f-43df-b0c1-b6eeb5ac28bc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Once you are done, you can save the settings, and that's it.

<figure><img src="https://691205473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTL6WUldKvxQaP8jzz%2Fuploads%2FOeIGwMvUoXLtikgWZdXd%2Fimage.png?alt=media&#x26;token=62f38866-8e5b-4c4e-8ef8-e09ab4493bd1" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
**IMPORTANT!**

Be careful and check all the content generated by AI. Because **AI CAN MAKE MISTAKES.**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/masterstudy-lms/lms-pro-addons/ai-lab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
