API - enabling assistant to end the call
# support
p
how can I enable the assistant to end the call by itself when I’m creating it via api?
v
@pawel_magdanski To enable the assistant to end the call by itself when creating it via the API, you'll need to set the appropriate property in the assistant configuration object. This property is typically something like
autoEndCall
or
endCallAutomatically
. You would set this property to
true
in the configuration object and then pass this object to the
.start()
method. Here's an example of how you might configure this:
Copy code
javascript
const assistantConfig = {
  // ... other configuration properties ...
  autoEndCall: true // This is a hypothetical property name
};

// Then you pass this configuration to the start method
assistant.start(assistantConfig);
Please note that the exact property name and method to enable this feature may vary depending on the specifics of the VAPI you are using. If you need the exact property name or method for VAPI, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
you can trigger the endCall function using prompting.
3 Views