---
sourceDocument: Xanadu ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/servicenow-platform

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Configure scheduled jobs for Self-Service Analytics

# Configure scheduled jobs for Self-Service Analytics {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Schedule when to run the deflection configuration to generate the activities that
match an activity pattern within an activity window.

## Before you begin

[Set up the deflection configuration for Self-Service Analytics](https://www.servicenow.com/docs/6WT_Qj8_qSpEl~sBi1IaRg "Associate a period of time with an activity context that defines how long a system will wait for a case to be created to match a deflection pattern.").

Role required: admin

## About this task

You configure the duration of processing the deflection configuration for a user entity. This configuration is optional for consumers and customer contacts. The scheduled job captures data for Self-Service Analytics and stores the generated data in the Deflection Metric \[ssa_deflection_metric\] table.

## Procedure

1. Navigate to AllSystem DefinitionScheduled Jobs.
2. Configure the scheduled script processed for a user entity in a scheduled job.
   * For consumers, select Deflection Analytics for Consumers.
   * For customer contacts, select Deflection Analytics for Contacts.
   * For user entities other than consumers and customer contacts, click New and select Automatically run a script of your choosing to create another scheduled job or modify an existing schedule job.
   {#configure-scheduled-job-ssa__choices_d3d_ccq_jlb}
3. On the Scheduled Script Execution form, verify the default field values for consumers and customer contacts or fill in the values for a custom configuration.  
   {#configure-scheduled-job-ssa__table_e3d_ccq_jlb__entry__2}

   | Field | Description |
   |-|-|
   | Name | Name to identify the scheduled script execution. |
   | Active | Option to activate the script at the scheduled date and time. By default the job is inactive. |
   | Run | Type of schedule to execute the script on. Choices are: * Daily * Weekly * Monthly * Periodically * Once {#configure-scheduled-job-ssa__ul_rsp_rtk_nlb} |
   | Day | * If you select Weekly as the Run value, the day of the week. * If you select Monthly as the Run value, the day of the month. {#configure-scheduled-job-ssa__ul_u4b_mtk_nlb} |
   | Repeat Interval | If you select Periodically as the Run value, the duration between each script execution. Note: This setting does not account for Daylight Savings Time changes. For example, if you select a period of one day, this adds 24 hours to the starting time of the job. If the start time was configured during a period with Daylight Savings Time, the job executes with a one hour offset on days when that time zone is not in Daylight Savings Time. |
   | Time | If you select Daily, Weekly, or Monthly as the Run value, the time of day, based on a 24-hour clock. |
   | Starting | Date and time of the first scheduled script execution. |
   | Application | Application that contains the script. |
   | Conditional | Option to run a scheduled job if certain conditions are met in the associated script. |
   | Condition | Conditional script that determines whether a scheduled job must run. The last expression of the script should evaluate to a Boolean (true or false) value. This field appears only when the Condition check box is selected. |
   | Run this script | Script to run at the scheduled date and time. For a new scheduled script, copy the script from the existing script (Deflection Analytics for Consumers or Deflection Analytics for Contacts) and modify the `deflectionAnalyticsService.captureDeflectionAnalytics('`<var class="keyword varname">sys_ID</var>`')` field value to include the sys_id of your deflection configuration record. For information about identifying the sys_id, see [The unique record identifier (sys_id)](https://www.servicenow.com/docs/access?context=c_UniqueRecordIdentifier&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US). |
   [Table 1. Scheduled Script Execution form]

   {#configure-scheduled-job-ssa__table_e3d_ccq_jlb}
4. Click Update for consumers and customer contacts or Submit to save a custom configuration.
{#configure-scheduled-job-ssa__steps_c3d_ccq_jlb}

*[\>]: and then


