Chat Session
This endpoint generates an AI response for a query requested by the user in a chat session with the AI chatbot
post
Query parameters
widgetIdstringRequired
ID of the widget
Body
interactionIdstringOptional
Optional id of the interaction. If provided, it will merge history of all previous chats, else the system will generate a new one
contentstringRequired
Query by a user or Response from the system
chatUserIdstringOptional
Optional id of the chat user. If not given, system will generate a new one automatically
Responses
200
Chat Message Object
application/json
403
If billing plan is inactive or plan limits have reached
post
POST /v1/interact/chat?widgetId=text HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"interactionId": "text",
"content": "text",
"chatUserId": "text"
}
{
"interactionId": "text",
"content": "text",
"chatUserId": "text",
"role": "system",
"created": 1,
"messageId": "text"
}
Last updated