Épisode 7 · 8:47 · vidéo en anglais

Faire réagir Storyline à la conversation

L’appel de Maya pilote maintenant le cours. La conversation suit la politique de retour du magasin et indique à Storyline comment Maya se sent après chaque réplique : son visage change à mesure que l’apprenant la calme, et un coach intervient à la fin.

Vidéo en anglais. YouTube se charge seulement quand vous la lancez. Voir sur YouTube

Chapitres

Ce que vous allez apprendre

  • Faire lire les documents de référence de votre cours à une conversation
  • Recevoir vos propres champs d’une conversation, après chaque réplique
  • Faire réagir Storyline pendant que la conversation se déroule

Avant de commencer

  • L’épisode 6 terminé : la politique de retour ajoutée au cours comme document de référence
  • La conversation « Maya calls back » en widget SlideMind, dans un objet Web Storyline, depuis l’épisode 5
  • Deux images de plus de Maya, mécontente et satisfaite, en plus de l’image neutre déjà sur la diapositive

Suivez le guide

Étape par étape

Les boutons Copier donnent les textes en anglais, comme dans la vidéo.

La politique dans l’appel

  1. La politique de retour est déjà sur le cours depuis l’épisode 6 : la conversation peut donc la lire aussi. Dans « Maya calls back », la fiche Contexte du cours l’affiche sous Du cours, avec Utiliser dans cette slide activé.
  2. À la fin des Consignes, ajoutez une ligne sur la politique.

Vos propres champs

  1. Le Score et verdict de la question-réponse est un formulaire tout prêt. Dans une conversation, Réponse avec champs vous laisse le formulaire : c’est vous qui choisissez les champs. L’apprenant lit un champ texte comme la réplique de Maya, et après chaque réplique, pas seulement à la fin, Storyline reçoit chaque champ dans sa propre variable.
  2. L’app a changé depuis l’enregistrement de cette vidéo : dans la vidéo, Réponse avec champs s’appelle encore « Structured JSON », et Liste de choix « Enum ». Les étapes ci-dessous suivent l’app actuelle.
  3. Dans Résultats et mémoire, sous Qu’est-ce qui revient ?, choisissez Réponse avec champs. Chaque champ a l’un de quatre types : Texte, Nombre, Oui / Non ou Liste de choix, pour une liste fixe de valeurs.
  4. Le champ feedback est déjà là. Décrivez-le ainsi : « Three sentences of coaching, on the last turn only ».
  5. Avec Ajouter un champ, ajoutez-en trois autres : reply, un champ Texte décrit ainsi : « What Maya says next » ; score, un Nombre, « 0 to 10, how well the learner is handling the call » ; et satisfaction, une Liste de choix, « How Maya feels now », avec trois choix : upset, neutral et satisfied.
  6. Avec deux champs texte, Montré à l’apprenant apparaît sous les champs. Choisissez reply : c’est le message de Maya. Les autres champs vont seulement à Storyline.
  7. Dans Essayer, ouvrez la grande vue et parlez à Maya comme un apprenant. Après chaque réplique, le panneau montre ce que Storyline reçoit, par exemple comment Maya se sent ; au dernier tour, la rétroaction et le score. Sélectionnez Enregistrer la slide.

