Work with Actions in Scripts

After you create a new script or open an existing script, you can add and configure actions. This page helps you learn how to work with actions in your scripts.

Add and Configure an Action in a Script

Required PermissionACD > Studio > Scripts > Create/Edit

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with or create a new one. The script opens in a new tab.
  3. Click the actions icon A rectangle, circle, and triangle partially layered on top of each other. Click to open the Actions panel. in the left icon menu to open the Actions palette.

  4. Locate the action you need using the search bar. You can also scroll down the list of actions and expand or close category folders to locate an action.
  5. Click an action and drag it to the canvas.
  6. Click the action on the canvas to view its properties. Action properties appear in the Properties section on the right side of the canvas.

  7. Configure the properties of the action. Each action has different properties. Press F1 to open the online help page for the action that's currently selected on the canvas.
  8. If you need to remove an action from your script, select it on the canvas, then press DELETE.
  9. Save your script.

Connect Actions

Required PermissionACD > Studio > Scripts > Create/Edit

Connecting actions creates the flow of your script. Actions have connection points on all four sides. Connectors start and end at connection points. Each connector has a condition assigned to it. When more than one path is possible, the script determines which path it takes each time it runs based on which condition applies.

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with or create a new one. The script opens in a new tab.
  3. Add two actions to the canvas workspace.
  4. Move the cursor over the first action so the empty connection points appear A white circled outlined in blue.. A gray connector line appears and shows where the default connection will be made.
  5. To quick-add a connection:
    1. Hover the cursor over a connection point until it changes to the blue connector circle A blue circle with a white arrow pointing down. Click to drag a connector to another action. .
    2. Click the blue connector circle. The connection is made with the Default condition.

  6. To create a drag-and-drop connection:
    1. Click and drag the blue connection icon A blue circle with a white arrow pointing down. Click to drag a connector to another action. to the connection point A white circle with a blue outline. on the action you want to connect it to.
    2. Drop the connector onto a connection point of the second action. The connection is made with the Default condition.

  7. To change the condition for a connector:

    1. Click the connector line. The connector options menu pops up.
    2. Click condition A circle with two horizontal lines attached to it. One has a check mark and the other has an X next to it. and select the new condition.

  8. Modify the path of each connector line as needed.
  9. To create multiple branches from one action, add additional actions to the script and repeat these steps to connect each one.
  10. To remove a connector, click the connector line and select the trash can A trash can. from the pop-up menu. You can also press Delete on your keyboard.
  11. Save your script.

Copy and Paste Actions to Another Script

You can copy one or more actions and paste them into another script. This makes it easy to replicate a section of a script in a different script.

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with. The script opens in a new tab.
  3. Select the actions you want to copy. You can:
    • Click and drag on the canvas to select actions and the connectors that originate from them.
    • Press and hold CTRL and click actions on the canvas. Only the actions you select are copied. Connectors are copied only if you select the actions where the connectors originate and where they terminate.
  4. Open a second script or create a new one.
  5. Press CTRL + V to paste the copied actions to this script.
  6. Click the group and drag it to where you want it to be on the canvas.
  7. Connect the pasted-in actions to the existing actions as needed.
  8. Modify the pasted-in actions' properties as needed.
  9. Save your script.

Modify Connector Paths

Required PermissionACD > Studio > Scripts > Create/Edit

When you connect two actions or move an action to a new location, sometimes the connector takes a different path from what you'd prefer. You can modify connector paths on the canvas. You can change:

  • The type of line each connector uses. Connector lines can be linear with right angles, linear with any degree of angle, or curved.

  • The number of angles and curves.

  • The location of each angle and curve.

  • The connection point that the connector attaches to.

Each connector can have a different type of line. The default type is linear. You can undo or redo changes made to the line type, but not other changes to connectors.

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with or create a new one. The script opens in a new tab.
  3. Add two actions to the canvas and connect them.
  4. To change the type of connector line, click the connector to select it, then click the line type icon Icon of an arrow pointing to the upper right.  and select an option.

  5. To modify a linear connector line: 
    1. Click the connector to select it. The connector is highlighted in light gray. Existing vertices appear as black circles outlined in white Icon of a black circle outlined in white.. Portions of the connector that are vertical or horizontal have handle bars Icon of a black vertical line segment outlined in white. on them. Handle bars are either horizontal or vertical, depending on the line where they appear.
    2. Click the connector again to add a new vertex.
    3. Click a vertex and drag it to a new location. The connector segments on either side of the vertex grow or shrink and change angle depending on how you move the vertex.
    4. Click a handle bar and drag it to move the segment of the connector where the handle bar appears. The connector segments on either side of the handle bar grow longer or shorter depending on which direction you move the handle bar. Horizontal handle bars can move up and down. Vertical handle bars can move from side to side.
  6. To modify a right angle connector line: 
    1. Click the connector to select it. The connector is highlighted in light gray. Existing vertices appear as black circles outlined in white Icon of a black circle outlined in white.. Right angle connectors do not have handle bars.
    2. Click the connector to add a new vertex. This adds a new point that affects where and how right angles appear in the connector. However, right angles do not always appear at vertices. Sometimes they appear between vertices, depending on the relationship between the connector line segments and the vertices.
    3. Click a vertex and drag it to reshape the line. The nearby connector segments adjust depending on where you move the vertex.
  7. To modify a curved connector line: 
    1. Click the connector to select it. The connector is highlighted in light gray. Existing vertices appear as black circles outlined in white Icon of a black circle outlined in white.. Curved connectors do not have handle bars.
    2. Click the connector to add a new vertex. This adds a new point that affects where and how curves appear in the connector.
    3. Click and drag a vertex to reshape the line. The nearby connector segments adjust depending on where you move the vertex.
  8. Double-click a vertex to remove it. The nearby connector segments adjust their path.
  9. To change where the connector attaches to the action, you can: 
    • Click the connector line and drag it to a new location. The connection point slides around the perimeter of the action as you move the connector.
    • Click the action to select it, then hover the cursor over the connection point where the connector attaches. When the cursor changes to a cross Icon of a plus sign with arrows on each point., click and drag to a new location. You can move the connector to a new point on the same action or to a different action.
  10. Save your script.

