Askcaller (Digital Scripts)

This help page is for Desktop Studio. This information is also available for CXone Studio.

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

Requests information from a contact using any supported digitalClosed Any channel, contact, or skill associated with Digital Experience. direct or private messaging application, such as Facebook Messenger or WhatsApp, as well as Digital Experience SMS and chat. For example, you can 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 waits 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 Experience.

Dependencies

  • This action requires Digital Experience.
  • Before working with digital scripts, learn about the differences between traditional ACD scripts and digital scripts.
  • You can use rich mediaClosed Elements in digital messaging such as buttons, images, menus, and option pickers. in the message to the contact. You have two options: 
    • Create rich message templates on the Points of Contact Digital page in CXone. Use the GETRICHMESSAGEaction in your script and configure it to send a rich media template. Place it before ASKCALLER. Set the MessageFormat property in ASKCALLER to JSON.
    • Build the JSON for the rich media content in a snippet action. In ASKCALLER, set MessageFormat to Prompt Sequence . This option is primarily for use with virtual agents. However, you may need to use it if the rich media you want to use isn't available as a template in CXone.
    • If the message you send includes rich media that the contact will interact with, such as a picker or button, you may you may also need to configure the ResultPostback property. It's recommended that you contact the NICE CXone Expert Services team for assistance in building digital scripts that include rich media.
  • Postback is only supported in the Studio script that originated the rich media.
  • Support for rich messaging content type varies by channel, as shown in the following drop-down.

Supported Script Types

The icon for the Digital script type - a computer monitor with a smartphone next to it.

Digital

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

Input Properties

These properties define data that the action uses when executing.

Property

Description

Caption

Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon. The default is the action name.

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 rich media as a prompt sequence or via the GETRICHMESSAGE  action, this field must be a JSON string.
MessageFormat

Select the format of the message you're sending. Options are:

  • PromptSequence: Select this option if sending rich media as JSON built in a Snippet. See the Dependencies section for details.
  • Text: Select this option if the message is plain text. This is the default.
  • JSON: Select this option if sending rich media via the GetRichMessage action. See the Dependencies section for details.

MessageSender

An optional field that identifies CXone suite-level components interacting with this action.
ResultPostback

The name of a variable to hold any returned postback data. This data is sent when the contact interacts with certain rich media types in the message you send. For example, if you include a time picker in the message, the time option the contact selects is returned in this variable.

TimeoutSec

Timeout Sec

The number of seconds the action waits to execute before timing out. The contact has this amount of time to enter information into their chat window.

To send a message without waiting for a response, set this property to 1. To have the action wait indefinitely, set this property to 0.

Output Properties

These properties contain variables that hold data returned from executing the action. They're available for reference and use when the action completes.

Property

Description

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.

Result Branch Conditions

Result branch conditions allow you to create branches in your script to handle different outcomes when an action executes.

Condition

Description

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.
On Timeout Path taken if there is no response for the number of seconds specified.
On CallerResponded Path taken if the contact provides a response.
On Error Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.

Tips and Tricks

Script Example

This is an example to show how this action can be used in scripts. It is not intended to be a complete script. Additional scripting may be required.

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 a SNIPPET action. Additionally, it also requires the assistance of NICE CXone Expert Services.

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.