De retour dans Storyline

  1. À l’étape Installation de la diapositive, ouvrez Variables Storyline et copiez trois noms : ceux qui se terminent par _feedback, _score et _satisfaction.
  2. Dans Storyline, ouvrez la fenêtre Variables et créez-les : feedback en Texte, score en Nombre, et satisfaction en Texte aussi, puisque le choix arrive sous forme de mot. Inutile d’insérer l’objet Web de nouveau : les nouveaux champs viennent directement de SlideMind.
  3. Sélectionnez l’image de Maya et ouvrez le panneau États : son visage neutre correspond à l’état Normal. Sélectionnez Modifier les états, ajoutez deux états, Upset et Satisfied, et pour chacun, cliquez avec le bouton droit sur l’image et remplacez-la par le visage correspondant. Sélectionnez ensuite Terminer la modification des états.
  4. Créez un déclencheur : changer l’état de l’image de Maya à Upset quand la variable de satisfaction change, si elle est égale à upset. Copiez-le deux fois, pour Normal avec neutral, et Satisfied avec satisfied. Après chaque réplique, le visage de Maya suit ce qu’elle ressent.
  5. Ajoutez un calque nommé Coach : un rectangle noir à 80 % d’opacité sur toute la diapositive, et une carte blanche par-dessus. Dans la carte, utilisez Insertion › Référence pour afficher la rétroaction et le score, suivi de « out of 10 ».
  6. Affichez le calque Coach quand l’apprenant clique sur Next, si la variable qui se termine par _done est vraie : le coach apparaît une fois l’appel terminé, après le dernier message de Maya.
  7. Le visage de Maya n’est qu’un exemple. La variable de satisfaction fonctionne partout dans le cours : passez à une scène différente selon la fin de l’appel, ou adaptez une activité suivante pour les apprenants qui ont laissé Maya mécontente.

Tester dans l’aperçu SCORM

  1. Publiez le cours pour un LMS en SCORM 2004, enregistrez-le en ZIP et téléversez-le dans l’Aperçu SCORM avec Choisir un .zip.
  2. Sélectionnez Lancer, entrez test-learner-1 comme Identifiant de l’apprenant et sélectionnez Démarrer : vous êtes Sam.
  3. Menez l’appel. Un début hésitant contrarie Maya ; un ramassage le jour même la calme ; lui dire que la lampe brisée n’a pas à être renvoyée la laisse satisfaite. Sélectionnez Next : le coach affiche la rétroaction et le score.

Transcription

Afficher

La narration de la vidéo, en anglais.

Let Storyline react to the conversation

Hi and welcome back! In the last video, our Q&A learned to score answers, and we gave the AI the store's returns policy. Now it's the chat's turn. The AI's answers become data again, but this time, Storyline uses them during the conversation: Maya's picture in our course will change with how she feels, and a coach will step in at the end. It's a bit more advanced, so let's take it step by step. Here's Maya's call again. As the learner calms her down, her face changes… but one careless answer, and she's upset again. The learner apologizes, she calms down, and at the end, a coach gives a score. It's all designed in Storyline, and driven by the AI. Let's build it.

The policy in the call

The returns policy is already on the course from the last video, so the chat can read it too. In "Maya calls back", the "Course context" sheet lists it under "From the course", and "Use in this slide" is on. At the end of the instructions, we add this line: "Follow the store's returns policy; when you coach, check the learner's promises against it."

Your own fields

Next, what comes back from the chat. Its "What comes back" section works like the Q&A's, with one big difference. As we saw in the previous episode, the Q&A's "Score and verdict" is a ready-made form: feedback, a score and a verdict, and the widget already knows how to show them on the card. On the chat, "Reply with fields" leaves the form up to you: you choose the fields, as many as you need. The learner reads one text field as Maya's reply, and after every reply, not just at the end, Storyline receives each field in its own variable. That's what will let Maya's face change during the call. So in "What comes back", we choose "Reply with fields". Each field has a type, and there are four: "Text" for words, "Number" for a value like a score, "Yes / No" for true or false, and "Choice list" for a fixed list of values. The first field is already there: feedback, a "Text" field. We just replace what the AI should write with "Three sentences of coaching, on the last turn only". Then, with "Add a field", we add three more. The first one we name reply, keep as "Text", and describe as "What Maya says next". Next, score: we pick "Number" and write "0 to 10, how well the learner is handling the call". Last, satisfaction: we pick "Choice list", describe it as "How Maya feels now", and enter three choices: upset, neutral, satisfied. Now that there are two text fields, a menu shows up under the fields: "Shown to the learner". We pick reply: that's what the learner reads as Maya's message. The other fields only go to Storyline. Let's try it, in the large view: we talk to Maya right in the widget, like a learner. After each reply, the panel shows what Storyline receives, like how Maya feels right now.

