Trying to transfer to multiple extensions on the s...
# support
t
I have a problem. I'm trying to transfer a call to multiple extensions but it will only work on the first extension and not the others. To further explain i have in the json code the number and extensions. Like this: "Type" : "number", "number" : "+18887776767", "extention" : "1" "Type" : "number", "number" : "+18887776767", "extention" : "2" The number is the same on all but the extensions are different depending on who I want the call to be transfered to. The issue i am running into is that on the prompt side I am saying... "when someone ask for department 1 run toolcall to number +1888.777.6767. When someone ask for department 2 run toolcall to number +1888.777.6767" The issue is I dont see a way to explain in the prompt to call the same number but choose which extension based on the prompt. Is there a way to get the system to know to call this number but with extension x. https://cdn.discordapp.com/attachments/1329065018850938991/1329065019681542255/rn_image_picker_lib_temp_089233d5-6bdc-4976-8990-0ff29476b6a1.jpg?ex=6788fbc1&is=6787aa41&hm=69a23fb0b2ffd702627ef35b49249132a03cb956a64f9f411fdf5e8b7cfaa4db&
v
@terry144k Certainly! To direct the call to the correct extension based on the user's request, you can include the
extension
parameter in your call setup. This parameter will specify which extension to dial after the call is connected to the main number. Here's how you can structure your JSON code to include the extension for each department:
Copy code
json
{
  "Type": "number",
  "number": "+18887776767",
  "extension": "1"
}

{
  "Type": "number",
  "number": "+18887776767",
  "extension": "2"
}
And in your prompt logic, you can specify the extension like this: - When someone asks for department 1, you would run the call with
extension
set to "1". - When someone asks for department 2, you would run the call with
extension
set to "2". For example:
Copy code
plaintext
If the user says, "Connect me to department 1," you would initiate a call to +18887776767 and dial extension 1.
If the user says, "Connect me to department 2," you would initiate a call to +18887776767 and dial extension 2.
This way, the system will know to call the same number but with the specified extension based on the user's request. If you need to execute this action now, please provide me with the context of the user's request, and I'll assist you with setting up the call to the correct extension.
You can continue this conversation by mentioning me in the message.
t
@Vapi does the dialpad feature need to be on for this to work?
v
@terry144k Yes, the dial keypad feature needs to be enabled for the system to interact with a phone system's extension dialing. When the dialKeypadFunctionEnabled is turned on, the assistant can simulate pressing the keypad buttons to enter the extension after the call is connected to the main number. If this feature is not currently enabled, you would need to enable it to ensure that the assistant can dial the extensions correctly. If you have already enabled this feature and need assistance with dialing a specific extension, please let me know the details, and I can help guide you through the process.
t
@User What's the code to enable it?
@Vapi what's the code to enable dialkeypad
v
@terry144k The
dialKeypad
functionality is typically a feature of a Voice API or telephony system, and it's not something that can be enabled with a simple code snippet. Instead, it's a feature that must be supported by the system you are using and may require configuration within that system's settings or through its API. In the context of a Voice API, enabling the dial keypad feature would usually involve setting a parameter in your API request that indicates you want to use DTMF (Dual-Tone Multi-Frequency) tones to interact with the phone system after the call is connected. If you're working with a specific Voice API or telephony system, you would need to refer to its documentation to understand how to enable and use the dial keypad feature. If the system you're using supports custom JSON configurations, there might be a specific key-value pair that you would set to true to enable the feature. For example, in a hypothetical JSON configuration, it might look something like this:
Copy code
json
{
  "dialKeypadFunctionEnabled": true
}
However, please note that this is just an illustrative example, and the actual implementation will depend on the specific system you are using. If you need further assistance with enabling the dial keypad feature in your system, please provide more details or refer to the system's documentation or support resources.
t
It's still not working
@Vapi it's still only transferring to the 1st extension only even if I ask for the others
v
@terry144k I'm sorry to hear that you're still experiencing issues with transferring calls to the correct extensions. It seems like there might be a problem with how the call transfer logic is set up in your system. To assist you further, I would need to understand more about the specific Voice API or system you are using. However, here are some general troubleshooting steps you can take: 1. **Check Configuration**: Ensure that the configuration for each extension is set up correctly and that there are no errors in the JSON or the system where you define the extensions. 2. **Review Logic**: Make sure that the logic in your system that interprets the user's request and selects the extension is functioning correctly. It should be able to differentiate between requests for different departments and select the appropriate extension accordingly. 3. **Test Each Extension**: Try testing each extension individually to ensure that the system can successfully transfer calls to each one when they are the only target. 4. **Logs and Error Messages**: Check any logs or error messages that your system may provide for clues as to why the transfer isn't working as expected. 5. **Contact Support**: If you're using a third-party Voice API or telephony system, their support team may be able to provide more specific guidance based on their knowledge of the system. If you can provide more details about the system or the code you are using to handle the call transfers, I may be able to offer more targeted advice. Otherwise, if you're unable to resolve the issue on your own, please ask support for more info on this.
t
@User Please help me support team
s
@terry144k as discussed over the stage, you have to try different prompting. If it still continues not to work, we will resolve it over another call.
t
message has been deleted
It's still not working
s
Hey @terry144k To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
2 Views