curl --location --request POST '/calls//actions/gather_using_ai' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"greeting": "Hello, can you tell me your age and where you live?",
"message_history": [
{
"content": "Hello, what'\''s your name?",
"role": "assistant"
},
{
"content": "Hello, I'\''m John.",
"role": "user"
}
],
"parameters": {
"properties": {
"age": {
"description": "The age of the customer.",
"type": "integer"
},
"location": {
"description": "The location of the customer.",
"type": "string"
}
},
"required": [
"age",
"location"
],
"type": "object"
},
"send_message_history_updates": true,
"send_partial_results": true,
"user_response_timeout_ms": 5000,
"voice": "Telnyx.KokoroTTS.af"
}'