ParwaanVirk (Kyzo AI)
03/16/2025, 3:02 AMShubham Bajaj
03/16/2025, 5:14 AMgetCustomerDetails function tool
2. First API Call:
- The function sends the name to your API server
- Your server stores the name in a session associated with the call ID
- The server returns customer details including email
- The API response is sent back to the Vapi assistant
3. Customer Verification:
- The assistant uses the API response to confirm the email with the customer
- The customer confirms if the email is correct
- The assistant then calls the confirmCustomerInfo function tool, passing:
- The customer name (previously collected)
- The customer email (from the first API response)
- The confirmation status (from customer's verbal confirmation)
4. Second API Call:
- The second function sends this information to your API server
- Your server cross-checks this with the stored session data
- Your server returns verification results
- The API response is sent back to the Vapi assistant
5. Continuation:
- The assistant proceeds with the call based on the verification result