Skip to main content
GET
/
api
/
v2
/
ai-suggestions
/
{suggestionId}
Retrieve AI Suggestion
curl --request GET \
  --url https://app.livechatai.com/api/v2/ai-suggestions/{suggestionId} \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "data": {
    "id": "msg_abc123def456",
    "userMessage": {
      "id": "msg_user789xyz",
      "text": "What is the warranty period for your products?"
    },
    "aiMessage": {
      "id": "msg_abc123def456",
      "text": "I'm sorry, I don't have information about that."
    },
    "evaluationTag": "OUT_OF_CONTEXT",
    "potentialGap": "Warranty information is missing from the knowledge base",
    "suggestedImprovement": "All our products come with a 2-year warranty. For details...",
    "chatId": "chat_xyz789",
    "agentId": "clx1234567890abcdef",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

suggestionId
string
required

The unique identifier of the AI suggestion

Example:

"msg_1234567890abcdef"

Response

Successfully retrieved AI suggestion details

status
string
Example:

"success"

data
object