genetic-orange•2w ago
API tool call - return array, how to format responses to variables
Hi,
I have customer lookup with phone number working via make.com and an airtable lookup for the customer and it returns dynamic variables i can use in the call
but now trying to do direct to zammad and lookup the customer details. I actually send the request find and get the data but having trouble at the step assigning it to dynamic variables for vapi on the return.
In make, i could just map those in the return web hook, but in this zammad api call it returns a full body and i have no idea how to format those to dynamic variables, have tried loads of ways with request body and array and aliases but no luck.
I have attached my postman output, i will also attach my tool and logs output
call ID - with the output
c1abfc1d-caaa-4986-91c1-b82b6d9e49c3




3 Replies
Hi there,
Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST).
We’ll get back to you as soon as possible during our normal business hours.
If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly.
Warm regards,
Vapi
Customer Support Team
Vapi
Customer Support Team
genetic-orangeOP•2w ago
it returns the body of my zamad customer lookup but doesnt pass variables
i want to be able to map fields from zamad like firstname to {{customer_name}} etc
i tried a few ways in the tools , chatgpt telling me I need to make the response body - array and make it 'body' then create teh aliases to map firstname to customer_name but doesnt seem to work, have been testing by calling and it just says hello body firstname
i tried a few ways in the tools , chatgpt telling me I need to make the response body - array and make it 'body' then create teh aliases to map firstname to customer_name but doesnt seem to work, have been testing by calling and it just says hello body firstname


genetic-orangeOP•2w ago
boom - managed to get it going
after all that, i was using bolt.new AI to help troubleshoot, chatgpt was just going in circles
the solution was to delete the response body and in aliases change to [0].firstname
ii was initnally trying body[0].firstname and that didnt work.
After I also added teh response body like this in pic, but didnt change anything worked before without so not sure if needed
in the call logs, teh tool still showing as red like it failed despite it working, which does mess with my OCD a little. Woud be good to understand that why it is failing and if I can make it green just to know teh API call is working perfectly.
call id - 083c1de2-694c-432b-897d-bcd47447386e
