Manage scripts

Add a new script

Add a system script

Duplicate a script

Rename a custom script

Save a script

Publish a script

Validate a script

Delete a custom script

Note

  • The Scripts icon is only visible in the navigation pane after you open a workspace. You view the scripts for that workspace on the Scripts page.
  • You manage scripts through the Workspace editor.
  • Script names cannot contain the following characters: \ /:*?"<>|
  1. Open the workspace that contains the scripts. See Open a workspace.
  2. On the navigation pane, click Scripts. The Scripts for [workspace] list appears. For navigation information, see List view.

The columns are:

  1. Name
  2. Published filename
  3. Version — the version of the script.
  4. Last modified time — this is currently the UTC time at which the script was saved in the database.
  5. Last modified by
  6. Last publish time — this is currently the UTC time at which the script was published in the tenant’s IVR root path, configured in CCaaS Admin.

Add a new script

  1. In the Workspace editor, click and then click Add Script. The Add New Script dialog appears.

  1. Enter the script name. You cannot use the name of a system script.
  2. Click OK.

The script is added to the workspace and selected.

Add a system script

  1. In the Workspace editor, click and then click Add System Script. The Add System Script dialog appears.

  1. Select the script.
  2. Click OK.

The script is added to the workspace and selected.

Duplicate a script

  1. In the Workspace editor, in the Script tabs, select the script to duplicate.
  2. Click and then click Duplicate. The Duplicate dialog appears.

  1. Enter the duplicate script name.
  2. Click OK

The duplicate script is added to the workspace and selected.

Rename a custom script

You can rename only custom scripts.

  1. In the Workspace editor, in the Scripts list, select the script to rename.
  2. Click and then click Rename. The Rename [name]? dialog appears.

  1. Enter the new script name.
  2. Click Rename.

The renamed script is added to the workspace and selected.

Save a script

When you edit a script, an asterisk appears beside its name and an asterisk appears beside the name of the workspace in the Workspace tab bar. When you save the script, both asterisks disappear.

  1. In the Workspace editor, in the Script tabs panel, select the script to save.
  2. Click and then click Save.
  3. The message Script successfully saved appears. Click OK.

Publish a script

Note

  • If an error message appears saying that the IVR root path cannot be found, or CCaaS Admin cannot be contacted, click Publish again. If there is still a problem, see the configuration information in Publish a workspace.
  • Publishing an individual script does not create a backup version of it. You must publish a whole workspace to create a backup version of its scripts, tables, and files. For more information, see Publish a workspace.
  1. In the Workspace editor, in the Script tabs panel, select the script to publish.
  2. Click and then click Publish. The Publish [name] script dialog appears.

  1. Enter the Location to publish to. You can use the default workspace location or change the name to publish to a different workspace folder.
  2. Click Publish.
  3. The message Script successfully published appears. Click OK.

Validate a script

CCaaS Designer provides script validation to check that each individual call event script contains only CCaaS Designer blocks that are valid for that particular call event. Script validation is performed automatically when you click Save.

  1. In the Workspace editor, in the Script tabs panel, select the script to validate.
  2. Click and then click Validate.
  3. If the script is valid, the message Script is valid appears.
  4. If the script is not valid, the message Script is not valid appears. Click Details to view more information on the Errors page.

  1. Click OK.

Delete a custom script

You can delete only custom scripts.

  1. In the Workspace editor, in the Script tabs panel, select the script to delete.
  2. Click and then click Delete.
  3. Confirm the deletion.