# AI roleplay training by video call: build your own (the HR guide)

> Build an AI roleplay training tool for interviews, feedback, sales and support on the eroq API. Characters with a face and a voice, a scenario per call, the transcript, a score, billed per minute.

Published 2026-11-25 · eroq.ai — canonical: https://eroq.ai/blog/ai-roleplay-training-video-call


AI roleplay training means rehearsing a hard conversation out loud with an AI character who answers back: a job interview, a feedback talk, a sales objection, an upset customer. With the eroq API, an HR, L&D or product team can build its own version on a video call. You create the characters once, with a portrait, a voice and a persona. Each exercise opens a call with its own `scenario` and `language`. Your page collects the transcript as the call runs, and a chat request turns it into a score. It is billed by the minute, with no seats to buy, and eroq keeps no audio, video or transcript of the call.

## Why rehearse out loud, face to face

Reading a model answer is not the same as saying it with someone looking at you. A spoken drill trains what a quiz can't: the pause before a hard answer, the urge to over-explain, holding your ground on price. A face and a voice add a little pressure, which is the point, and the character is available at midnight without booking a colleague. Privacy matters too: a manager rehearsing a dismissal does not want a recording on a vendor's server. eroq keeps none.

## Four drills to build first

One character can run many drills: the persona says who they are, and the `scenario` of each call says what happens today.

| Drill | The character | The scenario of one call | What your app scores |
|---|---|---|---|
| Interview practice | A recruiter | "Interview for a mid-level product designer role. Push back once on a vague answer." | Structure (STAR), specifics, follow-ups |
| Objection handling | A skeptical buyer | "Discovery call. Raise the incumbent objection first, then price." | Acknowledge, question, answer, next step |
| Feedback talk | A defensive team lead | "Your manager raises two missed deadlines." | Facts not labels, listening, agreed action |
| Support call | An upset customer | "Refund promised two weeks ago, still not there." | Empathy, ownership, a clear resolution |

![Four video calls with eroq characters, each with live captions and the scenario of that call written under it](/blog/figures/ai-roleplay-training-video-call/drills.webp "Mockup: four drills, four characters, and a new scenario on every call. The support call runs in Brazilian Portuguese with language set to pt-BR.")

The first two have their own guides: [the AI mock interview](/blog/ai-mock-interview-video-call) and [the objection-handling coach](/blog/ai-sales-roleplay-objection-handling). Our guide to [difficult conversations for managers](/blog/practice-difficult-conversations-ai-roleplay), [12 customer service roleplay scenarios](/blog/customer-service-roleplay-scenarios-ai) and the guide to [practising a language on a video call](/blog/practice-speaking-a-language-ai-video-call) cover the rest.

## What the product looks like

![A diagram of a training product on the eroq API: create the cast once, open a call per session, the learner talks over WebRTC, the transcript comes on the data channel, and the chat API scores it](/blog/figures/ai-roleplay-training-video-call/architecture.webp "What eroq runs, and what your app builds around it.")

1. **Create the cast once.** `POST /v1/characters` with a name, an age (18 or older), a portrait (`avatarUrl`), a voice (`voiceId`, from the library or cloned) and a persona of up to 4,000 characters.
2. **Open a call for each session.** `POST /v1/live/sessions` with the character, a `scenario` of up to 2,000 characters, a `language` and a `user` id for the learner.
3. **The learner talks** in their browser, over WebRTC: the microphone goes out, the character's face and voice come back, lip-synced. Your server holds the API key and relays the call's setup, so learners never need an eroq account.
4. **Keep the transcript.** A data channel named `eroq` sends each line: `heard` for the learner, `said` for the character.
5. **Score and report.** After the call, your server sends the transcript and your rubric to `POST /v1/chat/completions` and stores the result.

## The code

Create a character:

```bash
curl https://eroq.ai/v1/characters \
  -H "Authorization: Bearer $EROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Mara",
    "gender": "female",
    "age": 41,
    "avatarUrl": "https://your-cdn.example/mara.webp",
    "voiceId": "sloane",
    "prompt": "Mara is a senior recruiter. Calm, precise, hard to impress. She asks one question at a time and asks for a number or an example when an answer stays vague."
  }'
```

Open a call for one learner and one drill (from your server):

```bash
curl https://eroq.ai/v1/live/sessions \
  -H "Authorization: Bearer $EROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "character": "9c1e2d4a-6b7f-4c3d-9e8a-1f2b3c4d5e6f",
    "scenario": "You are interviewing them for a junior product designer role: ask about one past project, push back once on a vague answer.",
    "language": "es",
    "picture": "creation:5b8e1f7a-2c4d-4e9b-8a1f-0d3c6e7b9a24",
    "user": "learner_4821"
  }'
```

The answer holds the session `id`, the first paid minute and the `ice_servers` for the browser. `picture` is optional: a Library image (`creation:<id>`) or a Storage upload (`upload:<id>`) of the character somewhere, so the recruiter sits in an office instead of on a plain portrait. The call frames their face and keeps the background, and falls back to the card's portrait when no clear face looks at the camera. The picture is read against the same policy as the rest of the call before anything is billed.

