Digital Scripts

The information on this help page applies to both Studio and Desktop Studio.

Digital scripts are used for contacts in CXone Mpower on digital channelsClosed Various voice and digital communication mediums that facilitate customer interactions in a contact center., such as social media public and messaging channels, direct messaging apps including WhatsApp, and website-based chats including Apple Messages for Business. CXone Mpower handles digital interactions differently from traditional ACD interactions. These differences impact the management and routing of digital contacts.

In CXone Mpower, Studio is the contact management and routing engine. Digital Experience has an additional component that can influence what happens to contacts. This component, Workflow Automation (WFA), is a code-free rules engine. With WFA you can define criteria and what happens when the criteria are met. Studio and WFA work together to route digital contacts. WFA rules run independent of Studio scripts. You can use scripts and WFA rules together to customize the handling of digital contacts.

Digital scripts have built-in buffer protection to protect against DDoS attacks or viral public posts on social media channels. In the event that one of these events occurs, the requests are put into a buffer to be processed when system resources are available.

Comparison of Digital and Traditional ACD Routing

Digital routing is similar to traditional ACD routing. However, there are some key differences: 

Additionally, digital scripts have an alternate routing method. This legacy method uses Digital Experience routing queuesClosed Determine which agents to route digital cases to, using criteria such as the agent having expertise in that type of case. instead of scripts and digital ACD skillsClosed Used to automate delivery of interactions based on agent skills, abilities, and knowledge..

The following diagrams compare the path of a traditional ACD phone interaction and a digital chat interaction through CXone Mpower. They show both interactions from when the contact initiates the conversation to when an agent is assigned and responds to the contact.

The following image shows a diagram of inbound contact routing for a traditional ACD channel (phone). A text description of the routing path follows the image in the drop-down.

The following image shows a diagram of routing a digital contact using a script. A text description of the routing path follows the image in the drop-down.

Points of Contact and ACD Skills

All digital and traditional ACD contacts enter CXone Mpower through points of contactClosed The entry point that an inbound contact uses to initiate an interaction, such as a phone number or email address. (POC). A POC is the specific instance of a channel that contacts use to communicate with your organization. They connect CXone Mpower to the phone number, email address, chat window, or social media account contacts use when starting an interaction with your company.

In addition to the details connecting the POC to the channelClosed Various voice and digital communication mediums that facilitate customer interactions in a contact center. it works with, all POCs must also have the following:

Digital POCs are created on the DigitalPoint of Contact Digital page in the ACD application. Online help for creating digital POCs is available on the page for setting up each channel. You can find links to each setup page on the Digital Channels help page.

Contact Routing Paths

The routing of traditional ACD and digital contacts follows a similar path. System scripts match the contact with the POC they used to contact your company. The system scripts then assign the default ACD skill defined in the POC to the contact and call the script defined in the POC. The custom script takes over handling of the contact.

One of the Studio actionsClosed Performs a process within a Studio script, such as collecting customer data or playing music. that both traditional ACD and digital scripts use is Reqagent. This action has a digital version that works with digital scripts. Both versions of Reqagent request an agent that matches the specified criteria to handle the interaction. The criteria include the ACD or digital ACD skill and the agent's proficiencyClosed The level of expertise an agent has in an ACD skill. Helps determine which agents to route interactions to for that skill. in that skill.

What happens after an agent is requested differs between traditional ACD and digital routing: 

After Onanswer or Onassignment, there are many possibilities for what happens next in both traditional ACD and digital scripts. The routing flow depends on the unique needs of your organization.

In traditional ACD interactions, a contact is sometimes assigned a different contact ID, such as when the contact is transferred to a new agent. This doesn't happen with digital contacts. A digital contact keeps the same contact ID for the entire interaction.

Interaction Duration and Script Sleep-Wake Cycles

Traditional ACD interactions generally last for minutes or hours. The scripts that route these interactions actively run for the duration of the interaction.

Digital interactions can last for minutes, hours, days, weeks, or even months. To support this and to preserve system resources, digital scripts "sleep" when they're not active. They automatically wake up when there's an action they need to perform, then they go back to sleep again. 

For example, after the Askcaller (digital) action prompts the contact for information, the script goes to sleep. When the contact responds, the script wakes up and performs the next action, then goes to sleep again. This sleep-wake cycle repeats as often as necessary until the interaction is complete.

The sleep-wake cycle of digital scripts happens automatically. You don't need to do anything in your script to make it happen. It cannot be prevented, either. This cycle is designed to efficiently preserve system resources. By limiting the number of scripts in active memory at any point, the total number of digital contacts CXone Mpower can handle concurrently increases.

The agent doesn't have to be assigned to the contact for the entire interaction. Unassigning agents from contacts removes the contact from the agent's inbox, leaving the contact in CXone Mpower in a post-contact state. The next time the contact sends a message, an agent is assigned to it. It could be the same agent or a different one. Unassigning can happen in three ways: 

  • Agents can unassign themselves.
  • The Digital Experience administrator can create WFA rules to automatically unassign agents.
  • If your agents use Agent, the Agent administrator can configure an amount of time after which contacts are automatically unassigned from the agent if they don't respond.

