Create new chat session
API Key is required in header. You can find it in the settings
The unique identifier of the Agent assigned to handle the chat completion.
"D5D0p7TUs66TTAEAx"
Input message of the customer or history of the conversation
"Where is my order?"
A set of dynamic key-value pairs required by the selected Agent. These variables allow personalization of the call, such as passing the customer’s name or other contextual details.
{ "customer_name": "Michael" }Unique ID of the chat that will be used as context for the new chat.
"chat-D5D0p7TUs66TTAEAx"
OK
Unique identity for a chat
"chat-d17T6uReChpyfFeP"
The timestamp when the call record was created.
"2021-04-20T10:00:00.000Z"
Status of the chat
in-progress, ended, error "ended"
Agent response of the last user message
[
{
"id": "chat-item-G9YdhDqua0EngI1G",
"role": "assistant",
"type": "message",
"content": [
"Hello! My name is Grace, and I'm calling on behalf of SigmaMind AI. Am I speaking with Michael?"
]
}
]Assigned agent for current campaign