How to make the nuances work...
# prompt-tip
s
hi guys anyone know how to prompt or setup so when using tools ai always says a variation of--- wait a min, hold on, etc and if user is staying silent for quite a while ai can say, hello? you there?, can you hear me?, etc.
r
Hi SamSEOClub, yes this is supported via config. 1. During tool execution: Use Tool Messages on the tool (Dashboard -> Tools -> Select tool -> (Scroll down) Messages. There you can add a custom message that will be spoken during the tool execution. 2. When the user is silent: You can set up idle messages via Assistant Hooks using customer.speech.timeout Here's an example config:
Copy code
curl -X POST "https://api.vapi.ai/assistant" \
  -H "Authorization: Bearer $VAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Support Assistant",
    "hooks": [{
      "on": "customer.speech.timeout",
      "options": {
        "timeoutSeconds": 10,
        "triggerMaxCount": 3,
        "triggerResetMode": "onUserSpeech"
      },
      "do": [{
        "type": "say",
        "exact": [
          "Are you still there?",
          "Can I help you with anything else?",
          "I am here whenever you are ready to continue."
        ]
      }],
      "name": "idle_message_check"
    }]
  }'
Please refer to https://docs.vapi.ai/assistants/idle-messages Thanks, Shaunak
hello
i cannot use azure
how to solve this
r
s
did u figure out the solution? Happy to help