doing a live transfer to pass the number that it’s...
# general-english
s
Is it possible when doing a live transfer to pass the number that it’s connected too instead of the number the caller is connected too?
a
I am curious about this as well. @Shubham Bajaj any ideas?
They had said.. I want my clients to see a different number each time not the same, also helps avoid duplicate callers
h
@User custom transfer tool
Copy code
{
  "type": "transferCall",
  "async": false,
  "function": {
    "name": "customTransferCall"
  },
  "destinations": [
    {
      "message": "Thank you, I am transfering the call now.",
      "type": "number",
      "number": "xxxxxxxxxxxx",
      "callerId": "{{customer.number}}",
      "numberE164CheckEnabled": false
    }
  ]
}
a
this will tell what number to transfer too but I think they want the caller id for the incoming call to reflect a certain number correct @suMfectz
h
whatever you enter into caller ID will be the number displayed
a
ahh ok got it! I see that 🙂
h
ussually you would enter the customers number there so the people recieving the forwarded call are recieving it from the customers number
would need to pass the customer.number in the call request so the tool has it
a
@Shubham Bajaj can you confirm? thanks!!
s
Thanks Ham, I’ll test this bad boy!
Legends
h
its from the api documentation, this would be if you are always forwarding to the same number, there are more advanced tools that will forward to different numbers
a
Set to any E164 number to always use that number as the caller ID. This needs to be a number that is owned or verified by your Transport provider like Twilio.
Not sure you can put any caller id in there have you done this @Ham
h
yes its been live for months
forwarding the calling number as the number calling is standard on many platforms
HL does it automatically unless you tell it not to
i dont know where you got that sentence from
but I am guessing its referring to the number you are forwarding to, you are not supposed to forward calls to random numbers you do not own
e
Are we supposed to put that into the tool? I'm trying to send the forwarding details from Make because I need to check them against GHL and the contact tags. I keep giving it what I think is the right info, but it never works.
h
that is the tool I am using
although I could not get the warm message to use variables
so i just removed it
e
can you share what your response is?
ah if it wont take variables we could pass it to create json module in make
h
where is the webhook going?
e
make
h
its in make
i'm checking for tags in ghl, then it will route to specific tag and assigned users
ex: if tagged as 'partnership' all calls come to me, then if tagged 'customer' it checks assignedTo and forwards to the assigned staff to that contact
agency owner info wont pull from the https://rest.gohighlevel.com/v1/users/ so you have to store the data in a data store or a variable
e
ahh for real!
it's not webhook -_-
e
i've been messing with this for days...... oof
thank you!
i'll load this up and try it
e
yea i have all that done
h
having the forwarding number be variable is another thing
e
just trying to get it working before i change my prompt every time she runs the custom tool she says it via voice that shes running it
if you're having issue we can pass it to create a json
then pass that to vapi so its just text
h
you dont create the tool on every call
if thats what you are trying to do
cant really tell with your screens
e
i'll mess with it right now and see if this fixes it and once i get warm transfer working ill ping ya
@Ham
Copy code
py
{
  "type": "transferCall",
  "messages": [
    {
      "type": "request-start",
      "content": "It looks like you were working with {{22.data.firstName}}{{22.data.lastName}}. I am forwarding your call now. Please stay on the line."
    }
  ],
  "destinations": [
    {
      "type": "number",
      "number": "{{22.data.phone}}",
      "callerId": "+1405400XXXX",
      "numberE164CheckEnabled": false,
      "transferPlan": {
        "mode": "warm-transfer-with-message",
        "message": "Hey Eric, you are receiving a warm transfer. This is {{2.contactName}} from {{2.companyName}}."
      }
    }
  ]
}
it went through like this but no transfer
h
are you sending this with the call?
e
yes
vapi also has a module, not that it matters
h
are you using a dynamic agent?
e
I'm trying to. I just realized your post was to upload the tool.
I'm trying to pass data from make, back to vapi to handle call transfers.
i figured out your variable pass to vapi
s
@AiTitus :) @suMfectz @Ham @Eric Can you guys share a summary of it?
e
it looks like i need to make the transfer tool my transfer tool wasn't good enough but if y'all want to see what i have so far we can do so, do you want me to post here?
s
@Shubham Bajaj @Ham can this be done on outbound calls? So Vapi calls the lead, lead answers, lead qualifies > transfers lead to the call centre ( but sends the leads phone number that was dialed as the caller through )
h
this is exactly what im using the tool i posted for
im not sure what you are trying to do are you sending a new tool while on the call?
s
Yes you can set the caller ID to the customer phone number, and can also pass it as part of headers.
s
thanks guys
e
@Shubham Bajaj here is the dynamic call forwarding I was able to come up with```py { "type": "transferCall", "function": { "name": "dynamicTransferHandler", "description": "Dynamically transfers calls to the correct assigned contact with an announcement.", "parameters": { "type": "object", "properties": { "destination": { "type": "string", "description": "The phone number to transfer the call to." }, "transferType": { "type": "string", "enum": ["agency_owner", "assigned_staff"], "description": "Determines whether the call is forwarded to an agency owner or assigned staff." }, "callerID": { "type": "string", "description": "The caller's phone number." }, "recipientName": { "type": "string", "description": "The name of the person the caller will be transferred to." }, "transferPlan": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["warm-transfer-with-summary", "warm-transfer-with-message", "blind-transfer"], "description": "Defines the transfer mode." }, "messageToCaller": { "type": "string", "description": "A message to the caller before transfer." }, "messageToRecipient": { "type": "string", "description": "A message to the recipient before transferring the call." } } } }, "required": ["destination"] } } } ```
s
Thanks guys, working now
for me
e
omg I got it working to transfer the call 👀
however.. said application error occured
even says the transfer greetings but never officially transfers the call to ring
s
@Eric can you share the call ID?
a
Thanks @Shubham Bajaj
e
bd26cb02-ed1e-4567-867c-81349bc217f8
s
logs
🔵 05:59:00:391 Using Requested Destination Even Though Not Matched: Eric. Converted to: {"type": "number", "number": "Eric"} 🔵 05:59:00:392 Transferring Twilio Call...TwiML:Eric The transfer failed because you were transferring call to wrong destination
Eric
.
e
what do you mean wrong destination?
s
Erirc
is not an number so you cannot transfer call to it.
e
I think I fixed that. Hmm. 🤔 what field are you checking?
s
Your call ID, which you have shared above.
e
whats weird is none of those are my fields. how did they get messed up?
@Shubham Bajaj I’m having trouble with my dynamicTransferHandler tool. It’s registered correctly (ID: 22eb3f50-fd6e-48e5-bde4-97a60e4f8ef3), and my Make.com response sends valid parameters (e.g., destination: "+1405818XXXX", recipientName: "Eric Huggins"). But when I say "Ricky Bobby on the phone," the assistant calls the tool with placeholders like destination: "Ricky Bobby's phone number" and inconsistent keys (caller_i_d vs. callerID). It seems the assistant isn’t using my webhook response. Can you help me debug why the payload isn’t being applied? Logs show the tool call but not my data.
s
@Eric could you please share the call ID associated with this issue?
e
There’s no solid guides for dynamic transfer. I came up with a better option for handling the requests. Wasted a week and tons of credits on this, but learned in the process—I guess.
a
What did you learn would love to know if you can share!
s
@Eric If a situation arises due to Vapi’s software, I am happy to provide credits as a refund or return the monetary amount. Please share your thoughts on this matter.
3 Views