Episode 7 · 8:47

Let Storyline react to the conversation

Maya’s call now drives the course. The chat follows the store’s returns policy and sends Storyline how Maya feels after every reply: her face changes as the learner calms her down, and a coach steps in at the end.

YouTube loads only when you play the video. Watch on YouTube

Chapters

What you’ll learn

  • Let a chat read your course’s reference documents
  • Get your own fields back from a chat, after every reply
  • Make Storyline react while the conversation happens

Before you start

  • Episode 6 done: the returns policy added to the course as a reference document
  • The “Maya calls back” chat as a SlideMind widget, in a Storyline Web Object, from episode 5
  • Two extra pictures of Maya, upset and satisfied, next to the neutral one already on the slide

Follow along

Step by step

The policy in the call

  1. The returns policy is already on the course from episode 6, so the chat can read it too. In “Maya calls back”, the Course context sheet lists it under From the course, with Use in this slide on.
  2. At the end of the Instructions, add one line about the policy.

Your own fields

  1. The Q&A’s Score and verdict is a ready-made form. On a chat, Reply with fields leaves the form up to you: you choose the fields. 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.
  2. The app has changed since this video was recorded: in the video, Reply with fields is still called “Structured JSON”, and Choice list “Enum”. The steps below follow the current app.
  3. In Results & memory, under What comes back?, choose Reply with fields. Each field has one of four types: Text, Number, Yes / No or Choice list, for a fixed list of values.
  4. The feedback field is already there. Describe it as “Three sentences of coaching, on the last turn only”.
  5. With Add a field, add three more: reply, a Text field described as “What Maya says next”; score, a Number, “0 to 10, how well the learner is handling the call”; and satisfaction, a Choice list, “How Maya feels now”, with three choices: upset, neutral and satisfied.
  6. With two text fields, Shown to the learner appears under the fields. Pick reply: that’s Maya’s message. The other fields only go to Storyline.
  7. In Try it, open the large view and talk to Maya like a learner. After each reply, the panel shows what Storyline receives, like how Maya feels; on the last turn, the feedback and the score. Select Save slide.

Back in Storyline

  1. In the slide’s Installation step, open Storyline variables and copy three names: the ones ending in _feedback, _score and _satisfaction.
  2. In Storyline, open the Variables window and create them: feedback as Text, score as Number, and satisfaction as Text, since the choice arrives as a word. No need to insert the Web Object again: the new fields come straight from SlideMind.
  3. Select Maya’s picture and open the States panel: her neutral face is the Normal state. Select Edit States, add two states, Upset and Satisfied, and for each, right-click the picture and replace it with the matching face. Then select Done Editing States.
  4. Create a trigger: change the state of Maya’s picture to Upset when the satisfaction variable changes, if it equals upset. Copy it twice for Normal with neutral, and Satisfied with satisfied. After every reply, Maya’s face follows how she feels.
  5. Add a layer named Coach: a black rectangle at 80% opacity over the whole slide, and a white card on top. In the card, use Insert › Reference to show the feedback and the score, followed by “out of 10”.
  6. Show the Coach layer when the learner clicks Next, if the variable ending in _done is True: the coach appears once the call is over, after Maya’s last message.
  7. Maya’s face is only one example. The satisfaction variable works anywhere in the course: branch to a different scene depending on how the call ended, or adapt a later activity for learners who left Maya upset.

Test in SCORM preview

  1. Publish the course for an LMS as SCORM 2004, save it as a ZIP and upload it in SCORM preview with Choose a .zip.
  2. Select Launch, enter test-learner-1 as the Learner ID and select Start: you’re Sam.
  3. Handle the call. A doubtful start makes Maya upset; a same-day pickup calms her down; telling her the broken lamp needn’t go back leaves her satisfied. Select Next: the coach shows the feedback and the score.

Transcript

Show

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!

Keep the idea going.

Bring one Storyline activity.

Start with a question worth answering. Build the feedback around your learning objective, then test it in your own course.