I want to combine several chats in the same storyline. Each AI has been assigned a specific task or character, but I found that when I import, the AI doesn't work since the variables are all messed up ,. Could you advise on what I should do? Thank you.
Reply
Posted on 9/22/2025
Please type your reply.
@support
Hi,
Just changing the variable clabsAnswersWidgetID and setting it to the id of the new chatbot should be enough to switch to a different chatbot.
One note that depending on your use case, you might not want the new chatbot to see the message history the user previously had with other chatbots in this course. If that's the case, also run this JavaScript trigger to clear the message history:
clabsChatbotRecorder.clearSession = true;
Reply
Posted on 9/22/2025
@kalinwulxdesign
I am not sure what I did wrong. I tried to copy the three chatbots into a question bank, the AI won't work; however, the original slides have no issues.
Reply
Posted on 9/23/2025
@support
No worries. If you want to post a link to your story file, we can take a look.
Reply
Posted on 9/23/2025
@kalinwulxdesign
thank you very much
Reply
Posted on 9/25/2025
@support
One thing that's obvious right away in this file is that the trigger on Button 1 (in AI 1) is set to execute when the button is clicked if the variable clabsAnswersUserMessage is not blank. Yet, there is nothing on the slide (no triggers and no text entry boxes) that would set any value in this variable. So it's always blank, meaning that the condition is not met when you click the button, so the button doesn't do anything.
That's not to say that there are no other issues, but this certainly should be the first one to be looked into.
Reply
Posted on 9/25/2025
@kalinwulxdesign
I found that the reason it is not working is that the storyline duplicate function changes the variables. Because the question bank I was using had a copied question bank function, the variable's name changed. The response message variable all of a sudden became textentry / questions instead of ResponseMessage
Reply
Posted on 9/25/2025
@support
Exactly, you got that correct! There could be other issues, of course, but this certainly needs to be fixed.
Reply
Posted on 9/25/2025
@kalinwulxdesign
I am unable to combine the two templates, and I think I will try a different approach. However, after 24 trials and errors, I am totally stuck; one of them will always have issues, resulting in the JavaScript pop-up [ in the response message.. https://drive.google.com/file/d/104iZ1S2IComCi0yq5ai5OeA320u-JWEh/view?usp=sharing
In brief, I would like to use both of your templates in the same story. May I know if it's possible? THank you
Reply
Posted on 9/27/2025
@kalinwulxdesign
Please find the story file below and directly just combine both template, https://drive.google.com/file/d/182ZOMrpmSQIrn2TZG_9cPkToGjnk8xie/view?usp=sharing Please help...
Reply
Posted on 9/27/2025
@support
Hi,
No, it sounds like you're doing everything right. In the case where you receive a JSON response message, it's because you asked it to evaluate the input, so it's responding with the evaluation. If you check the "score" layer in the template file (AI LLM scenarios starter.story), you'll find a trigger that processes this JSON response into separate variables. You should do something like that in your case as well instead of just outputting the raw evaluation:
Reply
Posted on 9/28/2025
@kalinwulxdesign
Thank you very much, that's really helpful. And I really appreciate that.