Browse the docs

Publish and embed

LMS packages: SCORM and xAPI reporting

Download a simulation or coach as a SCORM or xAPI package, and see exactly what it reports to your LMS and when.

Plans: Core, Team, EnterpriseView as Markdown
On this page

An LMS package is a small zip file you upload to your LMS so a published simulation or coach launches as its own course item and reports back to the LMS. Packages, and LMS reporting from a Storyline course, are available on these plans: Core, Team, Enterprise.

There are two ways to get a simulation's result into an LMS:

  • A standalone package. The simulation is the whole course item. Download the package from the simulation's Publish stage. This page covers it first.
  • A Storyline course that contains the simulation. The course is the LMS item, and one line of JavaScript, sendResultsToLMS(), writes the simulation's result into the course's SCORM session. The last section of this page covers it.

Reporting from a Rise 360 course is set up in the Rise 360 section of the same stage; see Embedding a simulation in Rise 360. To wrap or host a whole eLearning file that is not a simulation, see Hosting and SCORM Wrap. Packages downloaded from a hosted project have their own plan list, which that page states.

Download a simulation package

  1. Publish the simulation. Until it is published, the section shows "Publish your simulation to enable LMS package downloads."
  2. Open the simulation, go to the Publish stage, and find LMS Standalone. Turn on its switch to show the options. While the switch is off, the section shows "Turn on to configure." On a plan without LMS packages, the switch is replaced by a plan badge and the options are not shown.
  3. Select Download for LMS. The Download for LMS dialog opens with the simulation's name under its title.
  4. Under Format, choose:
    • SCORM 1.2: "Most compatible. Choose this if you're unsure."
    • SCORM 2004: "Choose if your LMS specifically requires it." The package's manifest declares the schema version 2004 4th Edition.
    • xAPI (Tin Can): "Modern standard. Requires an LRS-compatible LMS." With this format the dialog also shows the Docebo setup note (see Uploading to Docebo).
  5. Under Content type, choose Text or Voice. Voice can only be chosen when voice is turned on for the simulation. Otherwise the dialog shows "Turn on realtime voice for this simulation to download a voice package."
  6. If the simulation has added languages, choose one under Package language. "Each package runs in one language. Download again for another." The control does not appear for a simulation with only its primary language.
  7. Leave Identify learners from the LMS on, or turn it off. It starts from the workspace's setting (see Learner identity from the LMS). If the workspace's defaults cannot be read, the box is unavailable and the dialog says "Couldn't load the workspace defaults. The workspace's own setting decides how learners are identified."
  8. Optional: under Fixed learner details, fill in values for the workspace's learner identity fields, for example the site this package is for. This section appears only when the workspace has learner identity fields. See Fixed learner details.
  9. Select Download package. The button reads "Preparing…" while the zip is built.
  10. Upload the zip to your LMS as you would any SCORM or xAPI package.

The same dialog downloads coach and journey packages. For a coach it has no content type or language, and for a journey see Publishing and sharing a journey.

The file name

The zip is named after the simulation, followed by the format (scorm12, scorm2004 or xapi), then -voice for a voice package and the language code for a package in an added language. For example: customer-call-scorm12.zip or customer-call-xapi-voice-es.zip.

The name part is the simulation's name in lowercase, with spaces turned into hyphens and every character other than the letters a to z, digits and hyphens removed, cut to at most 60 characters. If nothing is left after that, the name part is simulation.

What is in the package

Every package holds three files:

  • index.html, a launcher page that fills the LMS window with the live simulation from devlin.ai.
  • lms-bridge.js, the script that talks to the LMS.
  • A manifest: imsmanifest.xml for the SCORM formats, tincan.xml for xAPI.

The simulation itself is not in the zip. It still runs on devlin.ai, and the package only handles communication with the LMS. This has three consequences:

  • Learners need an internet connection. If the simulation has not loaded after a short wait, the launcher shows "This simulation requires an internet connection." and "Please check your connection and reload the page." A coach package shows "This coach requires an internet connection." with the same second line.
  • The simulation must stay published. The package loads the simulation's live link, and an unpublished simulation does not load from it.
  • Edits reach learners without a new upload. The package points at the simulation, so the learner always gets the current published version. You only need to download again to change the format, the content type or the package language.

A voice package's launcher grants the simulation the microphone. A text package's launcher does not.

The package only accepts results from the devlin.ai address it was downloaded from.

Learner identity from the LMS

