FluxyChat

Reference

Thread TL;DR on demand (P12-M)

Summarize long reply threads without scrolling the full history. Reuses the same AI path as reply suggestions (P12-D) and daily digest (P12-F).

Usage

API

POST /messages/{messageId}/summary
Authorization: Bearer <jwt>
Content-Type: application/json

{ "roomId": "room_support" }

Response

{
  "summary": "- Customer asked about refund policy\n- Agent offered store credit\n- Follow up Friday",
  "rootMessageId": 42,
  "messageCount": 5,
  "truncated": false
}

SDK

const { summary } = await client.summarizeThread(messageId, roomId);

Dashboard

Root messages with at least two replies show a TL;DR button in the agent room chat.

Behavior

  1. Resolve thread root by walking parent_id up from the anchor message.
  2. Collect root + nested replies (BFS, max 40 messages).
  3. Require at least 3 messages in the thread (thread_too_short otherwise).
  4. Call OpenAI-compatible chat completions via AI_BASE_URL.

Limits

ControlDefault
Min thread size3 messages
Max thread size40 messages
Quota metricagent_invocations
Rate limitRATE_LIMIT_THREAD_SUMMARY_PER_MINUTE (10/min)
ModelAI_SUMMARY_MODELAI_SUGGEST_MODELAI_MODEL

Errors

CodeHTTPMeaning
thread_too_short400Fewer than 3 messages in thread
message_not_found404Invalid message id for room
quota_exceeded402Monthly AI quota
ai_not_configured503Missing AI_BASE_URL

On this page