OLI Dynamic Questions

OLI Dynamic Questions

  • Docs
  • API
  • Examples
  • Help

OLI Dynamic QuestionsCreate OLI questions with dynamic content

Read the Docs
See Examples
Try it out

Get Started Quickly

With an intuitive editor and extensive documentation, creating dynamic questions is easy

Designed for Learning

Dynamic questions were built for OLI which means they work seemlessly with all existing courses

Powerful Customization

Dynamic questions allow course authors to create complex, domain-specific questions that vary their content for each student.

Features

  • Course Author support with a built-in editor
  • Create dynamic expressions using JavaScript ES6
  • Common functions and useful third-party libraries included
  • Use with new or existing OLI courses

Define Variables

Define variables using JavaScript. Using the built-in editor, create simple and advanced scripts using built-in OLI functions or third-party libraries to define question variables.

For more information, see Script Basics.

Reference Variables in Questions

Reference variables in questions to vary question content. Variables can be referenced from anywhere such as the question body, feedback, hints and matching answers.

For more information, see Variables.

Ready to Get Started?

Start creating dynamic questions in a new or existing course using the OLI Course Author.
Go to Course Author
OLI Dynamic Questions
Docs
Getting StartedWriting Scripts
Community
Course Showcase (Coming soon)OLI Slack
More
OLIOLI Course EditorGitHubStar
Copyright © 2025 Carnegie Mellon University