Hi everyone,
I’m new to n8n and I’m working on a project for an assignment. I’m trying to build an outbound AI lead qualification agent, but I’m completely stuck on an error and my deadline is approaching. I would be extremely grateful for any guidance.
My Project Goal: The workflow should:
-
Trigger when a new row is added to a Google Sheet (containing a lead’s name and phone number).
-
Use the
HTTP Requestnode to send an API call to Vapi (on a free trial) to initiate a phone call to that lead. -
The Vapi AI agent then qualifies the lead.
The Problem: The Google Sheets trigger works perfectly and pulls the data. However, the HTTP Request node consistently fails with the error: Problem in node 'HTTP Request' - Bad request - please check your parameters.
My HTTP Request Node Setup:
-
Method:
POST -
URL:
https://api.vapi.ai/call/phone -
Authentication: Generic Credential Type → Header Auth
-
Credential Name:
Authorization -
Credential Value:
Bearer [MY_VAPI_API_KEY]
-
-
Send Body: Toggled ON
-
Body Content Type:
JSON -
Specify Body:
json -
JSON Body Code:
JSON
{ "assistantId": "[MY_VAPI_ASSISTANT_ID]", "customer": { "number": "{{ $json['Phone Number'] }}" } }
What I’ve Already Tried: I feel like I’ve tried everything, including:
-
Generating a brand new Private API Key from Vapi and creating a new credential in n8n.
-
Confirming the
assistantIdis copied correctly from the Vapi URL and pasted in the JSON. -
Using a valid US-based phone number (from TextNow) in the Google Sheet to avoid free trial limitations. The number is in the correct
+1...format. -
Confirming my Google Sheet column is named exactly
Phone Number. -
Deleting and recreating the HTTP Request node from scratch.
I’ve been stuck on this for several days. If anyone can spot a mistake in my setup described above, I would really appreciate the help.
Thank you in advance!




