Issues connecting n8n and Vapi
# support
m
I am trying call Vapi as an outbound agent through n8n. I set up an http request, that should call on the Vapi Assistant, whenever a new lead comes in. For some reason that node isn't working, and the same error is recurring. So, my question is how do configure this node to call the Vapi Assistant, to make outbound calls? https://cdn.discordapp.com/attachments/1434999618864677026/1434999619691216988/image.png?ex=690a5f0a&is=69090d8a&hm=ce8da064cd156b599ce504912c6cc9b1119c4fc5bd548ab06fe3588370366e38& https://cdn.discordapp.com/attachments/1434999618864677026/1434999620810969158/image.png?ex=690a5f0a&is=69090d8a&hm=ec2bf85e097bb418d06d74f25d80393fd2be5246201da99acbf7bae9da523562&
v
Your n8n HTTP Request node should use the following configuration to call the Vapi Assistant for outbound calls: - Method:
POST
- URL:
https://api.vapi.ai/call
- Headers: -
Authorization: Bearer YOUR_API_KEY
-
Content-Type: application/json
- Body (JSON):
Copy code
json
{
  "assistantId": "YOUR_ASSISTANT_ID",
  "phoneNumberId": "YOUR_PHONE_NUMBER_ID",
  "customer": {
    "number": "+18435855013"
  }
}
Replace the placeholders with your actual values. This structure matches the required API format and should resolve the "resource not found" error. See the [Vapi outbound calls documentation](https://docs.vapi.ai/phone-calling/outbound-calls) for more details. Source: - [Vapi Outbound Calls Documentation](https://docs.vapi.ai/phone-calling/outbound-calls)
m
Thank you that worked!
m
Hi, when i use a Public API Key then i keep the error in n8n " Problem in node ‘HTTP Request‘ Authorization failed - please check your credentials"
2 Views