With Identify learners from the LMS on, the package reads the learner the LMS launched and passes it to the simulation:

  • xAPI: the learner (actor) in the launch link. When Docebo's extended launch parameters are on, the package also reads the username or user ID and the course ID and code.
  • SCORM 1.2: cmi.core.student_id and cmi.core.student_name.
  • SCORM 2004: cmi.learner_id and cmi.learner_name.

devlin.ai keeps the learner the LMS named only when the workspace's learner identity switch is on and the simulation collects learner identity (see Learner identity). For a journey, the workspace's switch decides. A coach keeps it when the workspace's learner identity switch is on and the coach collects learner identity (see Session results settings in Building and publishing a coach). Then:

  • The LMS's learner ID becomes the attempt's learner identifier in Results, so the start screen does not ask for it. A learner identifier the learner typed comes first.
  • Statements sent to the workspace's own LRS name the learner exactly as the LMS launched them.

Otherwise devlin.ai drops the learner's name, email and LMS ID before saving the attempt, and the attempt stays anonymous, as every attempt is while learner identity is off.

Either way, and with the option off, statements sent to the LMS name the learner the LMS launched: the package puts that learner on each statement in the learner's browser, so the LMS's reports line up. With the option off, devlin.ai does not learn who the LMS launched at all. Wherever devlin.ai has not kept the LMS learner, statements sent to the workspace's own LRS name the learner with devlin.ai's own account for the workspace: the learner identifier when one was collected, otherwise an anonymous ID.

The learner the LMS names is taken as the LMS states it, the same way a typed learner identifier is.

Fixed learner details

A fixed value is saved with every attempt from the package, for example the site or department of the course it was uploaded for. A value the learner enters on the start screen comes first, and fixed values fill in the rest. Like typed values, they are saved only when the workspace's learner identity switch is on and the simulation collects learner identity. To send them to the LRS as well, pick the fields under Learner fields in the workspace's xAPI reporting settings (see xAPI reporting settings).

Upload one package per site or department to report by it, each with its own fixed values.

What a simulation package reports

The package reports when the simulation's result is ready:

  • With evaluation on, the result is sent when the evaluation finishes, not when the conversation ends. A learner who closes the package while results are still loading has not been reported yet.
  • With evaluation off, the result is sent as soon as the simulation ends.

The result carries four things:

  • Completion.
  • Pass or fail, taken from the simulation's evaluation. The package does not have a passing score of its own.
  • Score: the evaluation's percentage rounded to a whole number.
  • Session time, in whole seconds. For a text simulation it runs from when the simulation loads to when the result is sent. For a voice simulation it runs from when the voice session starts.

These are the only values a SCORM package writes. It does not report individual turns, the transcript, or results per criterion. Those stay in devlin.ai: see Criteria breakdown and attempt limits.

SCORM 1.2

When Field Value
Package opens cmi.core.lesson_status incomplete
Result cmi.core.session_time The session time as HH:MM:SS
Result, if there is a score cmi.core.score.raw The score
Result, if there is a score cmi.core.score.min and cmi.core.score.max 0 and 100
Result cmi.core.lesson_status passed, failed, or completed when there is no pass or fail

SCORM 1.2 has a single status field, so a failed attempt shows as failed, not as completed.

SCORM 2004

When Field Value
Package opens cmi.completion_status incomplete
Result cmi.session_time The session time as a duration, for example PT2M5S
Result, if there is a score cmi.score.raw The score
Result, if there is a score cmi.score.min and cmi.score.max 0 and 100
Result, if there is a score cmi.score.scaled The score as a fraction of the maximum, for example 0.85
Result cmi.completion_status completed
Result, if there is a pass or fail cmi.success_status passed or failed

When there is no pass or fail, cmi.success_status is left unset.

After the result

After writing a result, a SCORM package saves it. A pass ends the LMS session at once. After any other result the session stays open, so a retried attempt can be recorded, and ends when the learner leaves the page. If the learner leaves before any result, the status stays incomplete.

If the learner uses Try Again without relaunching the package, the later attempt is written to the LMS too, with one rule: a pass is never replaced. After a pass, a later fail, or a later result with no pass or fail, is not written, and the passing score stays. Otherwise the latest result stands, so a fail followed by a pass is recorded as passed with the passing score.

The first time the package opens it sets the status to incomplete before anything else. When the LMS already holds a pass, a fail or a completion for that learner, reopening the package leaves the stored status as it is.

Packages downloaded before this change keep the earlier behavior: one result per launch, and the status reset to incomplete each time the package opens. Download the package again and replace it in your LMS to get the behavior described here.

