Skip to main content

$dialer.setCallResult

This method sets the result achieved by the call.

caution
It is not intended to be used from scripts for inbound calls and only works properly for call campaigns.

Syntax

The method accepts a string describing the call result:

$dialer.setCallResult("Client is happy");
tip
This result will be displayed in the Call result column in Analytics > Dialogs > Sessions, as well as in call campaign reports.

Usage details

  1. If $dialer.setCallResult is called several times throughout one session, the result which was set the last time will be assigned to the call.

  2. $dialer.setCallResultAccepted and $dialer.setCallResultRejected are supplementary methods which set the result to ACCEPTED or REJECTED, respectively.

How to use

Consider the following script where the client is asked to confirm their subscription.

state: Offer
a: Should I subscribe you to our newsletter?

state: Accepted
intent: /yes
a: Thank you for your time! Have a good day!
script:
$dialer.setCallResultAccepted();
$dialer.hangUp();

state: Rejected
intent: /no
a: Sorry to hear that. Take care!
script:
$dialer.setCallResultRejected();
$dialer.hangUp();

state: Unsure
intent: /maybe
script:
$dialer.setCallResult("Client is unsure");
# Explanation of benefits, suggestion to call back later...