Contextual identity

Contextual identity lets a tenant resolve the same records in more than one way.

Contextual identity allows identity graphs to exist for any use case. For example, an identity graph for loyalty programs, an identity graph for marketing and activations, and an identity graph for operations.

When a tenant has more than one identity graph, Stitch resolves identity once for each identity graph. Each identity graph has its own Stitch rules, table settings, and Stitch settings, and produces its own Stitch outputs. A pair of records can resolve to the same profile in one identity graph and to different profiles in another.

All identity graphs use the same source tables. Each database is built from the outputs of one identity graph.

Important

Contact your Amperity representative to enable contextual identity for your tenant.

When to use more than one identity graph

Add an identity graph when you need one of the following:

  • A different level of identity. For example, one identity graph that resolves records to the accounts customers sign in with and another that resolves the same records to people.

  • Different rules at the same level of identity. For example, two identity graphs that resolve records to individual people, where one requires an exact match on a loyalty ID and the other does not.

Example: accounts and customer 360

A retailer builds two identity graphs from the same source tables:

  • Accounts. Resolves records to the accounts customers use to identify themselves online and in store. Stitch rules separate records that have different phone numbers, email addresses, or private label credit card numbers, and the identity graph uses No matching model. Databases built from this identity graph support personalization, clienteling, and abandoned cart recovery, where showing a customer activity that isn’t theirs would cost their trust.

  • Customer 360. Resolves records to people. Stitch rules cluster records on phone number, email address, and private label credit card number, and Amperity AI evaluates the remaining records. Databases built from this identity graph support analytics and paid media, where reach matters more than precision.

Both identity graphs use the same records, so totals such as revenue are the same in each. Only how records are grouped into profiles differs.

How identity graphs change Stitch

Area

One Stitch configuration

Identity graphs

Rules and settings

One set of Stitch rules and Stitch settings applies to the whole tenant.

Each identity graph has its own Stitch rules and Stitch settings.

Tables

Tables are selected for Stitch. Foreign keys assign Amperity IDs to interaction tables.

Each identity graph sets an action for each table, such as Resolve identity, Recognize AmpID, or Ignore.

Bad values, labels, and nicknames

Apply to the whole tenant.

Each identity graph uses the tables that you set to the Bad values, Hard labels, or Nicknames action.

Before you begin

One-to-one Stitch is not valid with contextual identity.

The Stitch page

When contextual identity is enabled, the Stitch page shows a card for each identity graph. Each card shows:

  • The name of the identity graph.

  • A deterministic or probabilistic label. An identity graph is deterministic when it has Stitch rules and uses No matching model for records that no rule clusters or separates. Otherwise it is probabilistic.

  • When the identity graph last ran, the number of clusters, and how much that number changed.

Click View details to open an identity graph.

Add an identity graph

  1. On the Stitch page, click Create ID graph.

  2. In Name, enter a name for the identity graph.

  3. Under Identifier, enter an Identifier Name, a Singular Name, and a Plural Name. For example, “Customer” and “Customers”, or “Company” and “Companies”.

    In a database that uses the identity graph, Identifier Name replaces the display name of the Amperity ID field in the Customer 360 table, and Singular Name and Plural Name replace the names used for its profiles. The column in Stitch output tables is still named amperity_id.

  4. Under Configuration reference, choose one of the following:

    • Start from scratch to start without rules or table settings.

    • Choose existing graph to copy the Stitch rules, Stitch settings, and table settings of an identity graph you select.

  5. Click Create.

Set table actions

Table settings control how an identity graph uses each table. Only tables with at least one semantic tag are listed.

  1. Open the identity graph, and then click Table settings.

  2. For each table, choose an Action.

  3. Click Save.

Action

Description

Resolve identity

Stitch uses the records in the table to resolve identity in this identity graph.

Recognize AmpID

Stitch does not use the table to resolve identity. Rows in the table get this identity graph’s Amperity ID from a foreign key. The table must have exactly one foreign key that is also tagged on a table set to Resolve identity, and it must not have a field tagged with the amperity-id semantic. The Keychain column shows the foreign key that is used.

Bad values

The table is a bad-values blocklist for this identity graph.

Hard labels

The table is a Stitch labels table for this identity graph.

Nicknames

The table is a nicknames table for this identity graph.

Ignore

The identity graph does not use the table.

When a table does not have the semantic tags that its action requires, the row shows a warning. Tag the table in the feed, or choose a different action.

Configure rules and settings

Open the identity graph, and then click Settings. The Stitch settings dialog box for an identity graph has the Rules, General, Bad values, and Advanced tabs. The Bad values tab is shown only to users who have permission to view PII. Changes apply only to that identity graph.

For example, an identity graph that resolves records to companies has a rule that clusters records that have the same company ID. It does not have a rule that clusters records on a buyer ID alone.

For more information about rules and settings, see Rules and Configure Stitch.

Run identity graphs

  • To run one identity graph, open it, click Run, and then click Confirm.

  • To run more than one identity graph, on the Stitch page click Generate all graphs. Under ID graphs to generate, select the identity graphs to run, and then click Run.

Scheduled workflows run every identity graph, and then run databases. A workflow that runs specific databases runs only the identity graphs those databases use.

Choose the identity graph for a database

Each database uses the Stitch outputs of one identity graph. Stitch output tables have the same names in every identity graph, such as Unified_Coalesced. A database can use only the Stitch output tables of its own identity graph.

  • When you create a database, choose an identity graph from Identity graph. This is required.

  • To change the identity graph for an existing database, open the database and choose an identity graph from Identity graph in the database settings.

Custom core tables are grouped by identity graph. Custom core tables that are not assigned to an identity graph are in the Legacy folder. A custom core table that you create in an identity graph’s folder can use only that identity graph’s Stitch output tables.

Choose the identity graph for a profile collection

When you create a profile collection in a tenant that has more than one identity graph, choose an identity graph under Identity graph. The identity graph cannot be changed after the profile collection is created.