Send message in portuguese after 8 seconds of cust...
# support
ω
How can I send a message after the customer hears the initial message but doesn´t say anything in about 8 seconds?
a
HeyΩ Thank you for creating the ticket! A member of our team will reach out to you shortly.
v
@Ω ΣκοτάδιΣεληνόφωτο Ω To implement a feature where a message is sent after the customer hears the initial message but doesn't respond within 8 seconds, you would typically set up a timer or delay function in your voice application's code. After the initial message is played, start the timer. If there is no response detected within the 8-second window, the application would then trigger the follow-up message. Here's a general outline of how you might set this up: 1. Play the initial message to the customer. 2. Start an 8-second timer. 3. Listen for a response from the customer. 4. If a response is detected, proceed with the interaction. 5. If no response is detected within 8 seconds, send the follow-up message. If you need assistance with the specific code or implementation details, please provide the programming language or platform you're using, and I can give you more tailored advice. If you're looking for a built-in feature of VAPI to handle this, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
s
@Ω ΣκοτάδιΣεληνόφωτο Ω You need to update your assistant messagePlan.idleMessages for sending the message in non-english language, it's only doable for now using API.
Copy code
curl -X PATCH https://api.vapi.ai/assistant/id \
     -H "Authorization: Bearer token" \
     -H "Content-Type: application/json" \
     -d '{
  "messagePlan": {
    "idleMessages": [
      "insert-your-message-here-1",
      "insert-your-message-here-2"
    ],
    "idleMessageMaxSpokenCount": 3,
    "idleTimeoutSeconds": 8
  }
}'
ω
Worked, thanks!
2 Views