https://retellai.com/?utm_source=discord&utm_medium=seo logo
User caller ID for call transfers when using custo...
# ❓・bug-report
k
I've implemented a custom LLM based on the guide in Retell docs. I've also been able to transfer calls by using the
transfer_number
field for
agent_response
and
agent_interrupt
events. However, I can't seem to find any documentation to use the user's phone number instead of the agent's for the caller ID during the transfer. Looking through the channel, I was able to find 1 thread where this was brought up and it appears there's an undocumented method; described here: https://discord.com/channels/1186424376300679209/1369052565592866836. But, I'm unable to get it working. Is there more documentation or an example of a full response that is to be sent to the websocket?
I've also sent an email to support@retellai.com and I've yet to get a response on this.
My current response sent to the websocket for call transfers looks like this;
Copy code
const res: CustomLlmResponse = {
        response_type: "agent_interrupt",
        content: "",
        content_complete: true,
        end_call: false,
        interrupt_id: this.transferInterruptId + 1,
        no_interruption_allowed: true,
        transfer_number: "+12162023041",
      };
I tried following the undocumented method from this https://discord.com/channels/1186424376300679209/1369052565592866836, but it's not working:
Copy code
const res: TransferResponse = {
        response_type: "action",
        action: "transfer",
        transfer: {
          phone_number: this.transferNumber,
          from_number: call.from_number,
        },
        content_complete: true,
        content: "",
        interrupt_id: this.transferInterruptId + 1,
      }
Relevant call_ids: call_a652244d1fbe1cf88480e74f466 call_0db3a3e2652703124359b8d9006 call_9b96fb042b5a789a6fca9493925
What I'm trying to achieve is something like this transfer call functionality on Retell's platform: