Update the node server sdk
# support
j
The low confidence hook is not working in the node server sdk - could we please get it updated? Thanks!
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
v
To ensure the low confidence hook works, your assistant configuration should include the following snippet:
Copy code
json
{
  "hooks": [
    {
      "on": "assistant.transcriber.endpointedSpeechLowConfidence[confidence=0.2:0.4]",
      "do": [
        {
          "type": "say",
          "exact": "Could you please repeat that?"
        }
      ]
    }
  ]
}
If this is already set and still not working in the Node.js server SDK, please report the issue with your configuration and SDK version to support for further investigation, as the documentation does not mention a known SDK bug for this hook yet. See the [assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks) for more details. Source: - [Assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)
j
im using that exact syntax and im on the latest sdk version 0.11.0
c
Can you share the exact code snippet you are using? and the error it's throwing in this thread?
j
This is the code snippet { "hooks": [ { "on": "assistant.transcriber.endpointedSpeechLowConfidence[confidence=0.2:0.4]", "do": [ { "type": "say", "exact": "Could you please repeat that?" } ] } ] }
And this is the exact error it's throwing
Copy code
error: "Status code: 400\nBody: {\n  "message": [\n    "assistant.each value in hooks.property do should not exist"\n  ],\n  "error": "Bad Request",\n  "statusCode": 400\n}"
failed to wait for command termination: exit status 1
c
Can you send your assistant config payload?