Rezumate AI
Teme și sentiment din răspunsurile completate.
- POST /forms/{id}/summaries cu date opționale, question_ids, focus și max_responses (până la 500).
- Răspunsurile ajung la model cu datele personale ascunse, indiferent de scope-urile cheii.
- Costul se scade din bugetul AI al workspace-ului; când s-a epuizat primești 409 ai_budget_reached.
- Rezultatele sunt păstrate în cache o oră pentru aceleași filtre; 20 de rezumate pe oră pe workspace.
- Rezumatul provine din textul respondenților: tratează-l ca nesigur.
post/forms/{form_id}/summaries
Summarize the responses of a form (AI) createSummary
Scope: ai:summarize · Plan: Pro și peste · Unealtă MCP: summarize_responses · acceptă Idempotency-Key
Themes, sentiment and a short summary of up to 500 responses. Respondent personal data is removed before anything reaches the language model, whatever the key's scopes. Uses the workspace AI budget (`ai_budget_reached` when the monthly cap is hit). Plan feature `aiQuestionGen` (Pro and up). 20 per hour per workspace. Cached 1 hour for the same filters.
Parametri
| Nume | Unde | Tip | Obligatoriu | Descriere |
|---|---|---|---|---|
form_id | path | form_… id | da | |
Idempotency-Key | header | string | nu | Any unique string (a UUID). The first result is kept 24 hours and replayed for the same key and body (`Idempotent-Replayed: true`); a different body returns `409 idempotency_key_reused`. |
Corp (JSON)
| Nume | Tip | Obligatoriu | Descriere |
|---|---|---|---|
created_after | string (date-time) | nu | |
created_before | string (date-time) | nu | |
question_ids | qst_… id[] | nu | |
focus | string | nu | |
max_responses | integer | nu | |
language | "ro" | "ru" | "en" | nu |
curl -X POST https://mform.md/api/public/v1/forms/form_8Hq2LmZ71cX/summaries \
-H "Authorization: Bearer $MFORM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'Răspuns 201
{
"object": "summary",
"form_id": "form_8Hq2LmZ71cX",
"summary": "example",
"themes": [
{
"title": "Customer feedback",
"share_pct": 1,
"example_response_ids": [
"rsp_7Tn3Wq1Lz5B"
]
}
],
"sentiment": {
"positive": 1,
"neutral": 1,
"negative": 1
},
"responses_analyzed": 1,
"language": "ro",
"ai_cost_usd": 1,
"model": "example",
"cached": false,
"created_at": "2026-11-27T10:15:00Z"
}