AI roleplay in eLearning: what works, what it costs, and the risks
For years, conversation skills training in eLearning meant one thing: a branching scenario with three answer buttons. Learners quickly learn to spot the “nice” option, click it, and move on. They never practise finding their own words.
AI changes that. A learner can now type, or speak, their own reply to a character, and the character answers back naturally. It’s the closest thing to a roleplay partner that scales to thousands of people.
It’s also easy to get wrong. Here’s what we’ve learned building AI roleplays inside Articulate Storyline.
Where AI roleplay works well
AI roleplay is strongest when the skill is a conversation with no single right script:
- Handling complaints and de-escalation
- Sales discovery and objection handling
- Giving feedback and difficult manager conversations
- Coaching and interviewing practice
- Explaining a policy or product in plain language
In each case, a good response can be worded many ways, and that is exactly what multiple-choice can’t assess.
It’s weaker when there is one correct procedure (use a simulation), when accuracy is critical (medical dosing, legal wording), or when learners can’t type or speak comfortably in the course language.
What makes a roleplay feel real
A clear character. Give the AI a name, a situation and an emotional state. “You are Linda, a customer who has been charged twice for the same order and has already called once.” Vague characters produce vague conversations.
Visible reactions. Text alone feels like a chatbot. When the character’s expression or body language changes as the conversation calms down or heats up, learners feel the effect of their words. You can see this in our customer roleplay demo.
A defined goal. The learner needs to know what success looks like, for example “Calm Linda down and agree a next step”. The AI needs to know too, so it can decide when the conversation is resolved.
Coaching at the end. The most valuable moment is the debrief: what went well, what to try differently, and which phrase helped. Without it, the learner has just had a chat.
What drives the cost
There are two kinds of cost.
Build cost covers designing the scenario, writing the character and coaching rules, building the interface in Storyline, and testing. Testing takes longer than people expect, because you have to try to break the conversation in every way a real learner might.
Running cost is what the AI provider charges each time the learner sends a message. It’s priced by the amount of text processed, so the cost depends on the model you choose, how long conversations run, and how many learners take the course. For short practice conversations it is usually modest, but it never drops to zero. Set a monthly spending limit with your AI provider, and cap conversation length in the course.
The risks, and how to manage them
1. Exposed API keys
This is the most common mistake. If the AI key sits inside the published course, anyone can open the browser’s developer tools and copy it, then run up charges on your account.
Fix: never put the key in the course. Send requests through a small server or “proxy” that you control, which adds the key on its side. A free serverless function, such as a Cloudflare Worker, is enough for most courses.
2. Going off script
Learners will test the character. Some will ask it to tell jokes, write their essay, or ignore its instructions.
Fix: write clear rules into the character’s instructions (stay in role, keep to the topic, keep replies short), and test with deliberately awkward inputs before launch.
3. Inaccurate answers
AI can state things confidently that aren’t true.
Fix: keep the character focused on behaviour and emotion, not facts. The customer doesn’t need to know your refund policy; the learner does. Put policy details in the course itself.
4. Privacy
Learners may type personal or customer information into a practice conversation.
Fix: tell learners clearly not to enter real personal data, check your AI provider’s data retention settings, and involve your privacy team early. Some organisations will require a specific provider or region.
5. Tracking and accessibility
An AI conversation still needs to report to the LMS, and still needs to work for learners using keyboards or screen readers.
Fix: decide what counts as completion (for example, reaching the goal or a set number of exchanges) and send that to the LMS. Make sure the chat works fully by keyboard and that new messages are announced to screen readers.
Is it worth it?
For conversation skills, yes. It’s the first time eLearning can offer real practice at scale. Start with one high-value scenario, test it hard, measure how learners do, and grow from there.