Is it possible to use a dynamic variable for call ...
# support
g
Here’s the scenario: During a VAPI call, the voice agent asks the caller qualifying questions to determine which of 8 categories they fit into. Once the category is identified, VAPI sends this information (via webhook) to Make.com. Make.com processes the data and sends an HTTP request to a corporation's database using an API to retrieve several phone numbers related to the chosen category. Make.com selects one phone number from the list and sends it back to VAPI. VAPI then uses this phone number to transfer the call dynamically. Can VAPI support such a process where the call forwarding number is determined dynamically during the call? If so, how would it be implemented?
v
@Gurinder Singh Yes, VAPI can support such a process where the call forwarding number is determined dynamically during the call. The implementation would involve a series of steps that integrate VAPI's capabilities with external services like Make.com. Here's a high-level overview of how it could be implemented: 1. **Voice Agent Interaction**: During the call, VAPI's voice agent interacts with the caller and asks the necessary qualifying questions. 2. **Category Identification**: Based on the caller's responses, VAPI identifies the appropriate category. 3. **Webhook Notification**: VAPI sends the identified category information to Make.com via a webhook. 4. **Make.com Processing**: Make.com receives the data and processes it to make an HTTP request to the corporation's database API to retrieve the relevant phone numbers for the category. 5. **Phone Number Selection**: Make.com selects a phone number from the retrieved list based on predefined logic or criteria. 6. **Send Number to VAPI**: Make.com sends the selected phone number back to VAPI. 7. **Dynamic Call Forwarding**: VAPI receives the phone number and uses its
forwardingPhoneNumber
attribute to dynamically transfer the call to the chosen number. To ensure a smooth implementation, you would need to set up the webhook integration with Make.com, configure the database API to respond with the correct phone numbers, and ensure that VAPI is ready to handle dynamic call forwarding based on the information received from Make.com. If you have any specific questions about setting up any of these steps or need assistance with the implementation, please let me know, and I'll be happy to help!
You can continue this conversation by mentioning me in the message.
g
need someone from VAPi team to answer please
?
s
Hey @Gurinder Singh you can use dynamic destination numbers for transfer calls, use the response from tools calling and pass it to the transfer tool call and then it will work. Here's How:- - trigger the and map the result to {{dynamicDestinationNumber}} - trigger the transferCall function with {{dynamicDestinationNumber}}
@Gurinder Singh do let me know how it goes.
13 Views