For some reason it doesnt seem Vapi is retrieving ...
# support
a
Im trying to test a webook that is triggered in the beginning of the call and pulls information from google sheets using Make. For some reason it seems like Vapi isnt actually getting the response data as it just makes up information instead. I have screenshots of the response format I have in Make(it looks like its 100% correct but might have missed something) for sending the information back to vapi and response data for the function its showing in the log(it seems like result is only returning success instead of the actual data im returning in make) attached https://cdn.discordapp.com/attachments/1277905385407119380/1277905385616965673/image.png?ex=66cedda2&is=66cd8c22&hm=1a939814bf2368c849584e15980c6aa88c2c786c45ea62fb9b6b9c0d9b6a0bbf& https://cdn.discordapp.com/attachments/1277905385407119380/1277905385851981824/image.png?ex=66cedda2&is=66cd8c22&hm=b6eea48c9b8bfb2506d9588f4e7c7e589a3d9e38e4832ac77a1d3dd82f06f94a&
v
You can continue this conversation by mentioning me in the message.
@Alozie | AI Voice Developer It sounds like you're experiencing an issue with the integration between VAPI and Make (formerly Integromat) when attempting to pull data from Google Sheets. To assist you effectively, I'll need to review the response format you're using in Make and the log data you mentioned. Could you please provide the response format and the log data so I can take a closer look and help you troubleshoot the issue?
a
here is the response data - { "results": [ { "toolCallId": "call_IPX30zxAkAVXoh4NrnH68c95", "result": "Date of Birth is April 19, 1987" } ] } and here is the log data - { "name": "InLeapData", "role": "tool_call_result", "time": 1724745406923, "result": "Success.", "toolCallId": "call_cLc3jJX8QNqnPbG8HR32dtNX", "secondsFromStart": 6.091 }
@Vapi
v
@Alozie | AI Voice Developer Thank you for providing the response and log data. It appears that the webhook is being triggered correctly, but the issue seems to be with the data being returned from Make to VAPI. The response data you've provided indicates that the result contains a string with the date of birth information, but the log data shows a generic "Success." message without the specific data. This discrepancy suggests that there might be a mismatch in the expected response format between Make and VAPI. VAPI might be expecting a different key or data structure to parse the information correctly. To resolve this, please ensure that the response from Make is structured in the way VAPI expects. If you have access to VAPI's documentation or the webhook setup, check for the expected response format. If the issue persists, you may need to adjust the response in Make to match VAPI's expected format or consult with VAPI's support for further assistance. If you need more specific guidance, please provide additional details about the expected response format according to VAPI's documentation, and I'll do my best to assist you further.
a
@User or @Sahil can you help with this followed documntation pretty closely and it seems like im still getting issue
c
You should map your information and look at some videos. You have most correct.
a
yeah being doing that but havent seen anything that would show me what im doing wrong
s
@Alozie | AI Voice Developer share the call id.
a
Im assuming that's the same value you pass to ToolCallId. Here it is - call_ww61afcbq5n5pKWL2mnZNYFh
s
[1] your server tool call response for given tool call id is
:blue_circle: 11:24:08:162 Server Message Successful. (https://hook.eu2.make.com/8w4geq9317ipbq8futz1atuc4npcdqvm). Response: Accepted
[2] share the correct call id for the above mentioned issue.
TLDR: Response returned by your server is used by Vapi.
a
Not sure whats the ask is ? That was the proper call id which gave me issues. It says message was successful but the Vapi is failing to use the data during call and in my logs result just shows as .Success. See in this screenshot - https://cdn.discordapp.com/attachments/1277905385407119380/1277959700364918877/image.png?ex=66cf1037&is=66cdbeb7&hm=63bcaf275f7ec41fe9e4287eed87cd361d16a2256930c8db31fec54967bca9ef&
s
can you share the call id this is tool call id not the call id.
for call id go to vapi dashboard then call logs from there you can copy call id.
a
ok thanks I see it. Here - c2c0bf7a-f51c-48be-881b-971586fab8ec
@Shubham Bajaj did you ever see what the issue was
s
yes thanks for sharing the call id, now i can look into the issue. try using this response format and it will work.
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_9",
      "result": "<insert-your-result-to-be-stored-in-context>",
      "message": {
        "type": "request-complete",
        "role": "assistant",
        "content": "<insert-your-message-to-be-spoken>"
      }
    }
  ]
}
a
still didnt work and I used what you mentioned @User \
s
don't set the content as empty content will be spoken by the assistant so put your result to be spoken out in the content.
a
c
Curious on where you got that structure - it looks super wrong - or I have ever seen it. Why are you putting "request complete"?
Then you are also putting the date of birth twice with your (6) module. Super error.
Looks like you are trying to combine what you saw above this and that is wrong . This is the actual result response. Assistant Request - is for what the assistant says when its triggered, failed, etc. https://cdn.discordapp.com/attachments/1277905385407119380/1279121623932338188/Screenshot_2024-08-30_095134.png?ex=66d34a58&is=66d1f8d8&hm=51e02b195f328bff2f032fe86c5e8e2695dc21173f3d7e65cf217f18d403b40f&
a
that was @Shubham Bajaj seem to mention he wanted me to add. I orginally had it like this
ok and this works for you ? Look similar to what I did before but let me check if im missing something
c
I would not share anything that does not work. Not sure if you looked at other videos but there is no format like this. It also does not match the docs to be technical.
a
Ok thanks so much. Mine looks formatted just like yours is but I must be missing something. Will take a look see what Im missing. At least I know that format is suppose to work https://cdn.discordapp.com/attachments/1277905385407119380/1279129693777428612/image.png?ex=66d351dc&is=66d2005c&hm=82fa8d23cd2bed928c8e06b1f71afa2da8f1335182cab1c5a5691cf7725ed173&
c
Are you sure its actually going down that route for the automation?
c
Thats your only response or you have others? if so do they trigger to or no?
s
@Alozie | AI Voice Developer check your DM.
sorry the typo here it was
empty
@Alozie | AI Voice Developer
3 Views