Make CAll - Schema data function not working
Hi, ive added the following code when calling my AI call from VAPI: ],
"type" => "outboundPhoneCall",
"structuredDataSchema" => [
"type" => "object",
"properties" => [
"ConfirmedDPA" => [ "type" => "boolean" ],
"field2" => [ "type" => "number" ]
],
"required" => ["ConfirmedDPA", "field2"]
]
];
Its not working and I keep getting the following when running my php code: {"message":["property structuredDataSchema should not exist"],"error":"Bad Request","statusCode":400}
"type" => "outboundPhoneCall",
"structuredDataSchema" => [
"type" => "object",
"properties" => [
"ConfirmedDPA" => [ "type" => "boolean" ],
"field2" => [ "type" => "number" ]
],
"required" => ["ConfirmedDPA", "field2"]
]
];
Its not working and I keep getting the following when running my php code: {"message":["property structuredDataSchema should not exist"],"error":"Bad Request","statusCode":400}