@RodDem
const toolCall = $input.first().json.body.message.toolCalls[0];
const args = toolCall.function['arguments'];
return [{
json: {
city: args.City,
dob: args.DOB,
email: args.Email,
state: args.State,
zipcode: args.Zipcode,
lastName: args['Last Name'],
firstName: args['First Name'],
streetAddress: args['Street Address']
}
}];
This fixes it, Just paste this in a code node after your webhook, you can also just paste this to claude, or chat gpt, to tailor it to your vapi arguments