POST
/
ai
/
ai_extensions
/
ai_summarize
curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: eddf864695d72d33b959eec2ae6c640d817dfada" \
-d '{
  "smart_chat_assistant_id": "65d5f3473d5d68095462165d",
  "dialog_id": "65d5f3473d5d68095462166a"
}' \
https://api.quickblox.com/ai/ai_extensions/ai_summarize
{
  "summary": "The user contacted support to clarify a billing discrepancy they noticed in their latest invoice. They explained that they were charged for a premium subscription despite downgrading to the free plan last month. The assistant verified the account details, confirmed the downgrade request had not been processed, and issued a refund. The conversation then shifted to questions about using the mobile app’s new features, particularly exporting reports and setting up daily usage notifications. The assistant provided step-by-step guidance and shared relevant help center links. The user confirmed the issues were resolved and expressed satisfaction with the support received."
}

Before call make sure that AI Summarize feature enabled on admin dashboard, otherwise you will get 405 error.

A summary will be generated using the latest 1,000 messages from the conversation.

Please note that if there are no messages in dialog you will receive next response:

200
{
    "summary": "Chat is empty."
}

Body Parameters

smart_chat_assistant_id
string
required

Smart Chat Assistant ID.

dialog_id
string
required

ID of the dialog that will be summarized.

Headers

QB-Token
string
required

A user or application session token. See Authentication page to learn more about session tokens.

Responses