ai
Agent-Assisted AI Segmentation in a Customer Data Platform (CDP): A Before/After Walkthrough With Audit Trail
By Art Kukharenko · Published · Updated
Browse ai resourcesAI segmentation lets an analyst describe an audience in plain language while an agent drafts the segment definition. The safe version is a loop: the agent proposes a definition with its rationale, automated checks test consent, size, overlap and sensitive-attribute leakage, a person approves, and activation writes an audit record. This walkthrough follows one request through a customer data platform (CDP) and compares it with vendor natural-language builders.
Who this is for: marketing-operations leads, data teams and DPOs evaluating agents for audience building. The company, counts and identifiers below are invented to illustrate the flow; they are not a case study or a benchmark. This page belongs to the AI hub.
Before: the manual workflow
In many teams, an analyst files a ticket describing the audience. A data specialist translates it into a query, checks consent by habit, exports a list and hands it to the channel team. The definition survives only in someone's query history. Why those rules were chosen, which assumptions were made and who approved the result often go unrecorded. Each gap becomes a problem when a regulator, a customer or an auditor asks how a person landed in an audience.
The request
Step 1: the agent proposes a definition
The agent turns the text into a structured definition using only attributes in the governed catalogue, and reuses an existing score instead of inventing one:
segment: winback_de_fr_draft
purpose: email_winback # consent purpose
population: country in (DE, FR)
include:
- last_order_date >= today - 365d
- days_since_last_email_open >= 60
- churn_risk_score_v3 >= 0.7 # governed score; "high" read as 0.7
exclude:
- open_complaint = true
- suppressed = true OR email_consent != granted
priority_rule: category_purchased = "pharmacy"
assumptions:
- "High risk" means churn_risk_score_v3 >= 0.7 (catalogue default)
rationale: Maps each phrase of the request to a catalogued attribute.
Three rules keep this step honest. The agent may use only catalogued attributes and must reject unknown fields. Ambiguous words must appear under assumptions, not be resolved silently. The stored artefact is the generated definition, because a model can return a different answer to the same prompt next week.
Step 2: automated QA checks
The platform runs checks the agent cannot skip or edit.
Scroll horizontally to compare all columns ↔
| Check | What it tests | Result on version 1 | Action |
|---|---|---|---|
| Consent and purpose | Every member has consent for email marketing and is not suppressed | 51,400 match; 3,200 removed; 48,200 remain | Pass; filter applied automatically |
| Size | Within policy range and above the minimum audience size | 48,200, in expected range | Pass |
| Overlap | Members already in active campaigns | 6,100 (12.7%) in a loyalty campaign | Warn; apply frequency cap |
| Sensitive attributes | No special-category data or close proxies | Pharmacy purchases can reveal health data | Fail |
| Freshness and quality | Score age and null rates | Score two days old; 0.4% nulls | Pass |
| Untrusted text | No free-text fields used as criteria | None used | Pass |
The sensitive-attribute check matters most here. Under GDPR, health data is a special category whose processing is prohibited unless an exception applies 6, and a purchase pattern that reveals health status can raise the same issue. The agent proposes a replacement for the pharmacy rule, lifetime order value in the top 30%, and the analyst accepts. Version 2 passes. The AI governance policy template treats this kind of inference as a prohibited use unless the DPO approves.
Step 3: human approval
The approver sees the request, the definition as a diff against version 1, the rationale and the QA report. They can approve, edit or reject. Approval binds to the hash of the exact definition, so any later change voids it. For audiences above a size threshold, or those using a new data class, a second approver signs off. The approver is not the requester.
Step 4: activation
The agent has no activation right. After approval, an activation service re-checks consent and suppression at send time, because consent can change between approval and send, then syncs the audience to the destination. See Consent Withdrawal Across Channels for the suppression design.
Step 5: the audit record
The ledger entry is written by the gateway and the activation service, not by the agent. An illustrative record, with placeholder values:
{
"record_id": "aud_000412",
"event": "segment.activated",
"requested_by": "analyst_17",
"request_text_ref": "req_8841",
"purpose": "email_winback",
"legal_basis": "consent",
"agent": {"id": "segment-agent", "version": "1.4.2", "model": "model-id@version"},
"proposal": {"definition_ref": "seg_203@v2", "definition_sha256": "9f2c...", "rationale_ref": "rat_203"},
"qa": {"consent": "pass", "size": "pass", "overlap": "warn 12.7%", "sensitive": "fail v1 / pass v2", "freshness": "pass"},
"approval": {"approver": "marketing_ops_04", "decision": "approved", "bound_hash": "9f2c...", "at": "<timestamp>"},
"activation": {"destination": "email_platform_a", "audience_size": 48200, "consent_check_id": "cc_7712"},
"policy_version": "ai-policy-2026.2",
"ledger": {"prev_hash": "ab41...", "hash": "c7d0..."}
}
These fields answer the questions an auditor asks: who asked, why, what the agent proposed and with which model, what the checks found, who approved exactly what, what was sent and to how many, and whether the chain of entries is intact. PrivyCDP's AI layer includes agent-assisted segmentation and workflow QA with human oversight, and logs each AI-assisted action in an append-only audit ledger. Reason codes for the model-driven parts are covered in Explainable AI for Customer Decisions.
After: what changed
Scroll horizontally to compare all columns ↔
| Dimension | Before | After |
|---|---|---|
| Definition record | A query in someone's history | Versioned, hashed definition with stated assumptions |
| Consent check | Varies by person | Automatic, and repeated at send time |
| Sensitive-attribute check | Often skipped | Automatic, with a documented failure and fix |
| Overlap and fatigue | Discovered after the send | Warned before approval |
| Approval | Informal | Named approver, bound to the exact definition |
| Audit trail | Reconstructed from emails | Append-only ledger entry per action |
How vendor natural-language builders compare
We read the public pages below on 17 October 2026. Marketing pages and documentation differ, and features may exist that these pages do not describe.
Scroll horizontally to compare all columns ↔
| Vendor | What the pages we opened say | Governance questions left open |
|---|
| Amperity (Pér agent) | Pér is described as an AI agent on resolved customer data that shows its sources, lets users approve, refine or reject recommendations, runs within permissions you set, and earns autonomy task by task. The page does not describe building segments from prompts and does not mention an audit log, though it says Pér reports back on every action 5. | Segment-creation scope, and whether decisions are exportable as records |
Whatever the vendor, ask five questions. Where is the generated definition stored, and can you export it? Which checks run automatically, and can the agent skip them? Is approval bound to the exact definition that ships? Does the vendor's log live outside the agent's reach? Can you reproduce an audience from the log alone?
Pitfalls
- Silent interpretation. Words like "high risk" or "recent" get resolved without a record. Require stated assumptions.
- Invented fields. Validate every attribute against the catalogue.
- Rubber-stamping. Track approval time and rejection rate, and sample approved segments.
- Approval that does not bind. Tie approval to the definition hash.
- Untrusted text in context. Free-text fields such as notes or lead descriptions can carry instructions; ForcedLeak showed this against a CRM agent 9. Exclude them from prompts and criteria.
- Proxy attributes. Test composition against sensitive categories, not just column names 6.
- Tiny audiences. Small segments can identify individuals; set a minimum size.
- Logging only the prompt. Log the generated definition and the QA output.
- Personal data in rationales. Keep explanations free of identifiers.
- Significant automated decisions. If an audience drives credit, pricing or access, GDPR Article 22 applies and the use belongs in the highest governance tier 7.
Checklist
- The agent can use only catalogued attributes and governed scores.
- Ambiguous terms are recorded as assumptions.
- Consent, size, overlap, sensitive-attribute and freshness checks run automatically.
- A minimum audience size is enforced.
- The approver is a named person other than the requester.
- Approval binds to the hash of the exact definition.
- The agent has no activation, consent or suppression write rights.
- Consent and suppression are rechecked at send time.
- The ledger is append-only and written outside the agent.
- Free-text fields are excluded from criteria and prompts.
To see how an AI layer for segmentation, workflow QA and reporting works inside a customer-owned deployment, with human oversight and an append-only audit ledger, read the product overview.
Related reading: the AI hub, 7 Things AI Agents Should Never Do With Customer Data, MCP for Salesforce, HubSpot and Your Own Customer Data Platform and Identity Resolution Explained.
Frequently asked questions
What is AI segmentation?
AI segmentation uses machine learning or language models to create or suggest customer segments. In an agent-assisted version, an analyst describes the audience in plain language, the agent drafts a definition, and the platform checks it and asks a person to approve before anything is activated.
Can AI build customer segments from plain English?
What should an audit trail for AI segmentation include?
Record who requested the audience and why, the agent and model version, the generated definition and hash, QA results, the approver and the exact hash approved, the destination and audience size, the consent check, the policy version and a tamper-evident chain hash. Store it outside the agent's control.
Does AI segmentation need human approval?
For activating an audience, yes. Reading counts or drafting definitions can run without approval, but activation affects real people and depends on consent. Approval should be by a named person, bound to the exact definition and recorded. Higher-risk audiences should need a second approver and a data protection review.
Is AI customer segmentation GDPR compliant?
It can be, depending on the design and use. Key points include purpose limitation and minimisation, a valid basis such as demonstrable consent 8, no processing of special-category data without an exception 6, and safeguards where decisions are solely automated with significant effects 7. Complete a data protection impact assessment where profiling is extensive, and take legal advice.
Sources
- Adobe, AI Assistant in Adobe Experience Platform (opened 17 October 2026) Open source
- Adobe, Segmentation overview (opened 17 October 2026) Open source
- Salesforce, Marketing segmentation Open source
- Salesforce, Data 360 Open source
- Amperity, Pér AI customer intelligence agent Open source
- GDPR Article 9 Open source
- GDPR Article 22 Open source
- GDPR Article 7 Open source
- Noma Security, ForcedLeak Open source
Put this evaluation into practice.
Explore the customer data platformThis article is general information, not legal advice.
Further reading
- AI and customer data operations
- 7 Things AI Agents Should Never Do
- AI Governance for Marketing: A Policy
- Explainable AI for Marketing
- MCP for Salesforce, HubSpot and Your CDP
Published: · Updated:
Publication date recorded for the approved release. Editorial updates do not establish legal approval or a customer result.