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.
1 - 64"D5D0p7TUs66TTAEAx"
Input message from the customer or conversation history.
1 - 20480"Where is my order?"
Dynamic key-value pairs required by the selected Agent for personalisation (e.g. customer name, account details).
{ "customer_name": "Michael" }Unique ID of a previous chat session to use as context for this chat.
128"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 handling conversations
{
"name": "Demo Agent",
"agentId": "D5D0p7TUs66TTAEAx",
"status": "Testing"
}