Schedule Scripts to Run

Required permission: ACD > Contact Settings > Script Schedules Create

Script scheduling lets you run scripts at set times. You can choose to schedule a script to run one time, continuously, or on a recurring basis. You can set a schedule by the time of day, the day of the week, and so on. When you schedule a script, you can choose an ACD skillClosed Used to automate delivery of interactions based on agent skills, abilities, and knowledge. for the script to run with.

Create a One-Time or Continuous Script Schedule

A one-time schedule runs the script once, at the date and time you choose. A continuous schedule runs the script continually from the date and time you choose.

You can use the continuous schedule type only with generic scripts. Generic scripts cannot contain media-specific actionsClosed Performs a process within a Studio script, such as collecting customer data or playing music. that enable them to run continually. If media actions are required, a generic script can spawn another script. The spawned script completes those tasks.

  1. Click the app selector Icon of a grid of nine squares. and select ACD.

  2. Go to Contact Settings > Script Schedules.

  3. Click Create New.
  4. Enter the Name for the schedule.
  5. Select a Script Name from the dropdown list of your available scripts.
  6. Select a Schedule Type from the available choices: One Time or Continuous.
  7. Select a Skill from the dropdown list of available ACD skillsClosed Used to automate delivery of interactions based on agent skills, abilities, and knowledge..
  8. Configure the Duration based on the value you selected for Schedule Type:

  9. Click Next.
  10. Enter any Parameters that you want the system to insert into the script. The system inserts these parameters into the script. The scheduled instance of the script uses them as variables. If you don't want to add parameters, leave Parameters empty. When you trace a script, you can view these parameters in the starting action of the script. The parameters are labeled p1-p9.
  11. Click Save.
  12. Click Activate.

Create a Recurring Script Schedule

A recurring schedule runs the script at the interval you set.

  1. Click the app selector Icon of a grid of nine squares. and select ACD.

  2. Go to Contact Settings > Script Schedules.

  3. Click Create New.
  4. Enter the Name for the schedule.
  5. Select a Script Name from the dropdown list of your available scripts.
  6. Select Recurring as the Schedule Type.
  7. Select a Skill from the dropdown list of available ACD skillsClosed Used to automate delivery of interactions based on agent skills, abilities, and knowledge..
  8. Under Duration, configure when and how often you want the script to run:

    1. For Starts On, enter a date for the script to start recurring or click the calendar Icon of a calendar. to select a date.
    2. Enter a start time or select a time from the dropdown list. The system uses your business unitClosed High-level organizational grouping used to manage technical support, billing, and global settings for your NiCE CXone system. time zone for executing the script.
    3. For Recurs, select Daily, Weekly, or Monthly, then configure the options for your selection:

      • Daily: Enter a number in the field between Every and Days to set how many days pass between runs.
      • Weekly: Enter a number in the field between Every and Weeks. Then select the checkboxes for the days of the week, Monday through Sunday, that you want the script to run.
      • Monthly: Choose one of these options:
        • To specify a specific day of the month, select Day. Then select the day of the month, 1-31, and the number of months between runs, from 1-12.

          For example, to have a script run on the third day of every second month, enter 3 in the first field and 2 in the second field.

        • To specify a pattern based on days of the week, select The. Then select First, Second, Third, Fourth, Fifth, or Last, a day of the week, and the number of months, 1-12, between runs.

          For example, to have the script run on the fourth Friday of every month, select Fourth, Friday, and 1.

    4. For Ends, select when you want this schedule to stop running:
      • To create a schedule that doesn't end, select Never.
      • To configure a specific end date, configure a date and time in the same way you configured Starts On.
      • To create a schedule that ends after it runs a certain number of times, enter the number of occurrence(s).
  9. Click Next.
  10. Enter any Parameters that you want the system to insert into the script. The system inserts these parameters into the script. The scheduled instance of the script uses them as variables. If you don't want to add parameters, leave Parameters empty. When you trace a script, you can view these parameters in the starting action of the script. The parameters are labeled p1-p9.
  11. Click Save.
  12. Click Activate.