would it be possible to make forwardingPhoneNumber...
# support
a
Hi, would it be possible to make forwardingPhoneNumber dynamic? I don't want to use the transfer call tool call but rather make this dynamic. Would it be possible to add a function calling and making this dynamic?
v
@andromate12357892 Absolutely, we can certainly look into making the
forwardingPhoneNumbers
attribute dynamic. To achieve this, we would need to create a function that can update the
forwardingPhoneNumbers
based on certain conditions or inputs. This could involve integrating with a database or a set of rules that determine which phone numbers to forward calls to under different scenarios. If you have specific criteria or conditions in mind for how you'd like the
forwardingPhoneNumbers
to be updated dynamically, please share them with me. This will help in designing a solution that fits your needs. If you need assistance with the technical implementation or if this functionality is not yet available, I would recommend reaching out to support for more information on how to proceed.
You can continue this conversation by mentioning me in the message.
a
@Vapi Sure, let’s say based on certain conditions and possibly integrating it with DB.
v
@andromate12357892 Great! To make the
forwardingPhoneNumber
dynamic based on certain conditions and integrating with a database, you would typically need to implement a custom function within your application. This function would: 1. Check the conditions you've specified. 2. Query the database for the appropriate forwarding number(s) based on those conditions. 3. Update the call flow or API request with the retrieved forwarding number(s) before executing the call transfer. Since you're working with a Voice API, you would need to ensure that your API supports dynamic updating of call routing. If you're looking for a specific function within the VAPI to handle this, you might need to check the documentation or reach out to the API provider to see if such functionality exists or if it can be custom developed. If you need further assistance with the technical details or if you're looking for guidance on how to implement this within your system, please let me know the specifics, and I'll do my best to assist you. If this is a feature request or if you're encountering limitations with the current API capabilities, I would recommend contacting support for more detailed information on potential solutions or upcoming features that might meet your needs.
a
@User
s
Nope.
You will need to pre-define the numbers.
2 Views