Unable to get name or phone number in my end of ca...
# support
f
Hi , I am unable to get name or phone number in my end of call webhook so that I can update my CRM contact record based on the conversation. Can you please help on this?
v
@Faris Ahamad Of course, I'd be happy to help you with that! To ensure that your end-of-call webhook receives the name or phone number, you'll need to make sure that these details are being sent as part of the webhook payload. Here's what you can do: 1. Check your VAPI configuration to ensure that the webhook for end-of-call events is set up correctly. 2. Verify that the webhook URL is correct and that your server is configured to receive POST requests from VAPI. 3. Ensure that the payload you're sending with your API call includes the
name
and
phoneNumberId
variables. This is typically done in the body of your POST request. Here's an example of how your JSON payload should look:
Copy code
json
{
  "assistantId": "your-assistant-id",
  "assistantOverrides": {
    "variableValues": {
      "name": "John",
      "phoneNumberId": "your-phone-id"
    }
  }
}
Make sure to replace
"your-assistant-id"
with your actual assistant ID and
"your-phone-id"
with the ID of your registered phone number. If you've confirmed that all the above steps are correct and you're still not receiving the name or phone number in your webhook, please provide me with more details about your current setup, and I'll assist you further. If there's any sensitive information, please ensure you don't share it here and instead update your configuration securely.
You can continue this conversation by mentioning me in the message.
f
@Vapi I am using make.com to create the webhook . Do you mean I need to pass phone number as a variable while initiating th ecall so that the end of call payload will also have that? Do I need to do anythig n VAPI dashboard?
v
@Faris Ahamad Yes, that's correct. To ensure that the phone number and other relevant details are included in the end-of-call webhook payload, you should pass them as variables when you initiate the call. This way, the information will be available for your webhook to process and update your CRM accordingly. Here's what you need to do: 1. When you set up the call through VAPI, include the
phoneNumberId
and any other necessary information as variables in your JSON payload. For example:
Copy code
json
{
  "assistantId": "your-assistant-id",
  "assistantOverrides": {
    "variableValues": {
      "name": "John",
      "phoneNumberId": "your-phone-id"
    }
  }
}
2. In the VAPI dashboard, ensure that your webhook for end-of-call events is configured to receive these variables. You might need to check the documentation or settings to ensure that the variables are being passed through. 3. On make.com (formerly Integromat), configure your webhook to expect and handle these variables. Make sure that the webhook is set up to parse the incoming JSON payload and extract the necessary information. By passing the
phoneNumberId
and other variables when initiating the call, and by configuring your webhook receiver to handle these variables, you should be able to receive the information in your end-of-call webhook and update your CRM accordingly. If you have already set up everything and it's not working as expected, you might want to check the logs or any error messages you're receiving for further troubleshooting. If you need more specific assistance, please ask support for more info on this.
f
@Vapi But what is the point in sending my phoneNumberId as I need customer's phone number to be available in the end of call webhook payload?
v
@Faris Ahamad I apologize for any confusion. If you need the customer's phone number to be available in the end-of-call webhook payload, you don't need to send your
phoneNumberId
. Instead, the customer's phone number should automatically be included in the payload of the webhook if the VAPI is configured to do so. To ensure that the customer's phone number is included in the webhook payload, you should: 1. Check the VAPI documentation to confirm that the end-of-call webhook includes the customer's phone number by default. 2. If the documentation confirms that it should be included, but it's not appearing, there may be an issue with the configuration on the VAPI dashboard or within your webhook setup on make.com. Please ensure that your webhook is set up to capture the
from
and
to
parameters, which typically contain the customer's phone number and your phone number, respectively. If you're still having trouble receiving the customer's phone number in the webhook payload, it might be necessary to review the webhook configuration in your VAPI dashboard and on make.com to ensure that all settings are correct. If you need further assistance with the specific configuration or troubleshooting, please ask support for more info on this.
f
@Vapi Please be very specific. Send step by step guidelines with examples
@Vapi hi
s
@Faris Ahamad Sorry for the late response, could you share: - The recent call ID This would really help me figure out what went wrong!
Because of no response closing this ticket.
2 Views