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."
}
{
"errors": [
"Validation Error: dialog_id: Dialog id can't be empty, must be a string"
]
}
{
"errors": [
"The resource wasn't found"
]
}
{
"errors": [
"AI Summarize is disabled"
]
}
AI
AI Summarize
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."
}
{
"errors": [
"Validation Error: dialog_id: Dialog id can't be empty, must be a string"
]
}
{
"errors": [
"The resource wasn't found"
]
}
{
"errors": [
"AI Summarize is disabled"
]
}
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
string
required
AI Agent ID.
string
required
ID of the dialog that will be summarized.
Headers
string
required
A user or application session token. See Authentication
page to learn more about session tokens.
Responses
200
200
A successful response
string
400
400
An error response
array of strings
404
404
An error response
array of strings
405
405
An error response
array of strings
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."
}
{
"errors": [
"Validation Error: dialog_id: Dialog id can't be empty, must be a string"
]
}
{
"errors": [
"The resource wasn't found"
]
}
{
"errors": [
"AI Summarize is disabled"
]
}
Was this page helpful?
⌘I