xAPI

An xAPI package sends statements to the learning record store (LRS) that your LMS names when it launches the package. The LMS passes the store's address, the credentials, the learner and the registration in the launch link, which is the standard Tin Can launch. There is nothing to configure in devlin.ai for this. If the launch link names no store, or names no learner, no statements are sent: a result is never filed under a placeholder learner, and the simulation still runs.

devlin.ai builds the statements and the package only sends them, so later improvements to the statements reach packages already uploaded without a new download. Each statement is about the simulation as an activity named after it. Which statements an attempt sends:

  1. initialized, when the learner sends their first message.
  2. When the result is ready:
    • responded for each learner message, with the character's line it answered, only when the workspace turns on one statement per learner message.
    • scored for each rubric criterion, with the points, the rating and the rationale, unless the workspace turns criteria off. Each criterion also names the skills it counts toward, so skill results add up across simulations.
    • passed or failed when the evaluation has a pass mark, otherwise completed. Its result holds completion, success when there is a pass or fail, the score (raw, minimum, maximum and scaled), the session time, the criteria again, the overall feedback, the number of learner turns and, when the workspace keeps it on, a link to the transcript.
  3. terminated, once per launch, when the learner leaves the package or has no Try Again left.

Every statement also carries the attempt: an attempt ID, the attempt number, whether it ran in text, voice or with a video avatar, its language, the workspace, and the learner fields the workspace chose to send. A retry in the same launch is a new attempt with its own statements.

What else the workspace can add or remove, and the transcript link, are set in xAPI reporting settings. Every field of every statement, with the full default set for one attempt, is in the xAPI statement reference. A workspace on one of these plans can also send the same statements to its own LRS: Team, Enterprise. See Sending statements to your own LRS.

Only the simulation itself is declared in the package's tincan.xml. The criteria and per-message statements are about activities below it, so they can never change the course's status in the LMS. The criteria also ride on the simulation's own result statement, so an LMS that keeps statements about the declared activity only still receives them.

If devlin.ai's statements for a result do not reach the package within a short wait, or the LRS refuses them, the package sends a single result statement of its own (pass, fail or completion, score and session time), so the LMS still records the result.

Limits of an xAPI package

  • The result is sent when the evaluation finishes. A learner who closes the package before then leaves the LMS's LRS with initialized and terminated only, and no result. A workspace LRS still receives the full set, because devlin.ai sends it from its servers.
  • A reviewer who changes a rating in devlin.ai after the statements were sent corrects the workspace LRS: the earlier statements are voided and the corrected ones sent. The LMS's LRS cannot be corrected, so devlin.ai and the workspace LRS hold the reviewed result.
  • Skills are sent as they are when the statement is built. Merging skills later does not rewrite statements already in an LRS.

Packages downloaded earlier

Packages already uploaded keep working as they did. An xAPI package downloaded before devlin.ai built its statements sends initialized when the simulation loads, one result statement with the written feedback as the response, and terminated after each result. It does not pass the LMS's learner to devlin.ai, and it carries no criteria. A coach package from then passes the learner as soon as the coach opens.

To get the statements described on this page, download the package again and upload it. Packages from this version use stable activity IDs on devlin.ai, for example https://devlin.ai/xapi/activities/simulation/ followed by the simulation's embed key, so an LMS treats a re-uploaded package as new training material, with its own history. Plan the change between reporting periods.

Uploading to Docebo

The Download for LMS dialog shows this note when the format is xAPI:

  • "Docebo: upload as xAPI (Tin Can)."
  • "Voice practice needs View mode set to Play in new window." Docebo's theater mode blocks the microphone.
  • "Learners need an email address in Docebo." Docebo needs a learner's email address to store their xAPI data.
  • "To identify learners by username, turn on Advanced settings, Add an extended list of parameters to xAPI launch URL."

Docebo counts a course complete when the learner closes it. Once a simulation's result has reached Docebo's LRS, the end screen of a simulation in a new package says "Your result was recorded. You can close this window." A coach has no result to wait for: its completion is sent when the coaching session ends or the learner closes the window.

Simulations without a score

A package still reports completion when there is no score to report:

  • Evaluation off. The package reports completion and the session time. There is no score and no pass or fail.
  • Feedback-only mode. The evaluation runs, but it produces no score and no pass or fail, so the package reports completion only: completed in SCORM 1.2, completion without a success status in SCORM 2004, and a completed statement in xAPI.
  • The evaluation could not be completed. The package reports the same way: completion without a score.

