dual-salmonD
VAPI17mo ago
dual-salmon

Tool call successfull but agent stops to speak

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:
"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:

{
    "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?
Was this page helpful?