Skip to main content

Dynamic Content

This article will help you to create dynamic content

Written by Anastasiia

Dynamic content helps you personalize a course for learners based on specific parameters (variables), such as department, position, city, etc. With dynamic content, you can control what content is displayed depending on the values of these variables.


Creating a Dynamic Lesson or Test

📌 Collecting and Defining Variables

To configure dynamic content, you must first collect and define the variables. There are four ways to do this:

  1. Bulk variable import via CSV file
    You can add variable values for multiple learners at once during import. To do this, go to Manage Learners, Teams & Departments, click "Invite Learners" "Import from CSV file":



    Upload your file, and map its columns to the corresponding variables. If needed, you can also create new variables directly during the import:


    For more details on bulk learner invitations and variable import, see the article How to Import Learner Properties via CSV?

  2. Using the API method setLessonVariables:
    https://academyocean.com/api#setLessonVariables

  3. Collecting variable data through a Pop-Up (learners can select the variable value themselves):
    https://app.academyocean.com/account/settings/visual/welcome-pop-up

  4. Collecting variable data using a quiz (variable values can be defined based on learners’ answers).

To set this up, click the three dots next to a test question and choose “Associate variable” (available for “One choice”, “Written answer”, and “Yes/No”). After that, the answer options will become values for the selected variable:

You can replace the answer text with the required variable value. To do this, click “Override answer with variable” and enter the variable’s value.

When a learner selects this answer option, the variable will automatically receive the new value. Don’t forget to save your changes.


📌 Configuring a Dynamic Lesson or Quiz

To make a lesson or quiz dynamic, click the three dots next to its title and select “Dynamic content”.

Enable the feature by switching the toggle.

Select the variable, condition, and variable value. You can add multiple conditions using the “Add condition” button.

After adding all necessary conditions, click “Save”. The lesson will then be visible only to learners who match the defined conditions:


Creating Dynamic Content Inside a Lesson

You can make not only entire lessons dynamic but also specific content blocks within a lesson.

Open the lesson where you'd like to create dynamic content. Click the plus icon (Quick Insert) and select “Dynamic content”.

In the window that appears, enter the block title and description (optional), and select the variable, condition, and variable value. You can add multiple conditions using “Add condition”. After finishing, click “Create”.

Now you can add the content that will appear only when the conditions are met. Make sure to save your changes.

Back in the lesson editor, you will see that this part of the lesson will be displayed only to learners who meet the specified variable criteria.

Did this answer your question?