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!