Voicemail detection error
# support
s
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" ];
v
@soc86 It seems like there are a couple of issues with the configuration you've provided. The error message indicates that the properties
voicemailDetection
and
tools
should not exist in the request you're sending. This suggests that the API you're using does not recognize these fields, or they are not expected in the part of the request where you've included them. To resolve this, you'll need to check the API documentation for the correct structure of the request and ensure that all properties are placed correctly and only include those that are supported by the API. If
voicemailDetection
and
tools
are indeed valid properties, they might need to be nested within another object or configured differently. If you're unsure about the correct structure or the properties that are allowed, please refer to the API documentation or ask support for more info on this. If you need further assistance with the configuration, I'm here to help!
You can continue this conversation by mentioning me in the message.
s
you need to add the tools part inside the assistant parameter.
s
added to model and works fine
TY
s
Awesome.
3 Views