Create a Replay session for a roleplay. Includes creating a Livekit room as well as AI agent setup.
API key for authentication. Get your API key from your company settings.
UUID of the premade roleplay to use for room creation.
"550e8400-e29b-41d4-a716-446655440000"
Unique identifier for the external user. Used for user resolution:
Existing User: If a user with the same userUniqueIdentifier exists for the company, their record is used New User: If no matching user exists, an Integration user is automatically created with the provided userName and userUniqueIdentifier, associated with the company's Integration team
This ensures consistent user tracking across multiple API calls.
1"user-123"
Name of the user who will participate in the roleplay. Used for displaying and using the user's name in the roleplay.
1"John Doe"
Whether to record video for the roleplay session.
true: Video recording will be captured false: No video recording
Note: Audio is always recorded.
false
Room created successfully. Use the returned credentials to connect to the LiveKit room.
Next Steps: