Skip to content

Hang Up

The Hang Up function will instruct your voice bot to hangup the call on his side.

How To Configure Hang Up

The Hang Up function is configured within the tools section of the voice bot. You simply define a new function and define as a description under what condition the voice bot should hangup the call. This can be also done as part of information collection/gathering.

For instance: Call this function if the caller terminates the conversation.

Choose as action Hang up call as shown below:

Programmatic Execution of a Hanging up

A call hang up can also be triggered programmatically in any JS code snippet at any point of time by simply returning an action field with hangup as show below:

function myFunction(params) {
    // some code producing some JS object
    response ...
    response["action"] = "hangup";
    return response;
}