---
title: "Generate Exercise Chat Analysis"
method: POST
path: "/teacher/assignments/{assignment_id}/exercises/{exercise_id}/chat-analysis"
tags: ["teacher_assignments"]
---

# Generate Exercise Chat Analysis

`POST /teacher/assignments/{assignment_id}/exercises/{exercise_id}/chat-analysis`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/teacher/assignments/{assignment_id}/exercises/{exercise_id}/chat-analysis`
- Auth: OAuth 2 (password, token URL `api/login`)

Generate or fetch chat analysis for a specific exercise in an assignment.
This analyzes conversation patterns and question types from student chat usage.

Admins can access this but won't trigger new LLM analyses - only view cached ones.

## Path parameters

- `assignment_id` string, required
- `exercise_id` string, required

## Response `200`

Successful Response

- ChatAnalysisResponse
  - `exercise_id` string, required
  - `chat_insights` string[], required
  - `generated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) - [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) - [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
