p
Hi All, Can someone please guide me here. I want to make multiple Api calls, during the voice call from vapi, where I want the data from each api call to be accessible and re-usable in the next api call along with information gathered from the customer during the call. For ex: Step 1) Agent asks Customer Information Step 2) API Call #1 (with customer Name as parameter) Step 3) API #1 Response --> Customer Name, and Customer Email Step 4) Agent confirms Customer Email from customer, and if it matches Step 5) API Call #2 (With customer Name, and Boolean == True, as parameter) Is there someone who has alredy done this ??
s
Here's how the data flows through our system: 1. Customer Information Collection: - The Vapi assistant asks for the customer's name during the call - Once obtained, the assistant calls the
getCustomerDetails
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
3 Views