HELP!! - how do i use vapi in ghl to
# general-english
a
HELP!! - how do i use vapi in ghl to answer inbound call? I will use incoming call as a trigger, then a webhook to Vapi, so question is do i use webhook or custom webhook AND what code do i need to put into the webhook?
k
Use GHL’s Inbound Webhook Trigger to capture incoming call data, then add a Custom Webhook Action that sends this data to Vapi’s calls.handle-inbound endpoint with your assistant ID and call details to let Vapi answer and handle the call..
can you tell me exactly what do i need to insert here
sorry, I dont know anything about coding
k
Set the URL to https://api.vapi.ai/v1/calls.handle-inbound, add a header Authorization: Bearer YOUR_VAPI_API_KEY, set Content-Type to application/json, and use a JSON body with your assistantId, from, to, and any contact metadata.
a
what do i put into "key"
and do i use public key or pricate key?
and in the body, what do i put in there?
just my assistant ID?
i
@AW Professor have you tried asking these questions and sharing screenshots to ChatGPT?
a
no but ill try that
k
Include your assistantId, phoneNumberId, and the contact info as:
Copy code
{
  "assistantId": "your-assistant-id",
  "phoneNumberId": "your-phone-number-id",
  "customer": {
    "number": "{{contact.phone}}",
    "name": "{{contact.name}}"
  }
}
Replace placeholders with your actual Vapi values, and ensure the phone number is in E.164 format..
i dont have a number from vapi, im using the number from GHL so do i juse delete that line?
k
Go through video tutorial

https://youtu.be/0vYq831GY2o?si=MLeBCRZsMmGSBs7vâ–¾

3 Views