Voicemail detection error

I keep getting the following error wiht the voicemail update?: {"message":["property voicemailDetection should not exist","property tools should not exist"],"error":"Bad Request","statusCode":400}

"assistant" => [
"backgroundSound" => "office",
"endCallMessage" => "thank you for your time today, goodbye.",
"firstMessage" => "".$intro."",
"voicemailDetectionEnabled" => true,
"hipaaEnabled" => false,
"llmRequestDelaySeconds" => 0.1,
"maxDurationSeconds" => 300,
"endCallFunctionEnabled" => true,

"model" => [
"model" => "gpt-4o",
"provider" => "openai",
"semanticCachingEnabled" => true,
"messages" => [
[
"role" => "system",
"content" => "".$prompt.""
]
]
],

"name" => "zoe",
"recordingEnabled" => true,
"transcriber" => [
"provider" => "deepgram",
"language" => "en-GB",
"model" => "nova-2"
],
"voice" => [
"provider" => "11labs",
"voiceId" => "#######"
],
"serverUrl" => "https://hook.eu2.make.com/######",
"serverMessages" => [
"conversation-update",
"end-of-call-report"
]
],


"customer" => [
"number" => $telephone,
"name" => "".$name.""
],
"voicemailDetection"=>[
"provider"=>"twilio",
"enabled"=> true
],
"tools"=> [
[
"type"=>"voicemail"
]
],

"maxDurationSeconds" => 600,
"phoneNumber" => [
"assistantId" => "#######",
"name" => "Disrepair Team",
"twilioAccountSid" => "#######",
"twilioAuthToken" => "#######",
"twilioPhoneNumber" => "#######"
],
"type" => "outboundPhoneCall"
];
Was this page helpful?