In all three cases, set your LMS to track the item by completion, not by a passing score. See Evaluation and scoring for the scoring modes.

Coach packages

A coach has no score, so its package reports completion only. Open the coach, go to the Publish stage, and find LMS package. On a plan without LMS packages, the section shows the plans that include them in place of the button.

The coach must be published first, and it must stay published for the package to load it. Select Download for LMS, choose SCORM 1.2, SCORM 2004 or xAPI (Tin Can), set the learner options as for a simulation, and select Download package. There is no content type or language choice. The zip is named after the coach and the format, for example onboarding-coach-scorm2004.zip. The name part follows the same rules as a simulation package; if nothing is left, it is coach.

What the coach package reports, once the learner has sent the coach a first message:

  • SCORM 1.2: cmi.core.lesson_status is set to passed. Until then it stays incomplete.
  • SCORM 2004: cmi.completion_status is set to completed and cmi.success_status to passed. Until then completion stays incomplete.
  • xAPI: initialized at the first message, then completed and terminated when the learner leaves or the coaching session ends. completed carries the session time, the number of learner turns and, when the workspace keeps it on, the transcript link. With one statement per learner message turned on, responded statements are sent as well.

No score is reported. A learner who opens the coach and leaves without practising is not marked complete.

Reporting from a Storyline course

When a simulation sits inside a Storyline course as a Web Object, the course is what the LMS launches, and the simulation's result has to be written into the course's SCORM session. sendResultsToLMS() does that. It is part of the devlin.ai bridge script that the course already loads for variables: see Embedding a simulation in Articulate Storyline.

The setup is in the simulation's Publish stage, in the Storyline 360 section, under Step 5: Report Results to the LMS. Add an Execute JavaScript trigger containing:

sendResultsToLMS()

When to call it

Run the trigger "only after results have finished loading". The usual condition is the simulation's evaluation-complete variable (Sim_EvalComplete by default) becoming true. If the trigger runs before the simulation has produced a result, nothing is sent and the browser console shows "[devlin.ai] sendResultsToLMS: No sim results received yet. Make sure the sim has completed before calling this."

What it sends

The function finds the SCORM session the course already opened. It looks for SCORM 2004 first and then SCORM 1.2, and writes the same fields as the tables above: the session time, the score with its minimum and maximum (and the scaled score in SCORM 2004), and the status. It writes to the existing session and does not open one of its own. It does not send xAPI statements, so a course published for xAPI reports nothing through it.

If the course contains more than one simulation, the function combines every result it has received on that page:

  • Score: the average of the simulations' scores, rounded to a whole number.
  • Pass or fail: passed only when every simulation that has a pass or fail passed.
  • Session time: the simulations' times added together.

A simulation that was run again counts once, with its latest result.

The function leaves the SCORM session open, so the course keeps control of it. To also close the session from the same call, use sendResultsToLMS({ finish: true }).

What it returns

The function returns an object that a developer can check, and writes a line to the browser console:

Return value Meaning
{ success: true } The result was written to the LMS.
reason: "no_results" No simulation on the page has finished yet.
reason: "plan_not_eligible" The simulation's workspace is on a plan without LMS reporting.
reason: "no_scorm_api" There is no SCORM session, for example in a Storyline preview or a web-only publish.
reason: "api_error" The LMS raised an error while the result was being written.

Keep Storyline from overwriting the result

The same step in the Publish stage explains two things to set up in Storyline:

  • Prevent Storyline from overwriting your results: Storyline reports its own completion when the learner reaches the end of the course, which can replace the score and status the simulation sent. The step walks through adding a slide learners cannot reach and setting Tracking to 100% of all slides in your project, so Storyline never reports completion by itself.
  • Closing the course (optional): if an Exit button both runs sendResultsToLMS() and has an Exit course trigger, put the Execute JavaScript trigger above the Exit course trigger so the result is sent before the course closes.

On a plan without LMS reporting, the step shows a plan badge. You can add the trigger, but nothing is sent to the LMS until the simulation's workspace is on one of these plans: Core, Team, Enterprise.

devlin, and AI tools connected over MCP, can build the same package with export_lms_package: for one published simulation, coach or journey, with the format, content type, language, the learner identity option and fixed learner details. Instead of a download, it returns a link to the zip that works for 7 days, to share in a chat or an email. It is limited to the same plans as the Download for LMS button. For an xAPI package, it returns the Docebo note as well.