Create Roleplay
Create a new roleplay by referencing existing building blocks by ID.
Before creating a roleplay, create the required building blocks:
- Persona: Use the create persona endpoint or an existing persona ID
- Scorecard: Use the create scorecard endpoint or an existing scorecard ID
- Variables (optional): Create variables and variants, then pass their IDs
Pass the UUIDs of these building blocks to assemble the roleplay.
Documentation Index
Fetch the complete documentation index at: https://docs.replay.sale/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication. Get your API key from your company settings.
Body
Title of the roleplay
1"Cold Call Discovery Practice"
UUID of an existing customer persona
"550e8400-e29b-41d4-a716-446655440000"
UUID of an existing scorecard
"550e8400-e29b-41d4-a716-446655440002"
Minimum score to pass (0-100). Defaults to 70.
0 <= x <= 10070
Language code for the roleplay. Options: en, es, fr-CA, pt-BR, cs. Defaults to 'en'.
en, es, fr-CA, pt-BR, cs "en"
If true, the user does not see AI feedback during the session. Defaults to false.
false
Opening conversation prompts shown to the user. Defaults to empty.
[
"Hi, I'm calling about your recent inquiry...",
"Hello! I'd like to discuss how we can help..."
]If true, AI acts as the customer. If false, AI acts as the rep. Defaults to true.
true
Instructions for the AI persona during the conversation
"You are a busy VP of Sales who is skeptical of new tools but open to hearing a quick pitch."
GCS path for the roleplay cover image
"companies/company-id/images/premade-roleplay/cover.png"
Objective description shown to the user
"Successfully qualify the prospect and book a follow-up demo"
Key terms relevant to the roleplay
["ROI", "integration", "onboarding"]Time limit for the roleplay session in seconds
x > 0300
If true, camera access is required and video will be recorded. Defaults to false.
false
If true, shows analysis results after roleplay completion. If false, shows a simple completion message. Defaults to true.
true
Maximum number of attempts allowed for this roleplay. When set, users cannot exceed this limit.
x > 03
Show solution info before the first attempt. Defaults to true.
Show solution info before retry attempts. Defaults to true.
Show scorecard before the first attempt. Defaults to true.
Show scorecard before retry attempts. Defaults to true.
Show customer persona before the first attempt. Defaults to true.
Show customer persona before retry attempts. Defaults to true.
Whether the roleplay is live and accessible to users (true) or in draft mode (false). Defaults to true.
true
Custom key-value pairs for external integrations (LMS systems, analytics, etc.)
{
"scorecard_id": "sc_789",
"fs_category": "customer_service",
"difficulty": "intermediate"
}Optional variable-variant pairs to attach to the roleplay

