> ## Documentation Index
> Fetch the complete documentation index at: https://cpaas.fireflo.au/llms.txt
> Use this file to discover all available pages before exploring further.

# Customer data

> How OMNI's Customer data battery builds audiences and traits, finds and merges duplicate contacts, keeps consent per channel, and takes in events from your website and server.

The **Customer data** battery helps you know who your contacts are and what they want to
hear. It adds audiences that keep themselves up to date, traits worked out from what
people do, duplicate finding and merging, consent per channel with a preference page,
and events from your own website and systems.

> [!NOTE]
>
> Your plan must include **Customer data**. Without it, every contact still keeps its
> messages and activity, and a STOP reply still stops messages — on every channel at once.

## Audiences

An **audience** is a group of people described by rules — "added to cart in the last 7
days and didn't order". People join and leave as they match, within a few minutes of what
they do. Open **Audiences** from the menu.

![The audiences list with how many people are in each, and an audience's rules being edited.](https://mintcdn.com/fire-flo-omno/jBCUISvbsujlPiEB/images/shots/contacts-audiences-light.webp?fit=max\&auto=format\&n=jBCUISvbsujlPiEB\&q=85\&s=0c2be96d30e7daa71eb2c8fc40473c91)

Audiences

### Build an audience

**1. Name it**

Choose **New audience**, and give it a name and, if you like, a description.

**2. Add conditions**

Choose whether people must match **all** or **any** of the conditions. You can add up
to 20 conditions in up to 5 groups.

**3. Check who matches**

**Matching right now** counts as you edit, and **Sample** shows some of the people.

**4. Save**

Choose **Save audience**. OMNI works out who's in, and keeps it current from then on.

| Condition | Matches people who… |
| - | - |
| **Did something** | did, or didn't do, an event — optionally with a property, such as a SKU |
| **Field** | have a contact field with a given value |
| **Tag** | have, or don't have, a tag |
| **Segment** | are, or aren't, in a segment |
| **Trait** | have a trait above, below or equal to a value — see [Traits](#traits) |
| **Consent** | can get marketing, or updates, on a channel |
| **Has email / customer id** | have, or have no, email or customer id |
| **New contact** | became a contact in the last so many days |
| **In another audience** | are, or aren't, in another audience |

![An audience's page with its rules, the Matching right now count, a sample of the people and where it is used.](https://mintcdn.com/fire-flo-omno/jBCUISvbsujlPiEB/images/shots/contacts-audiences--rules-light.webp?fit=max\&auto=format\&n=jBCUISvbsujlPiEB\&q=85\&s=d71e55f09ec18088f0c159b20e954f7b)

An audience's page: its rules, who matches right now, and where it is used.

**Used in** shows where an audience is used. An audience can be:

* the recipients of a broadcast on SMS, WhatsApp or RCS — see [Broadcasts](https://cpaas.fireflo.au/using/broadcasts.md);
* what starts an AI agent's workflow, when someone joins or leaves it — with
  [AI Agents](https://cpaas.fireflo.au/batteries/ai-agents.md);
* a condition in another audience.

An audience's page lists its members, newest first, below its rules.

![The members of the Gold and Platinum audience, newest first, below its rules.](https://mintcdn.com/fire-flo-omno/jBCUISvbsujlPiEB/images/shots/contacts-audiences--members-light.webp?fit=max\&auto=format\&n=jBCUISvbsujlPiEB\&q=85\&s=0ff318daac3eeb37cd3ed9f16a255988)

An audience's members, newest first.

## Traits

**Traits** are facts worked out for every contact from their messages, visits and deals.
See them under **Audiences → Traits**, and on each contact's page.

Built-in traits include **Last engaged**, **Last message from them**, **Last message to
them**, messages each way over 90 days, **Reply rate · 90 days**, **Delivered rate · 90
days**, **Preferred channel**, **Lifetime value** and **Open deals** (from
[Pipelines](https://cpaas.fireflo.au/batteries/pipelines.md)), **Activity · 30 days** and **First seen**. Messages on
SMS, WhatsApp and RCS all feed them.

![The traits list with built-in and custom traits and how each is worked out.](https://mintcdn.com/fire-flo-omno/PE0OUbPWjBA9XF0k/images/shots/contacts-traits-light.webp?fit=max\&auto=format\&n=PE0OUbPWjBA9XF0k\&q=85\&s=bafb78d36150304d094d3f838fcb6005)

Traits: the built-in ones and your own, and how each is worked out.

You can add a **custom trait** worked out from an event your website or server sends:
**how many times** it happened, **when it last happened**, or the **total of a number** in
it, over the last so many days — "Cart adds · 30 days", for example.

![The Custom trait dialog, working out a figure from an event your website or server sends.](https://mintcdn.com/fire-flo-omno/PE0OUbPWjBA9XF0k/images/shots/contacts-traits--custom-trait-light.webp?fit=max\&auto=format\&n=PE0OUbPWjBA9XF0k\&q=85\&s=436a8e66b3563f4ae4fab14f6efeb96d)

A custom trait, worked out from an event your website or server sends.

Traits show on each contact's page, and can be used in audience rules.

![A contact's page scrolled to the Traits card, worked out from their messages, visits and deals: last engaged, preferred channel, recent activity and first seen.](https://mintcdn.com/fire-flo-omno/PE0OUbPWjBA9XF0k/images/shots/contacts-traits--on-contact-light.webp?fit=max\&auto=format\&n=PE0OUbPWjBA9XF0k\&q=85\&s=fd16d2a260147c75748a999e5004b58e)

The Traits card on a contact's page.

## Duplicates and merging

OMNI looks for contacts that may be the same person every night: **Same email**, **Same
customer id**, **Same number**, or **Same name and email domain**. When it finds some,
**Possible duplicates** appears on the Contacts screen with a count.

![Pairs of contacts that may be the same person, each with the reason and a Merge button.](https://mintcdn.com/fire-flo-omno/PE0OUbPWjBA9XF0k/images/shots/contacts-duplicates-light.webp?fit=max\&auto=format\&n=PE0OUbPWjBA9XF0k\&q=85\&s=2da5498ffc029d16b37547a594ea2b69)

Possible duplicates

Each pair shows both contacts, why they look alike and how many messages each has. The
one with more history is offered as the one to keep.

**1. Open the pair**

Choose **Merge** on the pair.

**2. Pick what to keep**

Where the two differ, pick which value to keep. Everything else from both is kept.

**3. Merge**

The other contact's history moves to the one you keep. If both have an open ticket,
the older one is solved as merged.

![The Merge two contacts dialog, picking the values to keep where the two differ.](https://mintcdn.com/fire-flo-omno/jBCUISvbsujlPiEB/images/shots/contacts-duplicates--merge-light.webp?fit=max\&auto=format\&n=jBCUISvbsujlPiEB\&q=85\&s=034a3266f72d9992384baace7936303b)

Merging two contacts: pick the values to keep where they differ.

**Not the same** dismisses a pair; you can still see dismissed pairs.

On a contact's page, **Identity** lists every way OMNI recognises them — extra phone
numbers, email, customer id — and lets you add another.

## Consent per channel

With Customer data, consent is kept per channel and per kind of message:

* **Marketing** — campaigns, promotional templates, offers;
* **Updates** — replies, order and appointment updates.

Someone can stop marketing on WhatsApp and keep getting it on SMS, or stop SMS updates
without stopping everything. Without the battery, STOP stops every channel. Email has its
own consent too, and Voice is a channel people can stop, so someone can stop calls
without stopping messages.

Every change is recorded with where it came from — a keyword reply, the preference page,
an import, your server, your team or a merge — and is never edited. On a contact's page,
the **Consent** card shows where they stand on each channel, and **Change consent** lets
your team record a change. A reason is required, and kept as proof.

![A contact's Consent card: marketing and updates per channel, and each change with where it came from.](https://mintcdn.com/fire-flo-omno/jBCUISvbsujlPiEB/images/shots/contacts-consent--on-contact-light.webp?fit=max\&auto=format\&n=jBCUISvbsujlPiEB\&q=85\&s=1dd6a26ebe8875f1dc52bd03b3bc8852)

A contact's Consent card: where they stand on each channel, and every change.

![The consent settings with opt-in for marketing, stop words, start words and the preference page.](https://mintcdn.com/fire-flo-omno/jBCUISvbsujlPiEB/images/shots/contacts-consent-light.webp?fit=max\&auto=format\&n=jBCUISvbsujlPiEB\&q=85\&s=c263dd6d17706eed41369ccbada87d48)

Consent settings

Open **Settings → Consent** to set how it works for your account:

| Setting | What it does |
| - | - |
| **Require opt-in for marketing** | Off: everyone gets marketing unless they stop it. On: only people with a recorded opt-in for that channel get marketing. The screen shows how many contacts have no opt-in and would be skipped. |
| **Stop words** | A reply that is exactly one of these stops marketing on that channel. The word followed by ALL ("STOP ALL") stops everything. Works on SMS, WhatsApp and RCS, beside the usual STOP. |
| **Start words** | Replies that start messages again, beside the usual START. |
| **Confirm by reply** | Sends a confirmation — "You won't get offers on WhatsApp any more. Reply START to undo." — where the channel allows a free reply. |
| **Preference page** | The page title people see. |

**Held back · 7 days** lists campaigns that skipped people who stopped or didn't opt in.

### The preference page

Add `{{preferences_link}}` to any broadcast or template. It opens a page where the person
chooses what they hear from you:

* **Offers** on each channel your account has, one switch each;
* **Order and appointment updates**, which are always on;
* **Stop all messages**.

Links work for 90 days. After that, the person confirms their mobile number with a code.
A contact's own link is also on their **Consent** card.

## Data sources

**Settings → Data sources** takes in what customers do on your website and in your own
systems. Events join the contact they belong to and show on their timeline; they can feed
audiences and custom traits.

![Data sources: events in the last 24 hours, keys, adding the snippet to your website, sending from your server, and the live events.](https://mintcdn.com/fire-flo-omno/X4TeGSF_Y_wnma4R/images/shots/docs-data-sources-light.webp?fit=max\&auto=format\&n=X4TeGSF_Y_wnma4R\&q=85\&s=75a0addfc533d5f3369bc6554a715097)

Customer data → Data sources: keys, the website snippet and the events coming in.

The screen shows events in the last 24 hours, how many were sent in from your server and
website, visitors waiting for a phone number, and recent rejections. **Live events** lists
the last 50 sent in, with how each went.

### Keys

The keys on this screen are for **websites**. Choose **New website key**, name it and list the
websites it may be used from. A website key sits in your pages' HTML for anyone to read,
so it works only from those websites — listing a domain also covers its subdomains — and
it can only send events, never read anything.

Revoke a key and anything using it stops at once.

> [!NOTE]
>
> Your server sends events with an **OMNI API key**, not a key from this screen: make one in
> **Developer Tools → API keys** with the scope `cdp.events:write`. Server keys made here
> before (`sk_live_…`) were retired and no longer work; requests that still use one are
> refused. See [Customer data on the API](https://cpaas.fireflo.au/developers/customer-data.md).

### Sending events

* **From your website**: make a website key to get your snippet, and add it to your pages.
  Page views count on their own. A website key records events for its visitor only: to
  say who a visitor is when they log in or check out, identify them from your server
  with the visitor's id (see below).
* **From your server**: with an OMNI API key, identify people (by phone, email or
  customer id, with traits), send single events, or send up to 100 at a time — see
  [Customer data on the API](https://cpaas.fireflo.au/developers/customer-data.md). This needs the OMNI API in your
  plan.

People without a phone number are kept as visitors, and join the contact once a phone is
known.

## Who may use Customer data

| What | Who, by default |
| - | - |
| See audiences, traits, duplicates and consent | Anyone who can see contacts |
| Create, change and delete audiences | Owner, Admin |
| Merge contacts, record consent, add custom traits | Anyone who can change contacts |
| Change consent settings | Anyone who can change the account's settings — Owner and Admin |
| Manage data source keys | Owner, Admin |

An Owner or Admin can change these on the **Roles** screen. See
[Team and roles](https://cpaas.fireflo.au/using/team-and-roles.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.