Add Actions from the Choose Action Menu

Required PermissionACD > Studio > Scripts > Create/Edit

Instead of connecting to an existing action in your script, you can use the Choose Action menu to add an action and connect to it in one step. This menu appears when you drag a connector away from an action and release it without attaching it to another action. .

The Choose Action menu includes the Top Suggested list. This is a selection of the most commonly-used actions. Studio populates this list automatically. You can click an option in the list to add and connect to it.

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with. The script opens in a new tab.
  3. Add the action you want to work with to the canvas workspace, if it isn't there already.
  4. Click and drag the action's connection icon A blue circle with a white arrow pointing down. Click to drag a connector to another action. away from the action and release it to pop up the Choose Actions menu.
  5. To search for an action: 

    1. In the Search actions field, enter the name or part of the name of the action you want to add.
    2. Click the action you want from the search results on the Choose Action menu.
  6. To use an action from the Top Suggested list, click the action you want to add.
  7. Change the branch condition for the connector that was just added, if necessary. Actions added using the Choose Action menu have the Default branch condition.

 

Change a Branch Condition

Required PermissionACD > Studio > Scripts > Create/Edit

You can change the condition that a branch uses. The condition determines what must happen for the script to take a particular branch.

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with. The script opens in a new tab.
  3. Click to select the connector whose condition you want to change. If you have trouble selecting it, move one of the connected actions further away. Connectors cannot be selected if the actions are too close together.

  4. To choose a predefined condition: 
    1. Click the condition icon in the menu that pops up.
    2. Select a new condition from the Choose Condition menu.
  5. To choose a custom condition: 

    1. Scroll down in the list of conditions on the Choose Condition menu to the Custom Conditions section. This section only appears when an action supports custom conditions and custom conditions have been added. If you haven't added a custom condition yet, do so now.

    2. Click the custom condition you want to assign to this branch. Custom conditions that aren't assigned to a branch have an empty circle next to them. Custom conditions that are already assigned to branches have a green circle with a checkmark next to them. If you click a condition that's already assigned, it's reassigned to the current branch and removed from its previous location.

Create a Custom Condition

Required PermissionACD > Studio > Scripts > Create/Edit

Custom conditions allow you to define what must happen for the script to follow a particular branch. This is helpful when creating IVRClosed Interactive Voice Response. Automated phone menu contacts use via voice or key inputs to obtain information, route an inbound voice call, or both. menus. You can create a branch for each menu option and set the condition for each one to be the DTMFClosed Signaling tones that are generated when a contact presses a key on the telephone keypad. digit the contact must enter to select that option.

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with. The script opens in a new tab.
  3. Add an action that supports custom conditions, such as Menu.
  4. Add a second action to your script. For example, you can add an action such as Play or Reqagent to 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 with Menu.
  5. Connect the two actions and click Add Custom Condition in the Choose Condition menu.

  6. Enter a name in the Enter condition name field. For example, for an IVR menu, enter the number key the contact must press to follow that branch, such as 1 or 2. The name you enter appears on the script canvas to label the connector line.

  7. Click Confirm A checkmark.. The condition name appears in an oval with the connector line on the canvas workspace.

Add or Modify an Action's Caption

Required PermissionACD > Studio > Scripts > Create/Edit

You can add captions to actions on the script canvas. This allows you to add documentation to your script. For example, you could include information about the action and the function it serves in the script.

  1. In CXone Mpower, click the app selector and select Omnichannel RoutingStudio Three arrows joined at the base. One points straight up, one up and to the right, and one up and to the left. .
  2. On the Scripts page, locate and double-click to open the script you want to work with or create a new one. The script opens in a new tab.
  3. Add an action to the script.
  4. Click the action name and select Add Caption Icon of a square with a T and +. .
  5. Enter text in the Add Caption field below the action on the canvas.
  6. Press Enter or click away from the action to exit edit mode.
  7. To edit an existing caption, double-click the caption field to enter edit mode. You can also click the action name and select Edit Caption Icon of a square with a T and +..
  8. To delete a caption, double-click the caption field and delete the text from it, then press Enter.
  9. Save your script.