maximum call duration on workflow
# support
j
Hi, Whatever I do I cannot increate the limit on the incoming call. There are no settings anywhere and when I try to use the API it gives and error. Any idead anyone ?
c
Hi Jonathan Carter, To manage the maximum call duration in your workflows, you can configure the
maxDurationSeconds
setting using the Vapi API. Make sure that you're specifying this setting correctly in your call setup. If you're encountering errors, it might be due to incorrect API usage or other configuration details. Ensure that your API request includes the
maxDurationSeconds
parameter, and the value should be an integer representing the desired duration in seconds. If you're still facing issues, you might want to check for any service-specific limitations or verify that the API token and permissions are correct. If needed, review relevant setup in the documentation for [phone calls](https://docs.vapi.ai/calls/customer-join-timeout) and ensure that you have the correct settings in place. If this does not work please do let us know.
j
When I use the API to update my workflow It does not recognize the maxDurationSeconds as a parameter.
On Assistants , it works, but there is also a field in the UI for assistants to set it .
c
Hello, Thanks for reaching out to us. We are sorry for the inconvenience. Can you give more details about your concern? Your Org ID, email address and other details that will help us pinpoint your account and to look further into it? We will investigate further and we appreciate your kind understanding and patience.
j
yes my org id is 1af4558c-ef88-46e5-9c49-1bf4dce3b51a
any updates?
c
Hi Jonathan Carter, Can you try to adjust the maximum call duration in a workflow, you will need to use backend configurations as this setting isn't typically adjusted through a UI change. Here are steps to guide you: 1. **Review Workflow and Plan Features**: Ensure your current plan supports extended call durations. This might require confirmation with your account manager if not clear in your subscription details. 2. **Configure via API**: Use the appropriate API settings to set
maximumCallDuration
during call requests. This should be part of your call setup in the workflow configuration. 3. **Check Plan and Provider Limits**: Double-check there's no constraint from your telephony provider regarding call durations, such as SIP trunk settings. For any necessary API configuration details, reviewing the Vapi [Call End Reasons Guide](https://docs.vapi.ai/calls/call-ended-reason) could help identify any related error codes or reasons why calls might end prematurely, such as
exceeded-max-duration
. If you still encounter difficulties or errors, please let us know
j
Hi, I don't know where to see if my plan includes extended call duration. I am on a "pay as you go" plan I think , I cannot see any subscription options in the VAPI system other that contacting sales. I basically need my entire account to be set to 20m max for all workflows. Can you do this for me a.s.a.p. because it is holding back my live date and that means ultimately that VAPI are missing out on revenue.
c
Modifying the maxDuration is bit tricky on workflows since it is not a property of the endpoint, but you can attempt to modify this property when starting a call through the /call endpoint
Copy code
{
  "assistantOverrides": {
    "maxDurationSeconds": 1800,  // 30 minutes
    "variableValues": {
      // your other variables
    }
  }
}
j
This workflow is an incoming call, is there a way to integrate this with an incoming?
Can I add this as a return from the webhooks, for instance
c
For inbound calls you may not be able to adjust the maxDurationSeconds value for workflows at the moment. If you would like to see that feature on our platform, feel free to add it to the feature request list here -->
j
c
Glad you were able to get this resolved. If anything else comes up or you need further assistance, we’re here to help.