Develop a Basic Script

Required security profile permissionsScripts Create/Edit

Studio allows you to create scripts that control the routing and workflow of contacts in your contact center. With more than 150 actions and multiple script types, you can create highly customized scripts that meet your unique needs.

This topic uses a scripting example to explain how to create a script from the Tools tab. You can use this example as a basis for creating your own scripts using the same or different actions.

This topic explains how to create the script shown in the following image from the Tools tab, and provides a basis for creating your own scripts using the same or different actions. You can also choose to Script from the Framework Tab.

Before you can create scripts, you must Download and Install Studio. This task assumes you have done so, and that you have logged into the Studio application.

  1. Click FileNew,.
  2. Click the icon for the type of script you want to create, then click OK.
  3. Click the Tools tab to open the default palette and display the most commonly-used Studio actions.
  4. In the Filter field, enter Begin to display the BEGIN action icon. Drag the icon to the central work area, or canvas.

  5. Repeat the previous step for each of the actions shown in the image until all actions are on the canvas.
  6. Hover over the bottom right corner of the BEGIN icon until the connector indicator appears.
  7. Drag a connector from BEGIN to COUNTAGENTS:

  8. Right-click the COUNTAGENTS icon to display the action properties and note the value in the Available field. This image shows that value as the default, AVAIL. Click anywhere in the canvas to close the Properties window
  9. Drag a connector from COUNTAGENTS to IF. The IF action uses a conditional expression to introduce a logic branch in the script.
  10. When the Pick Branch window appears, select Default and click OK. For more information on branches, see Branches Overview.
  11. Right-click the IF icon, and in the Expression field, change the value from B1 to AVAIL>0. This establishes that the default branch is followed if the COUNTAGENTS variable AVAIL has a value greater than zero.

  12. Drag a connector from IF to PLAY.
  13. When the Pick Branch window appears, click False and then click OK.
  14. Double-click the PLAY action to display the Play Properties window (also known as the Prompt Manager).
  15. Click Synthesize Text.
  16. In the Sequence Value field, enter the message you want callers to hear when no agents are available. For example, you might type: We are currently experiencing technical difficulties. Please try your call again later.
  17. Copy the text from the Sequence Value field and paste it into the Phrase (document the play sequence) field.
  18. Click OK.
  19. Drag a connector from PLAY to HANGUP.
  20. In the Pick Branch window, select Default and click OK.
  21. Drag a connector from IF to MENU.
  22. In the Pick Branch window, select True and click OK. After this step, your script should look like the following image:
  23. Double-click the MENU icon.
  24. Click Synthesize text.
  25. In the Sequence Value field, type Press 1 to speak to a representative.
  26. Copy the text from the Sequence Value field and then paste it into the Phrase (document the play sequence) field.
  27. Click OK.
  28. Drag a connector from MENU to REQAGENT.
  29. When the Pick Branch window appears, click the plus sign to add a variable branch.
  30. Type a value of 1 to replace the default value New:

  31. Click OK.
  32. Right-click the REQAGENT icon to display the action properties:
  33. In the SkillClassification used to facilitate the delivery of contacts; assigned to agents based on abilities, specialties, and knowledge property, click the drop-down and replace Default with a specific skill. When you are done, click anywhere on the canvas.
  34. Drag a connector from REQAGENT to MUSIC.
  35. In the Pick Branch window, select Default and then click OK.
  36. Right-click anywhere on the MUSIC icon to display the action properties:

  37. Click the drop-down in the MusicFile field and select a .wavWAVeform audio file; used to store audio bitstreams such as call recordings. file to be played. When you are done, click anywhere on the canvas.
  38. Drag a connector from MUSIC to WAIT.
  39. In the Pick Branch window, select Default ad click OK.
  40. Drag a connector from WAIT back to MUSIC.

When you are finished, your script should look like the image at the beginning of this page.