Skip to main content
Use this endpoint to retrieve the AI-generated analysis for a roleplay training call. After each roleplay session, Shilo processes the recording asynchronously to produce detailed coaching feedback, a performance rating, objection and disposition analysis, speaker identification, and a session summary. Because processing takes time, you should poll this endpoint and check the progress field — all result fields are only fully populated once progress reaches 100.

Endpoint

Authentication

All requests require your API key in the x-api-key header.

Path Parameters

string
required
The unique identifier for the roleplay. Two formats are accepted:
  • {uuid} — The Shilo roleplay UUID (e.g., ee6f2136-b94a-4438-9335-3acf5b2a0d31)
  • call_event_id:{uuid} — The Shilo Call Event UUID associated with this roleplay session (e.g., call_event_id:ee6f2136-b94a-4438-9335-3acf5b2a0d31)

Response

A successful request returns HTTP 200 with a RecordingAnalysis object. The top-level fields id, recording_id, created_at, and progress are always present. All sub-resource fields (coaching, rating, summary, etc.) are optional and only fully populated once progress equals 100.
string
required
The UUID of this analysis record.
string
required
The Shilo UUID of the roleplay this analysis belongs to.
string
required
The ISO-8601 timestamp indicating when this analysis was created.
number
required
A value between 0 and 100 representing how far along the AI processing pipeline this roleplay is. Poll this endpoint until progress equals 100 before reading any result fields.
object
Recommended follow-up actions identified by the AI. Present only after processing completes.
object
AI-generated coaching feedback for the agent on this roleplay session. Present only after processing completes.
object
The AI-assessed outcome and reasoning for this roleplay session. Present only after processing completes.
object
Objections raised by the AI-simulated lead during the roleplay. Present only after processing completes.
object
A numeric quality rating assigned to the agent’s performance on this roleplay. Present only after processing completes.
object
AI-resolved speaker identities for the roleplay recording. Present only after processing completes.
object
A concise AI-generated summary of the roleplay session. Present only after processing completes.
Poll this endpoint until progress equals 100 before reading result fields such as coaching, rating, or summary. Sub-resource fields are absent or incomplete until processing finishes.

Error Responses

Example Request

Example Response