Skip to main content

devlin.ai simulations: add an AI role-play, no JavaScript

Add a devlin.ai AI role-play to a slide by pasting its embed link. Scenes creates the Sim_ variables, listens for the simulation's messages and counts its score toward the course, with none of the JavaScript Storyline needs.

Last updated 4 min read

The problem

How do I put a devlin.ai simulation in my course and get its score into the LMS?

Step by step

  1. Publish the simulation in devlin.ai

    In devlin.ai, open the simulation's Publish stage and copy the embed link (the Storyline 360 link or the Rise snippet both work).

  2. Insert it

    In Scenes, click AI simulation (devlin.ai) on the toolbar.

  3. Paste and name it

    Paste the Embed link, type a Title, and set Points toward the course score (0 = not scored). Click add.

  4. React to the result

    Add a trigger When variable changes → Sim_EvalComplete → Only if Sim_EvalComplete is true → show a debrief layer.

  5. Try it

    Preview the slide and run the simulation to the end.

What you'll build

A slide where the learner practises a conversation with an AI character from devlin.ai. When they finish, a debrief layer opens and their score counts toward the course.

In Storyline this takes a Web Object, nine variables and JavaScript triggers to pass messages. Here it is one dialog.

Insert the simulation

  1. In devlin.ai, open your simulation's Publish stage. It must be published. Copy the embed link: the Storyline 360 link or the Rise snippet, either works.
  2. In Scenes, click AI simulation (devlin.ai) on the toolbar.
  3. Paste the link into Embed link. A voice simulation is recognised from the link, and the dialog tells you the learner's browser will ask for the microphone.
  4. Type a Title, for example "Practice: a difficult customer call".
  5. Set Points toward the course score. 0 means not scored.
  6. Click add. One undo takes it all back.

Scenes adds a web object set up for devlin.ai and creates any of these variables the course doesn't have yet: Sim_Complete, Sim_SessionStart, Sim_Turn, Sim_Timer, Sim_CharSpeaking, Sim_EvalComplete, Sim_Pass, Sim_Score and Sim_Feedback.

Use the result in triggers

The simulation sets the Sim_ variables as the learner goes. Use them exactly as you would in Storyline:

  • Debrief when it is over: When variable changes → Sim_EvalComplete, Only if Sim_EvalComplete is true, Then show layer "Debrief".
  • Different paths for pass and fail: Only if Sim_Pass is true → jump to the next scene, Otherwise → show layer "Try again".
  • Show the feedback: a text box with %Sim_Feedback% and %Sim_Score%.

The score in your LMS

With points above 0, the simulation counts like a question worth that many points. Its share is Sim_Score as a percentage, it counts once when the evaluation is complete, and it is sent to the LMS as an interaction. Change the variables it uses, or the pass mark, in the web object's Style tab.

Try it

Click Preview and run the simulation to the end. When it finishes, your debrief layer opens and %Sim_Score% shows the score.

Tip: Voice simulations need a microphone and permission in the browser. Try one in Chrome or Edge first.

Part of the documentation: Build.

Found something here that does not match what the product does? That is a bug in the guide — see all guides or tell us from the Help Center.