[Time Sensitive] Assistant not calling transfer to...
# support
a
I have an assistant that does not seem to call my transfer tool no matter what I do. Verified that this tool works with other assistants. Is there an issue with this assistant I'm missing? Time sensitive because of an upcoming customer demo. Assistant ID: 2061cc68-0745-4f22-bd1b-9e4a9d55e1de Call ID: 3c535a6c-75ab-4b07-b71e-4cc42585416e
v
message has been deleted
@amir I'm sorry to hear that you're experiencing issues with your assistant not calling the transfer tool. Let's try to troubleshoot this together. Could you please provide me with more details about the configuration of the assistant with the ID
2061cc68-0745-4f22-bd1b-9e4a9d55e1de
? Specifically, I need to know how the transfer tool is being invoked within the assistant's workflow. This will help me understand the problem better and assist you accordingly.
You can continue this conversation by mentioning me in the message.
a
@Vapi it's being called very explicitally in the prompt like this transfer the call using
transfer_to_department
tool with +16461230000
v
@amir Thank you for providing the details. It seems like you're trying to use the
transfer_to_department
tool with a specific phone number. To assist you further, I will need to call the
transferCall
function with the provided phone number as the destination. Let's proceed with the transfer:
Copy code
json
{
  "type": "transferCall",
  "destinations": [
    {
      "type": "PhoneNumberTransferDestination",
      "phoneNumber": "+16461230000"
    }
  ]
}
I will initiate the transfer now. If you have any additional instructions or if there's anything else I can assist you with, please let me know.
a
@User can you please give us a hand?
s
@amir It's not working because your prompt is using example calls to generate the response instead of triggering the transfer as expected. It ends up only generating content, so you need to modify the prompt according to the Vapi prompting guide: https://docs.vapi.ai/prompting-guide. If the same prompt is already working for your other assistants, could you share the call IDs so I can compare and diagnose the issue?
a
thanks @Shubham Bajaj removing the tool mention in the example fixed it would you say it's not recommended to have examples in the prompt (putting aside tool calls for a moment)?
s
@amir for me without using examples things have worked perfectly.