jlehmane
05/19/2025, 7:16 PMVapi Support Bot
05/19/2025, 7:18 PMjson
{
"name": "{{name}}",
"phone": "{{customer.number}}",
"reason": "{{reason}}"
}
Make sure your agent's flow or prompt is set to call the tool after all variables are captured. If you need conditional logic (trigger only after all are present), you may need to guide the agent's prompt accordingly, as the Agent Builder does not natively support complex triggers like the Workflow Builder does.
Sources:
- [Custom Tools Guide](https://docs.vapi.ai/tools/custom-tools)
- [Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)Aditya
05/20/2025, 6:56 PM