Please make sure to add the destination parameter with an enum array containing your valid transfer options. This will ensure the AI assistant always chooses from your predefined list of destinations rather than trying to guess or match based on descriptions alone.
To accomplish this, use the API to set the enums like the example below:
"function": {
"name": "scheck_transfer_call",
"description": "Nutze dieses tool um den Anrufer weiterzuleiten.",
"parameters": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"enum": \[
"+4989992874230", // Tennis
"+4989992874210", // Hotel
"+4989992874400", // Physio
"+4915154749051", // Fitness
"+4989992874314", // Customer Service
"+4989992874250", // Event Team (Camps)
"+4989992874315", // Event Team (Corporate)
"+4989992874307" // Administration
\],
"description": "The phone number to transfer the call to based on customer inquiry: +4989992874230 (Tennis court bookings, lessons), +4989992874210 (Hotel reservations), +4989992874400 (Physiotherapy appointments), +4915154749051 (Fitness gym), +4989992874314 (Memberships, contracts), +4989992874250 (Children camps, birthdays), +4989992874315 (Corporate events), +4989992874307 (Billing, payments)"
}
},
"required": \["destination"\]
}
}