summarize_conversation
Summarize a conversation by providing its conversation_id; the AI Action selects the most recent messages automatically, returning a summary with language support and optional date filters.
Instructions
Summarize a conversation by running an AI Action over its recent messages.
USE WHEN: You want a conversation summarized and have a conversation_id. Message selection is handled for you — omit message_ids and the most recent messages are used.
USE INSTEAD: run_ai_action if you already know exactly which message_ids to process, or want a non-summary AI Action.
FIRST: prompt_id comes from list_ai_actions (field id) — call it first if you don't have one.
FIRST: conversation_id comes from list_conversations (field results[].id) — call it first if you don't have one.
EXAMPLE: {"conversation_id":"conv-abc","prompt_id":"prompt-abc","limit":50}
RETURNS: Same as run_ai_action: {id, prompt_id, message_ids, responses: [{language, text?, markdown?, ...}], ...}.
ERROR BAD_REQUEST: prompt_id is not a valid AI Action ID. — Call list_ai_actions to get valid prompt_id values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many recent messages to summarize when `message_ids` is omitted. Must be a positive integer; values above 50 are clamped to 50 (the upstream page limit). Ignored when `message_ids` is provided. | |
| end_date | No | ISO 8601 upper bound on message age; a UTC `Z` suffix or a numeric offset both work. Ignored when `message_ids` is given. | |
| language | No | Summary language. Defaults to the original message language. | |
| prompt_id | Yes | AI Action ID, from `list_ai_actions` (its `id`). | |
| start_date | No | ISO 8601 lower bound on message age; a UTC `Z` suffix or a numeric offset both work. Ignored when `message_ids` is given. | |
| message_ids | No | Specific messages to summarize. Omit to use the most recent messages, which is usually what you want — it saves a `list_messages` call. | |
| conversation_id | Yes | Conversation to summarize, from `list_conversations`. | |
| response_fields | No | Dot-path allowlist to shrink the response, e.g. ["results.id","total"]. Omit for the full payload. |