Askcaller (Digital Scripts)

The Askcaller action icon - a chat bubble with a question mark on a yellow-green background.

Requests information from a digitalClosed Any channel, contact, or skill associated with Digital First Omnichannel. contact using any digital direct or private messaging application, such as Facebook Messenger or WhatsApp, as well as Digital First Omnichannel SMS and chat. For example, use this action to have the contact provide you an account number, their name, or any other useful information.

This action pauses the script until it receives a reply. The script will wait for a response from the contact, even if it takes days or weeks. This supports the asynchronous nature of digital communications.

This action requires Digital First Omnichannel.

Supported Script Types

The icon for Digital scripts - purple background with the outline of a monitor and phone.
Digital

The Askcaller action has separate help pages for the other supported script media types: SMS or chat.

Properties

Property Details
Message The text that is sent to the selected target when this action executes. You can use variables in this field.  If you're sending a prompt sequence with rich media content, this field must be a JSON object.
MessageFormat The format the message is sent in. Select PromptSequence if the message is sent in JSON. The default is Text.
ResultVar The variable name that is created and holds returned information. For example, if the contact enters their account number as 123456, then the variable holds 123456.
TimeoutSec The amount of seconds that the action waits to execute before timing out. The contact has this amount of time to enter information into their chat window.

Branches

Branch Details
Default Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.
Timeout Path taken if there is no response for the number of seconds specified.
CallerResponded Path taken if the contact provides a response.
Error Path taken when the action fails to execute properly. For example, when there is an unexpected problem (for example, poor connectivity, syntax errors, and so forth). The _ERR variable (with a single underscore character) should be populated with a condensed explanation of the problem.

Tips and Tricks

Digital Script Example

In the following script, the AskCaller action requests an account number from the contact. If the contact provides an account number, they are passed on to an agent through the Reqagent action. Currently, using Reqagent with Askcaller in digital scripts requires the assistance of NICE CXone Expert Services and must include a Snippet action.

If the contact does not respond, the interaction is looped back to the account number prompt. This occurs up to the number of times specified in the Loop action. Each loop sends a message explaining that the system did not receive a response from the contact. If no response is received after the specified number of loops, a different message is sent to inform the contact that no account number was received, then the interaction ends.

An example digital script that uses the Askcaller action.

Download this script.