Tool call successfull but agent stops to speak
# support
o
Hey, I used the new tools from vapi and connected them to make. Make is triggered as expected and also the webhook responses with 200 to vapi. The problem is that the agent stops to speak and I have to ask again before it shares the result with me: my tool call via api:
Copy code
"tools": [
        {
          "type": "function",
          "messages": [
            {
              "type": "request-start",
              "content": "Ich checke den Kalender"
            },
            {
              "type": "request-complete",
              "content": "Alles klar hier einige Termine"
            },
            {
              "type": "request-failed",
              "content": "Ich konnte leider keinen Termin finden"
            },
            {
              "type": "request-response-delayed",
              "content": "Einen Moment noch",
              "timingMilliseconds": 10000
            }
          ],
          "function": {
            "name": "check_availability",
            "parameters": {
              "type": "object",
              "properties": {
                
              }
            },
            "description": "Use this function do share available times for a meeting."
          },
          "async": false,
          "server": {
            "url": "<URL>"
          }
The webhook response from make:
Copy code
{
  "results": [
    {
      "toolCallId": "call_qHVVdsB1zuYMRMj66qsNWZtE",
      "result": "Dienstag: 10:00-15:00, Mittwoch: 14:00-15:00"
    }
  ]
}
The agent reads the message from
request-complete
message but stops right after that. Anyone who can help here?
v
message has been deleted
@Onur Hello! It seems like you've set up your tool correctly and are receiving the expected webhook response from Make. However, the issue where the agent stops speaking before sharing the result might be related to how the response from Make is being handled. When you receive the webhook response, you should ensure that the result is being processed and communicated back to the user. If the agent stops speaking, it could be due to a delay in processing the response or an issue with the flow of information back to the user. To address this, you might want to check the following: 1. Ensure that the response from Make is being captured and parsed correctly by your VAPI implementation. 2. Verify that the agent's response logic is set up to wait for the webhook response and then continue the conversation by sharing the results with the user. 3. If there's a significant delay in the webhook response, consider using the
request-response-delayed
message to inform the user to wait a bit longer. 4. Check for any errors or exceptions in your code that might be causing the agent to stop unexpectedly. If you've verified all of these and the issue persists, it might be helpful to look into the logs or debugging information to pinpoint where the breakdown is occurring. If you need further assistance, please don't hesitate to reach out to support for more detailed troubleshooting. Would you like me to send a notification to our team to look into this issue further for you?
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
o
Here is the call id 5fc079b4-beda-4e08-9202-afec615fdfe4
okay it takes very long to get a response more then 10 seconds after the webhook was successfull
s
if you want assistant to speak the tool call response then remove the request-complete message type from tools array.
if it's something else do lmk.
o
ah nice thanks worked!