Forum Discussion
Powerful Positioning with AI
- 29 days ago
At a high level, the Storyline setup is pretty simple: I use a text entry field tied to a variable, a JavaScript trigger on a button to send that text to an API endpoint, and then a few Storyline variables to capture the response and drive the feedback layers.
I’ve pasted my Storyline setup and the JS trigger into the attached txt file. Your team could point the same pattern at your internal Copilot endpoint instead of ChatGPT.
Storyline 360 setup
- Variables in Storyline
- UserInput – Text (bound to the text entry field where the learner types their recap)
- Score – Number (1–10 from the AI)
- Band – Text ("low", "mid", or "high" for branching)
- StrengthFeedback – Text
- OpportunityFeedback – Text
- NextStepFeedback – Text
- (Is_Loading – optional True/False variable for a loading layer)
- I created these Storyline variables:
- Slide elements
- A Text Entry field bound to UserInput
- A button labeled something like Get AI Feedback
- A Loading layer that shows while the call is happening
- Three feedback layers (Low / Mid / High) that read:
- Score, Band
- StrengthFeedback, OpportunityFeedback, NextStepFeedback
- Branching logic
- If Score <= 3 → show Low Feedback layer
- If Score between 4 and 7 → show Mid Feedback layer
- If Score >= 8 → show High Feedback layer
- On the Loading layer I use triggers like:
- What the JavaScript does
- It reads UserInput
- Sends it to a single API endpoint as JSON
- Receives JSON back with a score and three coaching messages
- Writes those values into the Storyline variables listed above
- On click of the Get AI Feedback button:
Your IT team could point that same pattern at your internal Copilot agent as long as they expose an endpoint that accepts the learner text and returns JSON.
- Variables in Storyline
Really nice implementation, TrenWalker The Cloudflare Worker approach to keeping API keys secure is spot-on - I've seen too many people make the mistake of exposing keys.
I've been working on something adjacent - voice-based AI roleplay that embeds into Storyline. The learner speaks, the AI responds with voice, and the whole thing evaluates against learning objectives. Different modality, similar philosophy.
Would love to compare notes if you're interested!
Here's a quick demo of how it works.
Related Content
- 10 months ago
- 1 year ago