Creates a new chat session with the specified agent and sends the initial message. Returns the agent’s reply along with the chatId for subsequent completion, update, and end-session calls.
Documentation Index
Fetch the complete documentation index at: https://docs.sigmamind.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authenticate every request by passing your API key in the X-API-Key header. To get your key, go to Dashboard → API Keys and create or copy your Production API key.
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"
Created
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": "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?"
]
}
]Agent assigned to handle all calls in this campaign. Contains the agent's ID, name, and current status. All contacts in the campaign's contact list will be called using this agent.