warn mode, and findings are informational, not legal advice.
What you’re building
The PyAI stack for this build
Build order
1
Enable Trace with the packs you need
One
PUT /v1/trace/config sets the org default (override per agent with
agent_id). Start in warn mode: everything is scored and logged, nothing
touches the call. The Trace guide has the full
config body.2
Read your exposure headline
GET /v1/trace/exposure?window_days=30 returns interactions scanned, the
share with a compliance gap, the per-rule exposure ranking, and the verdict
mix. This is the number your compliance lead puts in a deck.3
Build the review queue
Pull
GET /v1/trace/violations?severity=critical (filter by rule_id or
interaction_id) and page through GET /v1/trace/interactions?verdict=FAIL
for the worst calls. Each interaction detail carries the full evidence view
plus the audit hash.4
Wire the alerts feed
The semantic findings layer catches what deterministic rules cannot
(indirect opt-outs, hallucination versus knowledge base). The
compliance-officer feed is
GET /v1/trace/findings?action=escalate.5
Escalate modes when ready
Move from
warn to modify (redact PII, inject disclosures), block, or
human_handoff per agent as confidence builds. Every mode is fail-open:
compliance tooling never takes your calls down.The Compliance / Trace tab in the console
renders all of this (Overview, Interactions, Alerts) with no code, so your
compliance team gets the dashboard while you build the integrations.
FAQ
Which regulations does PyAI Trace cover out of the box?
Built-in rule packs cover TCPA, HIPAA, PII, and brand voice, and you can upload custom packs in the Trace DSL (POST /v1/trace/rule-packs). Pack wording and
citations are curated separately, and findings are informational rather than
legal advice.
Does Trace work on calls that do not run on PyAI?
Trace scores calls that run on the PyAI platform (Omni agents and calls carried on PyAI telephony). For recordings of external calls, the conversation-intelligence pipeline (Hear batch plus your own checks) is the right tool.Can Trace stop a non-compliant call in real time?
Yes, when you move pastwarn: modify redacts PII and injects missing
disclosures inline, block suppresses non-compliant output, and
human_handoff escalates to a person. All modes are fail-open.