https://retellai.com/?utm_source=discord&utm_medium=seo logo
run endpoint in first message
# ❓・bug-report
y
i need to run the endpoint in first of call to get user info i try to update to run it in the first of prompt the retell agent id agent_9288b5d78d16d4433ca905d610
o
Hello @Youssef Degachi , you can do this by putting this under the # Guardrails you have - ALWAYS run this function at the beginning of the call "get_user_info_by_phone"
but keep in mind that you are using the user_number variable which is only will have a value during phone calls , not web calls
y
okay thanks i try this ## Task 1. Run the function 'get_user_info_by_phone' to look up the caller by their phone number. and it's now work i test it many times and always work and if i get any issues i will try as you said this in prompt or use call_inbound thanks for your helping and i'm sorry for bother you
o
I would rather use the inbound because it will always work, but if this works for your use case then its fine.
y
i relly want to do it but will add new function incode but this is not the problem the problem is that i can't test the inboud call because i don't have SIM and the agent still don't have his own number we still didn't buy for him a phone number