I have my code an how to get the transcriptions of the call and it should end the call after silence or good bye something
data = {
'assistant': {
"firstMessage": "Hello! I'm your real estate assistant. I have detailed information about our properties. How can I help you with your property search today?",
"model": {
"provider": "openai",
"model": "gpt-4",
"messages": [
{
"role": "system",
"content": system_prompt
}
],
"functions": [
{
"name": "schedule_meeting",
"description": "Schedule a Google Meet call when user requests a meeting",
"parameters": {
"type": "object",
"properties": {
"schedule_meet": {
"type": "boolean",
"description": "Whether to schedule a meeting"
}
},
"required": ["schedule_meet"]
}
}
]
},
"voice": "jennifer-playht"
},
'phoneNumberId': phone_number_id,
'customer': {
'number': customer_number,
},
}