---
updatedAt: 2025-12-15T13:08:17.000Z
agentTools:
  projectIndex: https://cloud.docs.tamr.com/llms.txt
---

# Steps Completed by B2B Customers

When you create a <<dp>> using the B2B customers template, <<product>> creates a mastering flow with steps specific to mastering and enriching business customer data.

The following table describes each step in the B2B customers flow, and explains which steps usually need to be edited for your data.

If you need to make changes to the mastering flow beyond those described in this documentation, contact Support at <a href="mailto:help@tamr.com"><help@tamr.com></a> for assistance.

[block:html]
{
  "html": "<table bgcolor=\"#ffffff00\">\n  <tr bgcolor=\"#FFFFFF\">\n   <th>Usually Requires Changes\n   </th>\n   <th width=\"25%\">Step\n   </th>\n   <th>Description\n   </th>\n  </tr>\n  <tr bgcolor=\"#FFFFFF\">\n   <td><center>✅</center>\n   </td>\n   <td>Add Data\n   </td>\n   <td>You verify that source data meets both <a href=\"https://cloud.docs.tamr.com/docs/requirements-for-input-datasets\">general requirements</a> \n     and <a href=\"https://cloud.docs.tamr.com/docs/source-dataset-requirements-for-b2b-customers\">template-specific \n     requirements</a>. Then, you \n     <a href=\"https://cloud.docs.tamr.com/docs/adding-datasets\">add source data</a>.\n   </td>\n  </tr>\n  <tr bgcolor=\"#FFFFFF\">\n   <td><center>✅</center>\n   </td>\n   <td>Align to Customer Data Model\n   </td>\n   <td>You <a href=\"https://cloud.docs.tamr.com/docs/mapping-input-fields-to-a-unified-schema\">map input columns</a> \n     to attributes in the supplied schema. If you add attributes to the unified schema, you will need to update the following steps, as described in the rows below, to ensure that these attributes appear in your final mastered entities:\n<ul>\n  <li>Consolidate Records</li>\n  <li>Configure Attributes</li>\n     </ul>\n   </td>\n  </tr>\n  <tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n    <td>Create <code>tamr_record_id</code>\n   </td>\n   <td>This transformation step ensures that each source record has a unique primary key across all \nsource datasets by adding a new primary key field: <code>tamr_record_id</code>.  The <code>tamr_record_id</code>\n is a 128-bit hash value of the source dataset name and the source primary \nkey.  See the\n <a href=\"https://docs.tamr.com/new/docs/function-docs#tamr_id_128\" target=\"_blank\">Tamr Core \n   documentation</a> for a description of the function used to generate the hash value. \n     <br><br>\n     <b>Important:</b> If records within the same source dataset have duplicate primary key values, the <code>tamr_record_id</code> value for those records will also be duplicates.\n     <br><br>If you mapped  an empty placeholder column to the <code>trusted_id</code> attribute, add the following transformation: <code>SELECT *, '' as trusted_id;</code>.\n    </td>\n  </tr>\n  <tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n    <td>Prepare Data for Address Enrichment\n   </td>\n   <td>This step transforms the data in the unified dataset to match the expected inputs for the address enrichment service.\n   </td>\n\n   </td>\n  </tr>\n<tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n   <td>Standardize URL\n   </td>\n  <td>This step provides a cleaned version of the website domain in <code>url</code> attribute values. The cleaned domain is available in the Website Domain field in the mastered entity. \nSee <a href=\"https://cloud.docs.tamr.com/docs/url-standardization-and-cleaning\">URL \n     Standardization and Cleaning</a>.\n   </td>\n  </tr>\n<tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n   <td>Enrich Address\n   </td><td>\n   This step standardizes and validates address information, and enriches addresses with latitude, longitude, and detailed address information.\n See \n<a href=\"https://cloud.docs.tamr.com/docs/address-standardization-validation-and-geocoding\">\nAddress Standardization, Validation, and Geocoding</a>.\n   </td>\n  </tr>\n\n<tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n    <td>Prepare Address Fields\n   </td>\n   <td>This step transforms the data in address fields in the unified dataset to prepare for clustering.\n   </td>\n\n   </td>\n  </tr>\n<tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n    <td>Prepare Data for Phone Enrichment\n   </td>\n   <td>This step transforms the data in the unified dataset to match the expected inputs to the phone number \ndata quality service included in the mastering flow. This step replaces empty country values in source\n records with the country returned by the Enrich Address step.\n\n   </td>\n  </tr>\n  <tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n   <td>Enrich Phone\n   </td>\n   <td>This step validates, standardizes, and enriches phone number data. See \n<a href=\"https://cloud.docs.tamr.com/docs/phone-enrichment\">Phone Number Enrichment</a>.\n   </td>\n  </tr>\n\n \n    <tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n    <td>Prepare Fields for Tamr Enrich ID Step\n   </td>\n   <td>This step prepares fields to be used by the Tamr Enrich ID step.\n\n   </td>\n  </tr>\n  <tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n   <td>Enrich Company Name\n   </td>\n   <td>This step cleans and enriches company name data. See <a href=\"https://cloud.docs.tamr.com/docs/company-enrichment\">Company Name Enrichment</a>.\n   </td>\n  </tr>\n<tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n   <td>Tamr Enrich ID\n   </td>\n   <td>This step matches each company in your source datasets to a Tamr Enrich ID. If a matching \n     Tamr Enrich ID is identified, the ID is used by the clustering model to identify duplicate source \n     records. The ID is also used by the Tamr Enrich step to add the referential data from your selected \n     data provider to your mastered entities, if available.  \n     <br><br>\n     The step looks for a matching Tamr Enrich ID based on the following attributes, and prioritizes matches available in the public sources:\n     <ol><li>First, by company name and full address.</li>\n       <li>Next, by company name, city, country, and either region or postal code.</li>\n       <li>Next, by company name and country.</li>\n       <li>Next, by the cleaned phone number.</li>\n       <li>Finally, by the cleaned website.</li></ol>\n    \n     See <a href=\"https://cloud.docs.tamr.com/docs/tamr-enrich-id\"> Tamr Enrich ID</a> for information about this enricher, including the output fields it adds to your data.\n   </td>\n  </tr>\n  <tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n   <td>Prepare for Clustering\n   </td>\n   <td>This step transforms the data in the unified dataset to create the fields used by the \ntrained clustering model to identify similar and matching records. \n<br><br>\nThe fields created as input to \n     the model are prefixed with <code>ml_</code>. Many of these <code>ml_</code> fields are created as arrays of unified source \nfields and fields added by the enrichment services. The model identifies \nthe most similar values across the arrays and assigns weights based on these similarities.\n   </td>\n  </tr>\n<tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n   <td>Apply Clustering Model\n   </td>\n   <td>This step groups records that refer to the same entity into a cluster, using the trained model.\nSee <a href=\"https://cloud.docs.tamr.com/docs/features-of-company-mastering-with-firmographic-enrichment-copy\">Features of B2B Customers</a>.\n   </td>\n  </tr>\n<tr bgcolor=\"#FFFFFF\">\n   <td><center>✅</center>\n   </td>\n   <td>Consolidate Records\n   </td>\n   <td>This step applies rules to produce a single record, called the mastered entity record, that best represents a cluster. For most fields, these rules select the most common value from the clustered records.\n<br><br>\n     Additionally, this step adds a Tamr ID (<code>tamr_id</code>) to each mastered entity record. The Tamr ID \nis a unique, persistent id.\n<br><br>\nIf you added new attributes in the Schema Mapping step, add lines in the transformations to \ntell Tamr Cloud what value to set for each attribute when creating the mastered entity. See \n<a href=\"https://cloud.docs.tamr.com/docs/transforming-your-data\">Modifying Record Consolidation Transformations</a>.\n   </td>\n  </tr>\n<tr bgcolor=\"#BEBEBE\">\n   <td><center>✅</center>\n   </td>\n   <td>Tamr Enrich\n   </td>\n   <td>This step enriches each mastered company entity that has a Tamr Enrich ID with referential \ndata data from a public source, if available. By default, Tamr enriches each company with the best match from the \nthese public sources. \n     <br><br>For example, if Tamr identifies a match in both the public sources and in \n BoldData, this step enriches your data with the match from the public sources, even if the BoldData match is a higher confidence match.\n<br><br>\n\n\n See <a href=\"https://tamr-cloud-group.readme.io/docs/tamr-enrich\">Public Source Enrichment</a> for the attributes added by the public sources.\n     <br><br><b>Note:</b> If you would like to use a data provider other than the Public Sources \nservice, contact Tamr at <a href=\"mailto:help@tamr.com\">help@tamr.com</a>\n      to discuss data provider entitlement.\n   </td>\n  </tr>\n  <tr bgcolor=\"#BEBEBE\">\n   <td><center>❌</center>\n   </td>\n    <td>Calculate Similarity Scores\n   </td>\n   <td>This step calculates the similarity between attribute values in the mastered entity and the attribute values\nreturned by your selected data provider. This step provides both an average similarity between the mastered entity and the \nvalues returned by the data provider, and attribute-level similiarity for key attributes.  \n     \n     <br><br>Scores range from 0-1, with 0 being low similarity and 1 being high similarity. To calculate these scores, the step first splits the text into tokens on \nspaces and special characters (with the exception of underscore (_) characters), removes special characters, and converts all letters to lowercase. \nThen, the step uses a Jaccard similarity function to evaluate the similarity between tokens, returning\n     a score between 0-1.\n\n<br><br>Unlike other scores, phone number and website similarity are either 0 or 1.  A similarity of 1 is returned\nif the characters in the cleaned source phone number or website and phone number or website returned by the data provider are an exact match, or \nif one value is contained in the other. Otherwise, the similarity is 0.\n\n<br><br>You can review these scores on the Entity Details page after the flow runs, and investigate entities with low \n     similiarity scores.\n     \n     <br><br>\n     This step calculates the following similarity scores:\n<ul>\n  <li>Tamr Enrich Average Similarity</li>\n  <li>Tamr Enrich Name Similarity</li>\n  <li>Tamr Enrich Alternate Name Similarity</li>\n  <li>Tamr Enrich Address Line 1 Similarity</li>\n  <li>Tamr Enrich City Similarity</li>\n  <li>Tamr Enrich Region Similarity</li>\n  <li>Tamr EnrichPostal Code Similarity</li>\n    <li>Tamr Enrich Phone Number Similarity\n</li>\n  <li>Tamr Enrich Website Similarity</li>\n     </ul>\n   </td>\n  </tr>\n<tr bgcolor=\"#FFFFFF\">\n   <td><center>✅</center>\n   </td>\n   <td>Configure Attributes\n   </td>\n   <td>You configure how mastered entity attributes appear in Tamr Cloud and published datasets. If you added new attributes in the Schema Mapping step, add and map those attributes in this step to include them in your final mastered entity output. See \n<a href=\"https://cloud.docs.tamr.com/docs/configuring-data-display-in-studio\">Configuring Data Display</a>.\n  </td>\n  </tr>\n</table>\n"
}
[/block]