Skip to main content
Version: v2

Generate Summary

Return a generative AI summarization of the specified session using the supplied prompt summary profile that specifies both prompting instructions and session context configuration.

See the Generate Summary Overview section of the Introduction for detailed guidance on generating session summaries.

Path Parameters
    session_id string required

    The UTF-8 encoded ID of the session for which to generate context data. To retrieve the Session ID you may use the appropriate Get Session Details API for Web, iOS, or Android. As Session IDs include : separators the ID must be URL encoded using the %3A substitution. Learn more.

Query Parameters
    config_profile string optional

    The id value returned from Create Profile.

Responses
200

Text based output of the Generative AI response based on the specified Profile.


{
"response": {},
"response_schema": {
"type": "OBJECT",
"title": "SessionSummary",
"description": "Structured output for the LLM response",
"properties": {
"summary": {
"type": "STRING",
"description": "Concise session summary"
},
"sentiment": {
"type": "STRING",
"enum": [
"positive",
"neutral",
"negative"
],
"format": "enum"
},
"issues": {
"type": "ARRAY",
"items": {
"type": "STRING"
}
}
},
"required": [
"summary"
]
}
}
Loading...