Serverless AI Conversation Summary

AI powered conversation summarizer that creates a concise overview of a conversation history. The service analyzes the conversation history and generates a summary highlighting the key points, decisions, and action items discussed.

Endpoint

Generate a concise summary of a conversation history.

POSThttps://api.xtartapp.com/bot/summary

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
historyarrayYes-Array of conversation messages with role (user/bot) and content
languagestringNo-Language code for the summary (e.g., 'en', 'fr', 'es', 'auto')

Response

NameTypeDescription
dataobjectThe summary data
data.summarystringThe generated conversation summary
data.confidencenumberConfidence score for the summary (0.0 to 1.0)
data.languagestringThe language of the generated summary
metadataobjectMetadata about the summary generation process
metadata.costnumberThe cost of the summary generation request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTEx.: The request is invalid.
400BOT_SUMMARY_ERROREx: could not generate summary for the conversation | parsing error
400HARM_CONTENTEx.: The content is harmful and cannot be processed.
400INSUFFICIENT_BALANCEThe user has insufficient balance
401UNAUTHORIZEDEx.: The token is invalid.
429TOO_MANY_REQUESTSEx.: The request limit has been reached.