Inbox Ai Chat Functions
Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
conversationIdstringRequired
The ID of the conversation.
Responses
200
The generated summary.
application/json
summarystringRequiredExample:
The generated summary of the conversation.
The customer is asking about the status of their order #12345.errorstringOptional
Optional error message.
403
Insufficient permissions.
get/v1/inbox/{chatbotId}/conversations/{conversationId}/summary
GET /v1/inbox/{chatbotId}/conversations/{conversationId}/summary HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"summary": "The customer is asking about the status of their order #12345.",
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
conversationIdstringRequired
The ID of the conversation.
Responses
200
The generated text completion.
application/json
completionstringRequiredExample:
The completed text suggestion.
...and I wish you a nice day.errorstringOptional
Optional error message.
403
Insufficient permissions.
get/v1/inbox/{chatbotId}/conversations/{conversationId}/completion
GET /v1/inbox/{chatbotId}/conversations/{conversationId}/completion HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"completion": "...and I wish you a nice day.",
"error": "text"
}Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
conversationIdstringRequired
The ID of the conversation.
Body
messagestringRequiredExample:
The message to be reformulated.
Can you help me?Responses
201
The reformulated message.
application/json
formulationstringOptionalExample:
The reformulated text suggestion.
Dear customer, how can I assist you?400
Invalid input data.
403
Insufficient permissions.
post/v1/inbox/{chatbotId}/conversations/{conversationId}/formulation
POST /v1/inbox/{chatbotId}/conversations/{conversationId}/formulation HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"message": "Can you help me?"
}{
"formulation": "Dear customer, how can I assist you?"
}Last updated