config.lmsContext and update it at runtime with widget.updateContext(...).
Update on navigation
Update the context as the student moves through the LMS. This snippet is from the playground:Behavior
The first context update requires a pageType
The first context update requires a pageType
If no context exists yet and you call
updateContext without pageType, a ConfigurationError is thrown.Auto-nudging on contextual pages
Auto-nudging on contextual pages
When the context changes to a contextual page (
assignment, quiz, or submission) while the widget is idle, it automatically transitions to nudge.Struggle detection
Struggle detection
The context engine can infer whether a student is struggling from
userProgress and suggest nudge types accordingly. This is used internally to drive nudges.