luisz2k
07/03/2024, 6:02 AMVapi
07/03/2024, 6:03 AMVapi
07/03/2024, 6:03 AMVapi
07/03/2024, 6:03 AMluisz2k
07/03/2024, 6:08 AMVapi
07/03/2024, 6:08 AMaskForPhoneNumber
, you'll want to ensure that it's properly defined in your assistant's functions array. The property name in the functions array should match the name of the tool you've created.
Here's what you should have in your functions array:
json
{
"name": "askForPhoneNumber"
}
To get your assistant to use this function, you'll need to invoke it at the appropriate time during the call flow. You can do this by setting up a step in your voice application where you want to ask for the caller's phone number. At this step, you would call the askForPhoneNumber
function.
Here's an example of how you might instruct your assistant to use the function:
plaintext
When you reach the point in the conversation where you need the caller's phone number, say: "May I have your phone number to send you the booking link?" Then, use the `askForPhoneNumber` function to capture the caller's response.
If you need the assistant to call the function right now, please provide the necessary context or parameters required for the function, and I'll proceed with calling it for you.luisz2k
07/03/2024, 6:17 AMChowderr
07/03/2024, 6:32 AMDaniel
07/03/2024, 7:37 AM