https://retellai.com/?utm_source=discord&utm_medium=seo logo
Linking RetellAI WebSocket Requests with Call Deta...
# ❓・bug-report
i
Hi all, I'm developing an app based on the python-backend-demo, handling both inbound and outbound calls via our own Twilio server and aiming to log conversation details for each user. My challenge is that WebSocket requests from the RetellAI server don't include the caller's phone number, complicating the process of associating these calls in our database for transcript storage. Any advice or workaround on how to bridge this gap?
r
@Weijia - Support@Retell cc
i
To clarify the issue more, the problem is RetellAI WebSocket request only includes a RetellAI-specific call_id, lacking the Twilio call_sid needed to fetch call details from Twilio.
w
You can add to_numner and from_number when calling register-call, and you can get the info from get-call API. Would that unblock you? https://docs.retellai.com/api-references/register-call
a
Am I right in assuming that the metadata I pass to register_call will only available from get-call after the call has concluded? Is there a way to get access to the metadata during the call? More specifically, right now I'm just looking for a way to pass the twilio sid to a function call the LLM might initiate.
s
@gopi_vaibhav check this out
d
My workaround for this was to create a simple Make.com automation and set it up as a function: Function Name: get_call_info Description: Get the phone number of the current caller. Call this function if you want to know the caller's current phone number, such as to suggest as a callback number when collecting contact information. Other call details are also available, such as the number being called and call direction. Your URL: [get it from the webhook after importing the attached blueprint] Parameters: [blank]
u
@azuremis