How to Customize Assistant's Hold Duration
# support
s
Hello, Vapi Support. Right now, all the Assistant is doing is holding for about 2 minutes and then ends the call. But we need it to hold for at least 1 hour before dropping the call. Let me know if you need additional information
v
To increase the assistant's hold duration to 1 hour, set the
maxDurationSeconds
property to
3600
in your transfer assistant configuration. Here’s an example:
Copy code
json
"transferPlan": {
  "mode": "warm-transfer-experimental",
  "transferAssistant": {
    "firstMessage": "Hello, I have a customer on the line. Are you available to take this call?",
    "maxDurationSeconds": 3600
  }
}
This will keep the customer on hold for up to 1 hour before the call is dropped. Note: This works with Twilio, Vapi numbers, and SIP trunks only. For more details, see the [assistant-based warm transfer documentation](https://docs.vapi.ai/calls/assistant-based-warm-transfer). Source: - [Assistant-based warm transfer documentation](https://docs.vapi.ai/calls/assistant-based-warm-transfer)
s
This looks like a JSON snippet. Where exactly do I put this? The only place in my build that involves JSON is in my webhook from GHL that triggers the call in Vapi. So do I put it there?
c
Hi, The 2-minute drop is because Vapi defaults
maxDurationSeconds
to 120 seconds on the transfer assistant. You just need to bump it to 3600 (1 hour). If you set up your assistant in the Vapi dashboard: Go to your assistant → find the
transferCall
tool → inside the destination config, find
transferPlan
transferAssistant
and set
maxDurationSeconds
to
3600
. If your GHL webhook sends the assistant config to Vapi: Yes, the change goes in the JSON payload. Find the
transferCall
tool in your structure and add the field here:
Copy code
{
  "type": "transferCall",
  "destinations": [
    {
      "type": "number",
      "number": "+1234567890",
      "transferPlan": {
        "mode": "warm-transfer-experimental",
        "transferAssistant": {
          "firstMessage": "Hello, I have a customer on the line. Are you available?",
          "maxDurationSeconds": 3600
        }
      }
    }
  ]
}
The key field is
destinations[].transferPlan.transferAssistant.maxDurationSeconds
. Best, Vapi Support
s
This worked! Thank you!
s
no worries!
if you face is further issues, feel free to create a new ticket.