Back in Storyline

And on the last turn, the feedback and the score. Let's save. OK, now, our new fields have to reach Storyline. Just like with the Q&A in the previous video, we create their variables ourselves. Back on the slide, in the "Installation" step, we open "Storyline variables" and click to copy the names we need. This time, there are three: the feedback, the score and the satisfaction. In Storyline, we open the "Variables" window and click "Create a new variable". We paste the first name, the one ending in "feedback", and choose "Text". Next, the one ending in "score", as a "Number". Last, the one ending in "satisfaction", as "Text" too, since the choice arrives as a word, either "upset", "neutral" or "satisfied". After every reply, the widget fills them in. And there's no need to insert the Web Object again: the folder doesn't change, and the new fields come straight from SlideMind. Now, let's make Maya react in Storyline. We select Maya's picture and open the "States" panel. The picture already on the slide shows Maya with a neutral face: in Storyline, that's its "Normal" state. So we've only prepared two more pictures: Maya upset, and Maya satisfied. Any images will do, as long as each choice has a face. We click "Edit States", then "New State", and name it Upset. While we're editing this state, we right-click the picture, choose "Replace picture", "Picture from file…", and pick Maya's upset face. We do the same for Satisfied, then click "Done Editing States". Next, the triggers. In the "Triggers" panel, we click "Create a new trigger". Action: "Change state of". Object: Maya's picture. State: Upset. When: "Variable changes", and we pick the variable ending in "satisfaction". Under "Conditions", we add one: that same variable, "Equal to", upset. Then we copy this trigger twice, and change the state and the value: Normal and neutral, then Satisfied and satisfied. To sum up: every time SlideMind sends a new value, upset, neutral or satisfied, the variable changes, the matching trigger fires, and Maya's face switches to that picture. And when the conversation is done, a coach steps in. We add a new layer and call it Coach. On it, a black rectangle covers the whole slide at 80 percent opacity, to dim the call behind, and a white rounded rectangle on top becomes the coach's card. Inside, we write the title, then we use "Insert", "Reference", and pick the variable ending in "feedback": Same thing for the score, followed by "out of 10". Let's add a smooth fade in transition. Last, a trigger shows the layer when the learner clicks the "Next" button, so there's time to read Maya's last message first. Under "Conditions", we check that the variable ending in "done" is True: that way, the coach only shows up once the call is over. Maya's face is only one example. The satisfaction variable is an ordinary Storyline variable, so you can use it anywhere in the course. You could branch to a different scene depending on how the call ended, or adapt a later activity, for example a follow-up question only for learners who left Maya upset. Every time, it's the same idea: a trigger that checks the value. Let's test. In Storyline, we publish this slide for LMS, as SCORM 2004, and save it as a ZIP.

Test in SCORM preview

In SlideMind, we open "SCORM preview" and upload the zip. Then we click "Launch", let's use Sam's learner ID, test-learner-1, and click "Start". Now we play Sam. Let's write something: "I'm so sorry, Maya. I'm not sure I'll be able to help you on such short notice." Uh-oh, Maya is now upset. Let's continue: "Good news, our downtown store has the lamp. I've set one aside for you, ready at 3 p.m." Watch Maya's face: she's calming down. And finally: "And you don't need to send the broken one back." Now she's satisfied. We click "Next", and here's the coach, with a 7 out of 10. You've seen how a chat returns your own fields, and how Storyline uses them: Maya's face, the coach, and anything else your course needs. In the next video, Maya will come back a week later, and remember your last conversation. Until then, you'll find every tutorial, plus tips and tricks, in the SlideMind Academy: slidemind.app/academy. See you there!

Poursuivez votre idée.

Commencez par une activité Storyline.

Partez d’une question utile. Construisez la rétroaction autour de votre objectif pédagogique, puis testez-la dans votre propre formation.