> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medera.info/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /api/therapy/analyze-session

> Post-visit analysis

AI Services endpoint:

```text theme={"system"}

POST /api/therapy/analyze-session

```

### Request body

```json theme={"system"}
{ "session_transcript": "...", "vital_signs": {... }, "clinical_context": {... }, "ai_metadata": {... }
}

```

### Response

````json theme={"system"}
{ "success": true, "aiTasks": [ { "id": 1, "title": "Generate SOAP Note", "description": "...", "assignee": "Scribe", "icon": "📝", "priority": "high", "estimatedTime": "5 minutes" } ], "visitSummary": { "topicsDiscussed": [...], "keyFindings": [...], "decisionsMade": [...], "nextSteps": [...] }, "differentialDiagnoses": [...], "riskAssessment": { "level": "moderate", "summary": "...", "factors": [...] }, "clinicalFindings": [...], "treatmentPlan": [...], "recommendations": [...]
}

``` Model: `gpt-4o`, temperature 0.3, JSON object format.
````
