https://retellai.com/?utm_source=discord&utm_medium=seo logo
Dynamic Variable on Intro for multiprompt is not w...
# ❓・bug-report
u
Basically I have a webhook that retrieves the callers name. If it's provided, I want one introduction, if not, I want a different introduction. For whatever reason this is not working reliably. It will constantly ask, "is this {{user_name}}?"" even though the instructions say that if it's blank it should go to a different introduction. Any help with this?
c
Hi @.binreaper ! Kindly share the prompt over DM.
p
do dynamic variables work with the knowledge base? If there are variables in the knowledge base, will those be replaced?
u
Worth noting that counterintuitively, I simplified my intro to just have one response. Before it was like: "If {{user_name}} is available, move to step 2, if not, ask for their name and invoke this function call." By simplifying to just the following, I got the behaviour I wanted, with the name being asked only when it was not avilable, and the function to save it being called with near 100% accuracy. "Introduce yourself and say what you help with succinctly. The callers name is {{user_name}}. Address them as such."