Called whenever the telephony system has received a call that should be transferred to a human user in enneo. This is usually done on handover from a bot-based conversation to a human.
curl --request POST \
--url https://demo.enneo.ai/api/mind/telephony/callReceived \
--header 'Content-Type: application/json' \
--data '{
"routing": "none",
"contractId": "123456",
"customerId": "789012",
"phone": "+491234567890",
"transcript": [
{
"speaker": "bot",
"message": "Hello, my name is AI Assistant. How can I help you today?",
"timestamp": "2024-01-23T14:32:11Z"
}
],
"userId": 42,
"channelId": "call_123abc456",
"callerName": "John Smith",
"direction": "in",
"subchannelId": 5,
"externalTicketId": "ext-123",
"status": "open",
"triggerAiProcessing": true
}'
{
"success": true,
"ticketId": 2142,
"contractId": null,
"customerId": null,
"ioResponse": "None, as routing is not external",
"queueId": 123
}
Cookie-based authentication
Successful operation
The response is of type object
.
curl --request POST \
--url https://demo.enneo.ai/api/mind/telephony/callReceived \
--header 'Content-Type: application/json' \
--data '{
"routing": "none",
"contractId": "123456",
"customerId": "789012",
"phone": "+491234567890",
"transcript": [
{
"speaker": "bot",
"message": "Hello, my name is AI Assistant. How can I help you today?",
"timestamp": "2024-01-23T14:32:11Z"
}
],
"userId": 42,
"channelId": "call_123abc456",
"callerName": "John Smith",
"direction": "in",
"subchannelId": 5,
"externalTicketId": "ext-123",
"status": "open",
"triggerAiProcessing": true
}'
{
"success": true,
"ticketId": 2142,
"contractId": null,
"customerId": null,
"ioResponse": "None, as routing is not external",
"queueId": 123
}