Skip to main content
Data harmonization transforms disparate source data into a standardized schema. Source systems often use different naming conventions, data types, and structures to represent the same type of data. For example, you might have the exact same survey hosted on different systems, each which produce different output data with the same type of information. To merge this data into a single dataset, you need to harmonize the data. The Harmonization Agent does this for you by transforming source columns to expected target columns while validating data quality. You start by selecting a source dataset, reviewing its schema, choosing a target data model, and letting the Agent generate an initial mapping. After the initial mapping is complete, you can review mapped and unmapped columns, resolve data quality issues, preview the output, and export the harmonized data. Behind the scenes, Prophecy creates a pipeline that performs the harmonization process.

How does the Harmonization Agent work?

The Harmonization Agent uses AI to infer mappings between source schemas and a target Common Data Model (CDM) that you define. A Common Data Model (CDM) defines a target schema for source data. It specifies standardized column names, data types, and data tests used across downstream pipelines. The CDM is typically created once and reused across multiple harmonization workflows.

Human-in-the-loop validation

While the agent handles routine mappings efficiently, human oversight catches edge cases and ensures that transformations align with business rules. Before harmonization processes, you can validate agent-generated mappings and transformations. During review, Prophecy shows you how each source column is mapped to the target schema, any transformations applied, a confidence score for each mapping, and any data quality tests applied.

Access harmonization

The harmonization feature is currently available only through the Structured Finance Edition. To access Structured Finance, go to https://app.prophecy.ai/finance/.
If you are already signed up for Professional Edition, you will need to create a separate sign-in for Structured Finance.

Create a new data mapping

To create a data mapping:
  1. Open Structured Finance.
  2. Click Tape Cracking.
  3. Select a source dataset. Either:
    • Click Table to upload an Excel, CSV, Parquet, or similar file or
    • Click Select Existing to choose an existing table.
  4. Click Continue.

Review the source data

The source data review opens with the schema for your chosen source (that is, a page that displays column names, data types, and any available metadata). To view sample data by column, click Data in the upper-right corner of the page. After reviewing the schema or sample data, continue to the target data model selection.

Select a target data model

Available data models appear in the left-hand column.
  1. Select a target data model.
  2. Review the target model schema.
  3. Click Map Data.
Each Structured Finance project can contain one Common Data Model (CDM). To create a new CDM, either create a new project or ask the Agent to create one for you.To create a CDM manually:
  1. Create a new project by clicking the Projects folder icon and selecting Create New.
  2. Select Tape Cracking.
  3. At the top of the page, click + > New > CDMs.
  4. In the New Common Data Model dialog, enter a name for the CDM and click Create.
  5. Define the schema for the CDM using one of the following methods:
    • Click Add Table to manually define tables and columns.
    • Click Upload Schema to import a schema from a CSV or other supported file.

Generate mappings

Initially, Prophecy runs a deterministic, rule-based mapping pass. The deterministic pass considers:
  • Exact-name matches with compatible data types.
  • Historical, approved mappings stored in a per-CDM memory store.
Mappings that were previously approved for other pipelines can be suggested again. These mappings have a distinct historical-match attribution. The Agent then generates additional mapping suggestions. After processing finishes, the mapping summary shows how many target columns were mapped, how many were not mapped because corresponding source data was unavailable, and whether unresolved data quality issues remain.

Review mapping details

  1. Open the new data mapping.
  2. Select View Details.
  3. Select a column from a mapping category.
  4. Review the line that displays the source-to-target mapping.
  5. Select the target column to view its details.
  6. Click Next to continue.
harmonization result

Review data quality results

Open the Data Quality tab to review the mapping checks. The summary displays table-level and column-level checks, including how many checks passed and failed. When a check fails, click Go to Mapping to review the related mapping.

Apply a suggested fix

The Agent does not directly modify the live mapping when resolving a data quality failure. Instead, it creates a separate suggested fix that includes:
  • A proposed transformation.
  • A plain-language description of the proposed change.
The suggested fix remains separate from the live mapping until you explicitly apply it.
  1. Ask the Agent for suggestions to resolve the mapping issue.
  2. Review the suggested fix and its description.
  3. Select the proposed option you want to use.
  4. Explicitly apply the suggested fix to update the mapping.
Suggested options can include a default value such as 0, a fallback to another field, or a fallback to an expected value.

Preview and export the output

  1. Click Output Preview to review the harmonized results.
  2. Return to the mapping when additional changes are required.
  3. After the mapping completes successfully, review the success message indicating that the dataset is ready.
  4. Export the harmonized data.
final page harmonization

View the generated pipeline

Prophecy creates a pipeline behind the scenes to perform the harmonization. Open the generated pipeline to review the implementation and inspect the details of each gem.