Anyone know if for chat sessions, how can you have the session intiate a tool call before starting the chat?
I'm trying to have the AI call a lookup function to my internal database so it is aware of the customer. This function uses customer phone number. I am passing this to the session and the number is being assigned. I tried to use customer.number but that didn't work. It kepy asking me to provide number. Once I provided number it was able to look me up.
I then tried to pass the number as an variableValue of {{phone}} when each chat is created and it still didn't work. I asked it if it knew my number and it replied no. If I gave it my number it was able to look me up.