Skip to main content
Data

CXONE Data Process Overview

Consolidated process path for CXONEDEDICATED and CXONERETAIL covering agent-skill history maintenance, interval reconciliation, dedicated modeled fact builds, takeover aggregation, and TPM archival movement.

Overview

Two CXONE domains run shared-core DIM and interval logic through wrappers, with dedicated-only modeled fact and takeover processing layered on top.

Business Purpose

Ensure contact-level and interval-level consistency, preserve attribution-ready agent skill history, and produce governed datasets consumed by downstream operations reporting.

Technology Stack

SnowflakeSQLTasksStored ProceduresPower BI

Business Impact

Gaps in interval sync, skill SCD state, or dedicated fact rebuilds can distort service-level, takeover, and workforce interval analytics.

Domain Coverage

2 domains in scope: CXONEDEDICATED and CXONERETAIL.

Execution Cadence

Hourly at minute 05/35 and 25/55, plus daily TPM archival at 07:25 ET.

Objects in Scope

7 active tasks and 7 core/dedicated procedures across MODELED and TPM paths.

Orchestration Model

Schedule-driven tasks without AFTER-chain dependencies in this process group.

Execution Cadence (Eastern Time)

Schedule Task Domain
Hourly at minute 05 and 35TASK_SPPOPULATEDIMAGENTSKILLTABLESCXONEDEDICATED.MODELED, CXONERETAIL.MODELED
Hourly at minute 25 and 55TASK_SPINTERVALCONTACTSYNCCXONEDEDICATED.MODELED, CXONERETAIL.MODELED
Hourly at minute 25 and 55TASK_SPPOPULATEFACTINTERVALTIMECXONEDEDICATED.MODELED
Hourly at minute 25 and 55TASK_SPPOPULATEFACTTAKEOVERSCXONEDEDICATED.MODELED
Daily at 07:25TASK_UPDATEAGENTSTATISTICSCXONEDEDICATED.TPM

Operational note: tasks sharing the same cron minute are effectively concurrent and may overlap at runtime.

Domain Behavior Difference

Wrapper Core Procedure P_INCLUDE_FACT_INTERVALS Effect
CXONEDEDICATED.MODELED.SP_INTERVAL_CONTACT_SYNCDATASTORE.MODELED.SP_CXONE_INTERVAL_CONTACT_SYNC_CORETRUEOptional modeled fact back-fill is enabled during interval reconciliation.
CXONERETAIL.MODELED.SP_INTERVAL_CONTACT_SYNCDATASTORE.MODELED.SP_CXONE_INTERVAL_CONTACT_SYNC_COREFALSEModeled fact back-fill is skipped in this path.

End-to-End Process Flow

  1. Refresh agent-skill assignment history using an SCD-style pattern across both domains.
  2. Reconcile contact-level and interval-level source structures to restore interval completeness.
  3. Build and maintain dedicated modeled interval facts for interval reporting outputs.
  4. Build dedicated takeover aggregates for operational takeover analytics.
  5. Archive dedicated TPM current rows into history and prune active TPM footprint.
  • Validates target identifiers and reads the max processed poll time watermark from DIM_AGENTSKILLMASTER.
  • Stages new AGENT_SKILLS snapshots above watermark and iterates distinct poll times.
  • Compares current and incoming per-agent skill states to close prior current rows on change.
  • Inserts new DIM_AGENTSKILLMASTER and DIM_AGENTSKILLDETAIL rows, plus sentinel records.
  • Logs status, row counts, and run metadata to shared procedure-run telemetry.

Why this exists: preserve effective-dated skill membership history used for attribution correctness in interval analytics.

  • Validates dynamic object identifiers and computes lookback cutoff (default 4 days).
  • Backfills null CONTACTSTARTDATETIME in CONTACTSCOMPLETED from CONTACTSTART.
  • Inserts missing interval rows from contact-level rows for Agent, Agent+POC, Queue, and POC datasets.
  • Per wrapper setting, optionally inserts missing modeled interval fact rows (dedicated enabled, retail disabled).
  • Logs execution status, row counts, and details payload via shared logging procedure.

