Transfer to another assistant
# support
s
I tried settling up a simple transfer tool to go to an assistant with the name James but when I try to add that tool to another assistant and I get this error “Invalid destination. Asssistant “James” not found”
v
The error suggests your assistant named "James" isn't properly configured in your Vapi account. Check if you're missing the "provider" field in your assistant overrides by adding it with this API call:
Copy code
curl -X PATCH https://api.vapi.ai/assistant/YOUR-JAMES-ASSISTANT-ID \
     -H "Authorization: Bearer YOUR-API-KEY" \
     -H "Content-Type: application/json" \
     -d '{
       "assistantOverrides": {
         "provider": "openai"
       }
     }'
This has resolved similar "assistant not found" errors for other users. Source: - [Discord conversation about missing provider in assistant overrides](https://discord.com/channels/1211482211119796234/1333350360932421682)
k
Ensure the assistant “James” exists, is active, and use its correct Assistant ID, also verify both assistants are in the same project and check for types in the setup..
s
Both assistants are using provider OpenAI accord to the admin UI. The name is correct, I just set it in the UI at the top left, underneath that is the assistant ID I put that in the transfer call function Assistant Name field and it gives me the same error. I’m not sure about the same project, as I only see an option to create a folder and put assistants in that
k
Recreate the transfer tool, consider dynamic transfer handling via webhooks..
If still experiencing same issue send call id
s
I tried recreating the transfer tool no luck. I’m using the web UI entirely for this, so maybe it’s not yet a supported feature without the the API?
k
Dynamic call transfers via webhooks aren’t supported in the Vapi web UI, you’ll need to use the API to create a transfer tool with dynamic destinations and handle transfer-destination-request webhooks on your server.
s
Gotcha, I just saw there was an option to create a transfer tool for an assistant and then a way to assign that tool to another assistant. So I would need to ping the API to accomplish that?
k
Yes, you need to create it via the API and update the assistant config, then handle the transfer-destination-request event to define the call destination dynamically.
s
Ok, i haven’t touched the API yet I’ll have to start digging through the docs. I was able to setup a transfer tool that has my phone number in the UI and that works great, I just did that same thing but used the assistant option, I guess I’m confused why it’s an option if it doesn’t work?