![The eroq API reference for opening a live call, with the character, user, scenario and language fields](/blog/figures/ai-roleplay-training-video-call/docs.webp "The Live calls reference in the eroq docs.")

In the browser, open the captions channel before the offer and keep every line:

```js
const pc = new RTCPeerConnection({ iceServers: session.ice_servers })
const transcript = []
const captions = pc.createDataChannel('eroq') // before the offer
captions.onmessage = ({ data }) => {
  const line = JSON.parse(data)
  if (line.type !== 'eroq-live') return
  transcript.push({ who: line.event === 'heard' ? 'LEARNER' : 'CHARACTER', text: line.text })
}
// Then: the microphone track, a video transceiver, the offer and the answer,
// as in the Live calls reference (your server relays the offer and polls for the answer).
```

After the call, your server scores it:

```js
const res = await fetch('https://eroq.ai/v1/chat/completions', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.EROQ_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    model: 'claude-fable-5-2',
    private: true,
    user: 'learner_4821',
    messages: [
      { role: 'system', content: 'You review a practice interview. Score structure, specifics and follow-ups from 1 to 5, quote the line behind each score, and name the next drill. Answer in JSON.' },
      { role: 'user', content: transcript.map(line => `${line.who}: ${line.text}`).join('\n') },
    ],
  }),
})
const review = (await res.json()).choices[0].message.content
```

With `private: true`, the review request is not written anywhere on eroq's side. Claude Fable 5.2 reads up to 16,000 characters per request, about a quarter of an hour of talk; score a longer call in parts. The full call flow, with the minute-by-minute billing, is in [the Live calls reference](/docs/live).

## What it costs

A call costs 100 credits a minute, bought ahead a minute at a time, and a call that never connects gives its minute back. A review with Claude Fable 5.2 costs 20 credits.

| | Credits | At Scale pack prices |
|---|---|---|
| One minute of call | 100 | $0.83 |
| A 10-minute drill and its review | 1,020 | $8.50 |
| 20 learners, three 10-minute drills each | 61,200 | $510.00 |

Credits come in packs, from $10 for 1,000 credits (10 minutes of calls) to $100 for 12,000. There is no seat licence and no sales call. Most dedicated roleplay platforms sell differently: Hyperbound prices per user, and Second Nature and Mindtickle start with a demo. They are finished products with their own scorecards; the API is for teams that want to build theirs.

## Privacy and policy

eroq keeps no audio, no video and no transcript of a call. The call's record holds its length, the credits it used and your `user` id. The transcript exists only where your page stores it.

What the learner says meets eroq's [acceptable-use policy](/legal/aup): fiction only; nothing involving minors, no real identifiable people without consent, nothing illegal. Every character is 18 or older. A refused line is answered by the character changing the subject.

## What eroq does not do for you

- **No built-in score or report.** eroq hands you the transcript; the rubric, the scores and the dashboard are your product.
- **No knowledge base.** A character carries a 4,000-character persona and a call a 2,000-character scenario. That fits a role and a situation, not a company handbook.
- **No shared team library.** eroq has no team space for characters, learners or results. Your app is where learners, teams and their results live.
- **A few seconds per reply.** The character answers in a few seconds (around three in our measurements), and a first call can take a minute or more to pick up while a call machine starts.
- **Two calls at a time.** A workspace holds two open calls at once, each up to two hours. Plan a pilot around it.
- **The character does not see the learner.** Calls use the microphone only, so there is no feedback on body language.

## Try it now in the studio

Before writing code, make a character in [Characters](/studio/characters) and call it from [Live](/studio/live). Under the character, the studio has the same three settings as the API: the picture they appear in, the Situation (the `scenario`) and the Language. Try a drill there with your own character, then build the real thing on [the API](/docs/live).

## FAQ

### What is AI roleplay training?

Practising a conversation, such as an interview, a feedback talk, a sales objection or a complaint, with an AI character who answers in real time. On eroq the character has a face and a voice, on a video call.

### Can I build my own AI roleplay training tool without training a model?

Yes. You create characters with `POST /v1/characters`, open each exercise with `POST /v1/live/sessions` and its `scenario`, and score the transcript with `POST /v1/chat/completions`. There is nothing to train or host.

### Do learners need an eroq account?

No. Your server calls the API with your key and relays the call's setup; the learner talks in your page.

### Is the call recorded?

No. eroq keeps no audio, video or transcript. Your page receives the transcript on the `eroq` data channel and decides what to keep.

### Does eroq score the conversation?

No. eroq gives you the transcript; your app scores it, for example with a rubric sent to the chat API.

### How much does it cost per learner?

100 credits per minute of call, plus 20 credits per review with Claude Fable 5.2. A 10-minute drill with its review is 1,020 credits.

More: [AI video call](/tools/ai-video-call) · [Real-time AI avatar](/tools/real-time-ai-avatar) · [eroq Live, the launch](/blog/eroq-live-video-call-your-ai-characters) · [Managing credits across a team](/blog/managing-ai-credits-across-a-team).