Why this exists: prevent interval-reporting gaps when contact-level data exists but interval structures are incomplete.

  • Computes earliest impacted interval based on recent modeled interval-view inserts.
  • Builds temporary distinct agent-interval aggregates and applies skill mapping from DIM_AGENTSKILL tables.
  • Deletes overlapping slices in FACT_AGENTSKILLINTERVALTIME and FACT_SKILLINTERVALTIME.
  • Reinserts detailed and rollup rows, excluding invalid and outbound skill entries.
  • Logs row counts, query IDs, and status payload details.

Why this exists: produce reprocessable, consistent 30-minute interval facts for workforce and performance reporting.

  • Deletes target-period takeover rows in FACT_TAKEOVERS using RUNDATE.
  • Reads modeled contact detail from VW_CONTACTSCOMPLETED.
  • Filters to takeover contacts where ISTAKEOVER = 1 and SERVICELEVELFLAG = -1.
  • Aggregates by interval, campaign, skill, POC, and agent and inserts counts and seconds metrics.

Why this exists: support takeover-specific operational reporting and workload impact analysis.

  • Computes UTC cutoff at current date minus 2 days from a US/Pacific baseline.
  • Inserts older current rows from TPM.AGENTSTATISTICS into TPM.AGENTSTATISTICS_HISTORY.
  • Deletes moved rows from TPM.AGENTSTATISTICS.

Why this exists: retain historical TPM statistics while keeping the current table lean for active workloads.

Process-to-Table Data Flow

Flow Primary Sources Primary Targets Outcome
Agent Skill SCD (both domains)<DOMAIN>.DBO.AGENT_SKILLS<DOMAIN>.MODELED.DIM_AGENTSKILLMASTER, <DOMAIN>.MODELED.DIM_AGENTSKILLDETAILEffective-dated skill membership history per agent.
Interval Reconciliation (both domains)CONTACTSCOMPLETED plus AGENT/QUEUE/POC contact-level tablesCONTACTSCOMPLETED typed timestamp and interval structures in DBORestored interval completeness across contact-center performance structures.
Dedicated Interval Fact BuildDedicated modeled interval views plus DIM_AGENTSKILL tablesFACT_AGENTSKILLINTERVALTIME, FACT_SKILLINTERVALTIMERebuilt affected interval facts with skill-aligned metrics.
Dedicated Takeover BuildCXONEDEDICATED.MODELED.VW_CONTACTSCOMPLETEDCXONEDEDICATED.MODELED.FACT_TAKEOVERSTakeover counts and duration metrics for operations analytics.
Dedicated TPM ArchivalCXONEDEDICATED.TPM.AGENTSTATISTICSCXONEDEDICATED.TPM.AGENTSTATISTICS_HISTORYHistorical retention with current-table pruning.

Shared Dependencies and Telemetry

DATASTORE.MODELED.SP_CXONE_POPULATE_DIM_AGENTSKILLTABLES_CORE DATASTORE.MODELED.SP_CXONE_INTERVAL_CONTACT_SYNC_CORE DATASTORE.MODELED.SP_LOG_PROCEDURE_RUN DATASTORE.MODELED.TBL_PROCEDURE_RUN_LOG CXONEDEDICATED.MODELED.VW_AGENT_PERF_DATA_INTERVAL CXONEDEDICATED.MODELED.VW_QUEUE_PERF_DATA_INTERVAL CXONEDEDICATED.MODELED.VW_CONTACTSCOMPLETED

Logged telemetry includes status, invocation mode, task name, snapshot date, rows affected, query ID, error details, and structured procedure-details payload.

Explicit Scope Exclusions

  • TASK_SP_POPULATE_CEH_SHORTABANDONS is intentionally excluded from this overview.
  • Client-data generation procedures and client-data-oriented process paths are intentionally excluded from this overview.
  • TASK_SPPOPULATEFACTSKILLCALLPROFILE is not included because the matching procedure definition is not present in repository SQL.