Skip to content

Send Email

The Send Email function allows your voice bot to send an email with the specified content to any destination email address. This allows your voice bot to send requested information to callers such as custom booking links or booking confirmations.

How To Configure Email Sending

The Send Email 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 an email message should be sent. This can be also done as part of information collection/gathering.

For instance: Call this function when the caller provided his first and lastname.

Choose as action Send email as shown below:

Programmatic Execution of a Email Sending

Email sending can also be triggered programmatically in any JS code snippet at any point of time by simply calling the sendEmail() function as show below:

function myFunction(params) {
    // ... some code ...
    sendEmail("yourname@youdomain.com", "This is the email subject", "This is the email body" + params["name"]);
    // ... some code ...
}