Schedule Scripts to Run
Required permissions: Script Schedules Create
Script scheduling allows administrators and users who write scripts to schedule the execution of a script by the time of day, the day of week, and so forth. Scripts also maintain persistence data so administrators can handle "reawakened" scripts. This protects the system in the event that someone creates thousands of instances of the same script running all at the same time.
-
Click the app selector and select ACD.
-
Go to Contact Settings > Script Schedules.
- Click Create New.
- Type the Name for the schedule.
- Select a Script Name from the drop-down list of scripts in your system.
- Select a Schedule Type from the available choices: One Time, Continuous, or Recurring. The Continuous option is disabled if the Script Name value is not a system script. A system script cannot contain media-specific actions that enable it to run continually. If media actions are required, the system script can spawn another script that accomplishes those tasks.
- Select a Skill from the drop-down lists of skills in your system.
-
Configure the Duration based on the value you selected for Schedule Type:
One Time- Type a date in the Starts On field, or use the date selector (indicated by a calendar icon) to configure a date.
- Select a time from the drop-down list. CXone uses business unit High-level organizational grouping used to manage technical support, billing, and global settings for your CXone environment time zone when executing the script on the selected date and time.
Continuous- Type a date in the Starts On field, or use the date selector (indicated by a calendar icon) to configure a date.
- Select a time from the drop-down list. CXone uses business unit High-level organizational grouping used to manage technical support, billing, and global settings for your CXone environment time zone when executing the script on the selected date and time.
- Select a value for when the schedule Ends. You can choose Never or configure a date and time in the same way you configured Starts On.
Recurring- Type a date in the Starts On field, or use the date selector (indicated by a calendar icon) to configure a date.
- Select a time from the drop-down list. CXone uses business unit High-level organizational grouping used to manage technical support, billing, and global settings for your CXone environment time zone when executing the script on the selected date and time.
- Select a value for when the schedule Recurs. You can choose Daily, Weekly, or Monthly from the drop-down list, or type a custom value if you want the schedule to recur Every (so many) Days.
- Select a value for when the schedule Ends. You can choose Never, configure a date and time in the same way you configured Starts On, or type a custom numeric value if you want the schedule to end after (so many) occurrence(s).
- Click Next.
- You can enter custom script parameters. These parameters are inserted into the script and can be consumed as variables in the instance of the script that you spawn. When tracing a script, you can view these parameters in the starting action of the script labeled as p1-p9.
- Click Save.
- Click Activate.