other-emerald
other-emerald3h ago

Help with the apiRequest

I'm not able to return a variable from a request using the apiRequest tool. I see that it's available, but the assistant can't see it or use it. Has anyone ever got this issue? Response Body for the GET Request: [ { "id": 13, "created_at": "2025-08-17T13:44:36.479866+00:00", "name": "Artur", "description": "add post", "phone": "0000000" } ]
No description
1 Reply
Vapi
Vapi3h ago
Try this alias mapping for your API Request tool:
caller_name: {{ $[0].name }}
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. Source: - API Request Node Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥

Did you find this page helpful?