The Onunassignment action fires after the agent is unassigned from a contact. It creates a new branch of the script where you can add logic for what you want to happen after an unassignment.

Termination of Scripts and Contact IDs

Each script must have an action that signals the completion of the script. These terminating actions are a required action for all scripts. They perform important cleanup work that's needed to completely end each interaction and contact ID, such as ending background processes and recording information in databases.

In traditional ACD scripts, there are a number of terminating actions available. The one you use depends on the script media type. All traditional ACD terminating actions terminate the script. They also terminate the contact ID by changing the contact's status to Complete. Once the contact ID is terminated, the Onrelease event action fires to perform any post-interaction tasks that may be required, such as copying data about the contact to your CRMClosed Third-party systems that manage such things as contacts, sales information, support details, and case histories. application.

For digital scripts, the only supported terminating action is End. However, in digital scripts, End only terminates the script. It does not terminate the interaction or the contact. There are several ways the interaction and the contact can end:

  • Agents can close the contact from the agent application.
  • The Digital Experience administrator can create Workflow Automation rules in CXone Mpower to automatically to close the contact given specified conditions.
  • You can use the Update Digital Contact Status action to update the contact's status to Closed.
  • Customers can end the interaction. This option is only supported for live chat channels.

After the a digital contact ID has been terminated, the Onrelease event action can fire to perform any required post-interaction tasks.

Digital Routing with Routing Queues

Prior to the Summer 2023 release, digital contacts were primarily routed using digital routing queues. This method requires digital ACD skills but not Studio scripts. The digital channelClosed Various voice and digital communication mediums that facilitate customer interactions in a contact center. created in CXone Mpower functions as both the channel and the point of contact. This means that the contact enters CXone Mpower directly through the channel and is handled by routing queue rules. Routing queue rules assign contacts to ACD skills using filtering rules, which are created on the Routing Queues page.

This routing method is still available in CXone Mpower. However, it's not the preferred method for routing contacts. It's easier to build and troubleshoot the routing workflow using the visual interface of a Studio script. When routing with routing queues, it can be a challenge to keep track of the many rules required to route contacts.

You can only use one routing method for each POCClosed The entry point that an inbound contact uses to initiate an interaction, such as a phone number or email address.. When a Studio script is assigned to a POC, routing queues no longer work for inbound contacts that come into the POC. To route contacts using routing queues, you need to set up routing rules and filters in CXone Mpower.

The following image shows a diagram of routing a digital contact with Digital Experience routing queues. A text description of the routing path follows the image in the drop-down.

Workflow Automation

Workflow Automation (WFA) is a rules engine in Digital Experience. WFA rules define the criteria for certain tasks. When those criteria are met with digital contacts, Digital Experience performs the defined task.

You can use WFA together with Studio scripts to manage contacts and interactions. WFA and Studio work independently, but in parallel. There are some tasks that can be done in both places. You should decide how you want to accomplish those tasks so they're managed in one place and not both. For example, if you have a WFA rule that ends a contact and adds data to your CRMClosed Third-party systems that manage such things as contacts, sales information, support details, and case histories., you don't need to configure the Onrelease action in your script to add data to your CRM.

One of the most important behaviors that you need to define in WFA is ending contacts. In digital scripts, the End action doesn't end the contact. It only ends the script. You must set up rules in WFA to define when Digital Experience should end contacts. You can also set up WFA rules to handle contacts that have abandoned the conversation.

Prequeue Decision-Making

It's helpful to be able to determine a contact's reason for contacting your organization. This allows you to assign a new ACD skillClosed Used to automate delivery of interactions based on agent skills, abilities, and knowledge. to the contact, which makes it more likely that the agent who handles the interaction can take care of the contact's needs. The more specific your skills are, the more targeted you can make the agent assignments and reduce the need to transfer contacts to different agents.

In a traditional phone script, you can create an IVRClosed Interactive Voice Response. Automated phone menu contacts use via voice or key inputs to obtain information, route an inbound voice call, or both. menu using the Menu action. In the menu, you can present the contact a series of options, and assign an appropriate ACD skill to them depending on the option they pick.

In digital scripts, you cannot create an IVR in the same way, but you can determine the contact's needs in other ways. For example, you can: 

  • Create menus of options using rich media options.
  • Use the Askcaller (digital) action (action help page in Studio).
  • Use a virtual agent that's trained to answer simple questions and perform triage at the start of a interaction.
  • Use Guide on your company website.

Screen Pops in Digital Interactions

In traditional ACD interactions, there are two options for configuring screen pops:

For digital interactions, configuring screen pops at the ACD skill level doesn't work, so you must use the actions.

Studio Actions for Digital Scripts

To see a list of the actions supported in digital scripts, go to the Studio Actions page. Open the Filter by Script Media Type filter and select the Digital option.