Create scenario from transcript
Create a scenario draft by analyzing a conversation transcript. The system uses LLM to extract user intent, conversation goals, and user characteristics from the transcript, then generates an appropriate persona package.
The endpoint supports:
- Fetching transcript via sessionId from analytics service (RPC call)
- Direct transcript content via transcriptContent
- Optional flow context for enhanced persona generation
- Content safety validation (warnings only, non-blocking)
Priority: If both sessionId and transcriptContent are provided, sessionId takes precedence.
Returns a complete persona package and metadata about the analysis.
Authorizations
JWT Bearer Token for authentication
Query Parameters
Project identifier (alternative to projectReference in body)
Body
Project reference for context identification (alternative to projectId query parameter)
Session identifier to retrieve transcript from analytics service. If provided, takes precedence over transcriptContent.
Direct transcript content. Optional if sessionId is provided.
Optional: Flow ID to associate with and extract agent context for enhanced generation
Optional: Number of success criteria to generate (default: 5, min: 1, max: 10)
1 <= x <= 10Optional analysis configuration