Iddle messaging
# support
m
Can you please add IDLE MESSAGES in different languages? Best case scenario is adding a custom iddle message. Worst case scenario - can you at least add iddle message like "Hello?" which will be quite universal for all the languages? It's unacceptable to have only iddle messages in English while the whole conversation is for example in Polish. And those can be very useful. Please consider my request.
v
You can add a custom idle message in Polish (or any language) by configuring the
customer.speech.timeout
hook with your desired text. For example, to add a Polish idle message:
Copy code
json
{
  "hooks": [
    {
      "on": "customer.speech.timeout",
      "options": { "timeoutSeconds": 10 },
      "do": [{ "type": "say", "exact": ["Czy jesteś tam?"] }]
    }
  ]
}
Just replace the message with your preferred text for each language you want to support. This ensures your idle messages match the conversation language and improves user experience. For more details, see the [idle messages documentation](https://docs.vapi.ai/assistants/idle-messages). Source: - [Idle messages documentation](https://docs.vapi.ai/assistants/idle-messages)
c
Either use a hook for this idleMessage or add your own custom idleMessage via the /assistant API endpoint.
Copy code
curl -X PATCH "https://api.vapi.ai/assistant/YOUR_ASSISTANT_ID" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messagePlan": {
      "idleMessages": [
        "Are you still there?",
        "Hello? Can you hear me?",
        "Please let me know if you need anything else."
      ],
      "idleTimeoutSeconds": 10,
      "idleMessageMaxSpokenCount": 3,
      "idleMessageResetCountOnUserSpeechEnabled": false
    }
  }'
m
I am not able to find "messagePlan" in your api docs, has it been removed?
v
Message marked as helpful by @Marcello! 🎉
3 Views