Artur Pires
09/05/2025, 1:46 AMVapi Support Bot
09/05/2025, 1:48 AMyaml
caller_name: {{ $[0].name }}
Make sure this alias is set in your output schema or variable extraction section. This will extract the name from the first object in your response array and make it available as {{caller_name}} for your assistant to use. If the variable is still missing, double-check the alias path and ensure your output schema matches the response structure.
[See more in the documentation.](https://docs.vapi.ai/workflows/nodes/api-request#usage)
Source:
- [API Request Node Documentation](https://docs.vapi.ai/workflows/nodes/api-request#usage)Vapi Support Bot
09/05/2025, 6:30 PMArtur Pires
09/05/2025, 7:42 PMChiranjeet Mishra
09/08/2025, 2:16 PMcall.ringing event hook which triggers as soon as a call comes in[1](https://docs.vapi.ai/phone-numbers/phone-number-hooks).
Here's how to configure it:
curl -X PATCH "https://api.vapi.ai/phone-number/<id>" \ -H "Authorization: Bearer <auth>" \ -H "Content-Type: application/json" \ -d '{ "hooks": [{ "on": "call.ringing", "do": [{ "type": "say", "exact": "inbound calling detected" }] }]}'
At this point, you can:
1. Access the caller's information in the webhook payload
2. Take actions like:
- Playing a message
- Transferring the call
- Handling the call based on the caller's number