wet-aquaW
VAPI5mo ago
wet-aqua

Are Dynamic Variables from Tools possible in First Message?

Hi team, we are creating agents via API. I have a use case in which we have location_name stored in a KB. I'd like the agent to use this location_name in the first message via dynamic variable or otherwise. Is this possible?

I've tried the following:
  • set {{location_name}} in first message: Agent says "I'm 's receptionist"
  • make agent call tool at start of conversation with first message in system prompt: Agent says "I' 's receptionist" but only after caller speaks first
    -added the kb directly under Model.Files
Is this possible? Or does the message need to be hard coded upon agent creation via API? TIA
Was this page helpful?