AI Evy
03/09/2026, 7:17 PMAI Evy
03/09/2026, 7:18 PM{{last_name}} variable. [(3) ]()
Here's how to set it up:
1. Create a Custom Function that receives the {{last_name}} value as an argument
2. Use a lookup table (database, Google Sheet, or CRM) that maps last names to phone numbers
3. Return the phone number from your webhook, then use that value as a dynamic variable for the transfer destination
Setting Up the Transfer:
In the Transfer Call tool configuration, set the transfer number to be a dynamic variable that gets substituted at runtime. [(1) ]() [(2) ]()
For example, if your custom function stores the result in {{transfer_number}}, you would use {{transfer_number}} as the transfer destination.
This approach works well because:
- Each call is independent, so multiple callers can be transferred simultaneously to different agents/numbers [(3) ]()
- You can configure multiple transfer numbers and route calls based on user intent
- The agent detects the caller's request and transfers to the correct number without hardcoding all numbers in the promptAI Evy
03/09/2026, 7:18 PMAI Evy
03/09/2026, 7:18 PM