Make.com and Vapi Response Problem
# support
s
Although response is returning in make.com and vapi as well but why agent says idon't have response { "role": "bot", "time": 1748253688031, "source": "", "endTime": 1748253693730.9995, "message": "Thank you for calling Victoria Clinic. This is Malik, your health care coordinator. How may I help you today?", "duration": 5619.99951171875, "secondsFromStart": 2.32 } { "role": "user", "time": 1748253694411, "endTime": 1748253697071, "message": "Yes, Malik. Can you get the services for me?", "duration": 2660, "secondsFromStart": 8.7 } { "role": "bot", "time": 1748253697961, "source": "", "endTime": 1748253706601, "message": "1 moment. I couldn't retrieve the services information at the moment. Could you please specify the type of service or assistance you are looking for?", "duration": 7460, "secondsFromStart": 12.25 } { "role": "tool_calls", "time": 1748253703952, "message": "", "toolCalls": [ { "id": "call_OoYam7NXkCme6oYfgvtQnVr7", "type": "function", "function": { "name": "GetServices", "arguments": "{}" } } ], "secondsFromStart": 9.811 } { "name": "GetServices", "role": "tool_call_result", "time": 1748253705158, "result": "No result returned.", "toolCallId": "call_OoYam7NXkCme6oYfgvtQnVr7", "secondsFromStart": 11.017 } https://cdn.discordapp.com/attachments/1376501899947282432/1376501900144545832/image.png?ex=68358ecb&is=68343d4b&hm=de4f263c06680184e8369a1e446c2aa9d9f12637e42169dce5c6dd3890ea9374& https://cdn.discordapp.com/attachments/1376501899947282432/1376501900391747604/image.png?ex=68358ecb&is=68343d4b&hm=450747815b07fdc3d2f2babb97794824e4969c3b4169c240123fa90692e85bde&
v
Your agent says "I don't have response" because the tool call result from Make.com is not in the format Vapi expects. You must return a JSON response like this:
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_OoYam7NXkCme6oYfgvtQnVr7",
      "result": {
        "practiceID": "...",
        "practiceName": "...",
        "providingServices": [...]
      }
    }
  ]
}
Update your Make.com scenario to send this structure, and Vapi will recognize and use the response in the conversation. See [Vapi custom tools response format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context) for details. Source: - [Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context)
s
Now i am returning like this |{ "results": [call_eLzDpyhMK6sDReuJ1B61faj6 "result": {{"practiceID":"438C06F0-FE50-4B81-B9C7-1D569A2D7427","practiceName":"Victoria Clinic","providingServices":[{"serviceID":"09991064-7042-45F0-A37F-57B8128CC82B","serviceName":"Standard Consult","serviceTotalPrice":100,"genders":["All Genders"],"fromage":"1","toage":"150","indiciReasonForContactID":"25","indiciReasonForContactTitle":"Standard Consult"},{"serviceID":"89f4f34f-65a4-4b19-9e1b-6dec31b3c892","serviceName":"Driving License Medical","serviceTotalPrice":200,"genders":["All Genders"],"fromage":"16","toage":"150","indiciReasonForContactID":"7957","indiciReasonForContactTitle":"DRIVERS LICENSE"},{"serviceID":"376f4861-5f5b-4025-a08c-d23196a14cca","serviceName":"Visa Medical","serviceTotalPrice":220,"genders":["All Genders"],"fromage":"1","toage":"150","indiciReasonForContactID":"8803","indiciReasonForContactTitle":"Visa Medical"},{"serviceID":"b9f50031-949f-4d9c-9c46-79c96e3aaba2","serviceName":"Erectile Dysfunction - Sildenafil Consult","serviceTotalPrice":15,"genders":["All Genders"],"fromage":"35","toage":"100","indiciReasonForContactID":"8804","indiciReasonForContactTitle":"Erectile Dysfunction"}]}}]} but still
v
It looks like the issue is with the structure of the JSON response you're sending from Make.com. Vapi expects the "results" array to contain objects, each with a "toolCallId" and a "result" property. In your example, the response inside "results" doesn't match this format—it should look like this:
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_eLzDpyhMK6sDReuJ1B61faj6",
      "result": {
        "practiceID": "438C06F0-FE50-4B81-B9C7-1D569A2D7427",
        "practiceName": "Victoria Clinic",
        "providingServices": [
          {
            "serviceID": "09991064-7042-45F0-A37F-57B8128CC82B",
            "serviceName": "Standard Consult",
            "serviceTotalPrice": 100,
            "genders": ["All Genders"],
            "fromage": "1",
            "toage": "150",
            "indiciReasonForContactID": "25",
            "indiciReasonForContactTitle": "Standard Consult"
          }
          // ...other services
        ]
      }
    }
  ]
}
Make sure your response is valid JSON and matches this structure exactly, including the correct toolCallId. Once you update your Make.com scenario to return this format, Vapi should recognize the response and your agent will be able to use the data in the conversation. Source: - [Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context)
Your response is not valid JSON and does not match the format Vapi expects. Update your Make.com scenario to return the following structure (replace the IDs and data as needed):
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_eLzDpyhMK6sDReuJ1B61faj6",
      "result": {
        "practiceID": "438C06F0-FE50-4B81-B9C7-1D569A2D7427",
        "practiceName": "Victoria Clinic",
        "providingServices": [
          {
            "serviceID": "09991064-7042-45F0-A37F-57B8128CC82B",
            "serviceName": "Standard Consult",
            "serviceTotalPrice": 100,
            "genders": ["All Genders"],
            "fromage": "1",
            "toage": "150",
            "indiciReasonForContactID": "25",
            "indiciReasonForContactTitle": "Standard Consult"
          }
          // ... more services
        ]
      }
    }
  ]
}
Make sure the response is a valid JSON object, not a string, and that the Content-Type is set to
application/json
.
See [Vapi custom tools response format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context) for details. Source: - [Vapi Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context)
s
@Shubham Bajaj can you tell me from previous 6 months it was working fine
v
I understand your question about whether this integration was working fine for the previous 6 months. Based on the information available, I can confirm that the current issue is due to the JSON response format not matching what Vapi expects. The required structure is a valid JSON object with a "results" array, where each item includes both a "toolCallId" and a "result" property. Unfortunately, I don't have any details about the historical behavior of the integration or whether there have been any changes to the response format requirements in the last 6 months. If you have any more details or specific examples from before, feel free to share them! Source: - [Vapi Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context)
There is no official documentation explaining why your previous response format worked, but Vapi now requires a strict JSON structure for tool call results. To ensure your integration works, update your Make.com scenario to return exactly this format:
Copy code
json
{
  "results": [
    {
      "toolCallId": "call_eLzDpyhMK6sDReuJ1B61faj6",
      "result": {
        "practiceID": "438C06F0-FE50-4B81-B9C7-1D569A2D7427",
        "practiceName": "Victoria Clinic",
        "providingServices": [
          // ... your services here
        ]
      }
    }
  ]
}
Make sure the response is valid JSON and the
Content-Type
is set to
application/json
.
See the [Vapi custom tools response format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context) for details. Source: - [Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context)
s
@everyone
k
Can you send me latest call_id?
s
7fad0bf3-133a-4862-9632-4af94b753204
v
Thanks for sharing the latest call_id: 7fad0bf3-133a-4862-9632-4af94b753204. If you need any further help with this, just let me know!
To resolve your issue, update your Make.com scenario to return this exact JSON structure:
Copy code
json
{
  "results": [
    {
      "toolCallId": "7fad0bf3-133a-4862-9632-4af94b753204",
      "result": {
        "practiceID": "438C06F0-FE50-4B81-B9C7-1D569A2D7427",
        "practiceName": "Victoria Clinic",
        "providingServices": [
          {
            "serviceID": "09991064-7042-45F0-A37F-57B8128CC82B",
            "serviceName": "Standard Consult",
            "serviceTotalPrice": 100,
            "genders": ["All Genders"],
            "fromage": "1",
            "toage": "150",
            "indiciReasonForContactID": "25",
            "indiciReasonForContactTitle": "Standard Consult"
          }
          // ... more services
        ]
      }
    }
  ]
}
Be sure your response is valid JSON and the
Content-Type
header is set to
application/json
. This will allow Vapi to process your tool call result correctly. See: [Vapi Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context) Source: - [Vapi Custom Tools Server Response Format](https://docs.vapi.ai/tools/custom-tools#server-response-format-providing-results-and-context)
k
Copy code
{
        "role": "tool_calls",
        "time": 1748255036816,
        "message": "",
        "toolCalls": [
          {
            "id": "call_eLzDpyhMK6sDReuJ1B61faj6",
            "type": "function",
            "function": {"name": "GetServices", "arguments": "{}"}
          }
        ],
        "secondsFromStart": 9.81
      },
      {
        "name": "GetServices",
        "role": "tool_call_result",
        "time": 1748255037877,
        "result": "No result returned.",
        "toolCallId": "call_eLzDpyhMK6sDReuJ1B61faj6",
        "secondsFromStart": 10.871
      },
Is GetServices expecting any arguments or does it return a value even with empty arguments? You may need to send an argument or configure the GetServices on [make.com](http://make.com) to return values in an acceptable format like JSON. For more detail on the issue, can you send the configuration of your GetServices function in [make.com](http://make.com) so we can better understand how it works.