Skip to main content

CT-AI Security & PII

CT-AI encrypts stored provider credentials, redacts configured personal data before external LLM requests leave Call Telemetry, and logs tool activity across a tenant-isolated audit ledger.

How PII Redaction Works​

When redaction is enabled, Call Telemetry transforms matching fields inside the application boundary before sending tool outputs to your configured LLM provider:

  1. You ask a question in the AI chat drawer or from a detail-view button.
  2. CT-AI runs the read-only capability query against your organization's CDR, device, or policy tables.
  3. Configured PII masks scrub phone numbers, caller names, and contact fields in the tool payload.
  4. Only redacted context is transmitted to the external LLM.
  5. Call Telemetry streams the assistant answer back to your session.

The PII Redacted before LLM indicator appears in the composer footer whenever organization redaction is active.

Per-Org PII Policy Settings​

Administrators configure PII controls under Settings → AI Settings in the Privacy & PII Protection section (PII Redaction is off by default). Enable PII Redaction and choose from three independent toggles to control what gets masked:

Mask Phone Numbers​

Replaces middle digits with asterisks while retaining leading country/area digits and the final four digits so patterns remain debuggable:

OriginalRedacted
151255512341512***1234
+442071234567+4420***4567

Mask Caller Names​

Replaces personal caller and callee names with deterministic aliases within the conversation so the model can correlate repeated callers without receiving identities:

OriginalRedacted
John SmithCaller A
Jane DoeCaller B

Mask Contact Info​

Strips supplementary directory attributes before sending tool outputs to the LLM:

  • Email addresses
  • Department names
  • Company names
  • Physical street addresses

Credential & Header Encryption​

  • AES-256-GCM storage encryption: Provider API Key values and Custom HTTP Headers are encrypted in PostgreSQL at rest.
  • Write-only secret handling in UI and API: Saved keys and custom header values return masked previews (leaving blank preserves the stored secret on subsequent edits).
  • Audit log scrubbing: Configuration audit events redact saved API key and custom HTTP header values to [REDACTED] before persisting telemetry records. Hop-by-hop framing headers (Host, Content-Length, Transfer-Encoding, Connection) and newline characters are rejected at validation time.

On-Premises & Private Inference​

Data boundaries follow where your configured inference endpoint runs:

  • Local or internal inference: Self-hosted Ollama and internal OpenAI Compatible endpoints (such as an on-premises vLLM, SGLang, LM Studio, or private LiteLLM router inside your network perimeter) keep inference traffic inside your infrastructure. Organizations operating exclusively on private endpoints may adjust redaction toggles under Settings → AI Settings if unmasked caller context is required.
  • Cloud APIs and external gateways: First-party cloud providers and external OpenAI Compatible proxies (such as Cloudflare AI Gateway or OpenRouter) forward requests across external networks; enable PII redaction under Privacy & PII Protection if required by your data-handling policy.

Audit Ledger​

Every CT-AI interaction is recorded in an organization-scoped audit ledger across three categories:

Record CategoryLogged Fields
Turn RecordsTurn request ID, user, org, timestamp, conversation ID, provider, served model, status, latency, and redacted request preview/hash
Tool Call RecordsEach capability call: tool name, redacted arguments preview/hash, result summary, status, and duration
Usage RecordsInput tokens, output tokens, total tokens, and provider usage metadata

What Is Logged​

  • User identity and org ID — which authenticated user initiated each turn
  • Timestamps and latency — turn and per-tool execution timings
  • Provider and model provenance — configured provider, requested model, and upstream served model ID
  • Tool invocations — capability names and redacted argument previews
  • Token consumption — prompt, completion, and total token counts per turn

Retention Policy​

Historical turn previews and tool-call argument/result previews are automatically scrubbed after 30 days by default. Adjust PII Retention (days) under Settings → AI Settings (Privacy & PII Protection) to match your retention policy.