All posts

Integration guide: SSO, PII redaction and CRM for a realtime voice AI product

How DULTRA, our AI sales-coaching product, connects to a company's identity provider, removes personal data from transcripts and writes to the CRM. Written for security and IT reviewers, including what it does not do yet.

In short

DULTRA is a product we build and run. Sales agents practise calls against an AI customer by voice, and real calls are scored afterwards. Before a company can use it, someone in security or IT has to answer four questions: where does the audio go, how do people sign in, what happens to personal data, and what does it write to our CRM. This page answers them from the code, in that order, and ends with the list of things the product does not do yet.

QuestionShort answer
Does the browser talk to the AI provider?No. Audio goes through our server, which holds the credential.
Where does the live voice session run?Vertex AI, region europe-west1 (Belgium).
Which single sign-on protocol?OpenID Connect, with PKCE. SAML is not available yet.
Is personal data removed before storage?Yes, from transcripts, in two stages. Raw audio is not kept unless the customer turns that on.
What is written to the CRM?One activity per analysed call, on the deal or contact it belongs to.

1. Where the audio goes

  1. BrowserMicrophone and speaker. Audio goes up at 16 kHz and comes back at 24 kHz, over a WebSocket.
  2. DULTRA serverHolds the cloud credential and relays the audio to a live session on Vertex AI in europe-west1.
  3. Stage 1: patternsThe transcript text passes a set of patterns. This stage always runs.
  4. Stage 2: Google Cloud DLPDe-identification by a classifier, in europe-west1.
  5. Database, scoring, CRMThe de-identified text is stored and scored, and the result is added to the CRM as an activity.

In a practice call the agent’s browser opens a WebSocket to the DULTRA server and sends microphone audio as 16 kHz PCM. The server opens the live session with the model on Vertex AI and relays audio both ways. The AI customer’s voice comes back at 24 kHz.

The browser never receives a cloud credential, not even a short-lived one. That is a deliberate choice. Handing the browser a token for the model would be simpler and would save a network hop, but it would also let the client talk to the model without our prompt, our limits or our logging in between.

  • The live session is opened in the region europe-west1. The region is a constant in the code, not a setting.
  • Turn-taking uses the model’s own voice activity detection. It treats 1.2 seconds of silence as the end of a turn.
  • A voice session is closed by the server after 30 minutes at most.

Tips during a real call work differently. That path only listens: it receives audio in chunks and returns short text tips to the agent’s screen. It never speaks into the call.

What this page does and does not claim about regions

We state a region here for two calls only: the live voice session and the de-identification step in section 3. Both are europe-west1. Scoring, embeddings and the database are separate services. Ask us for the full data path for your deployment; we agree it in writing before a pilot starts.

2. How people sign in

Single sign-on uses OpenID Connect. Each customer organisation registers its identity provider with a client ID, a client secret and the email domain it is responsible for. Any provider that implements standard OpenID Connect can be configured this way.

The sign-in flow enforces four things:

  • PKCE is always on. This blocks an attacker from injecting a stolen authorisation code.
  • The issuer is validated. A token from a different identity provider is rejected.
  • The email must be verified. If the provider says email_verified is false, sign-in fails. Some providers report false for pending invitations and self-registered domains, and that must not grant access.
  • The email domain must match the organisation’s. Shared endpoints, such as a multi-tenant Microsoft or Google login, can then not be used to sign in to someone else’s organisation.

The requested scopes are openid, email and profile. No refresh token is requested, because the product issues its own session cookie after the callback. The client secret is stored encrypted with AES-256-GCM.

Accounts and roles

An account is created the first time a person signs in through their identity provider. The organisation is taken from the verified email domain, never from anything the browser sends. Every account created this way starts with the sales agent role. The role and the organisation cannot be set from a sign-up request at all; the server ignores those fields and derives both itself.

Without single sign-on, public sign-up is closed. An account can only be created with a valid invitation whose email matches, or from an email domain that we have bound to the organisation in advance.

Other sign-in controls

  • Sign-in and sign-up attempts are limited to 10 per IP address in 15 minutes.
  • Passkeys are supported. Our own platform administrators must register one.
  • Actions by our platform administrators are written to an audit table that only accepts new rows. Database triggers block updates, deletes and truncation, and each row carries a SHA-256 hash that includes the previous row’s hash, so a gap or an edit is detectable.

3. What happens to personal data

Sales calls contain names, phone numbers, addresses and, in Lithuania, personal codes read out loud. Transcripts are de-identified before they are written to the database, and the scoring step receives the de-identified text.

Stage 1: patterns

The first stage is a set of patterns that always runs, with no network call. It covers Lithuanian personal codes (asmens kodas), phone numbers, IBANs, email addresses, payment card numbers, street addresses and dates of birth.

Person names are deliberately not matched by pattern. In conversational Lithuanian a name pattern produces too many false matches on products, places and industry terms.

Stage 2: Google Cloud DLP

The second stage sends the text to Google Cloud DLP in europe-west1, which finds names and other identifiers with a classifier and replaces each one with a placeholder for its type. On top of the standard detectors we define four of our own: the personal code, the Lithuanian VAT number, the company code and the vehicle licence plate.

The detection threshold is set low on purpose. Names and addresses in informal speech are often rated only as possible matches, and we prefer to remove a word too many.

When stage 2 fails

If the DLP call fails for any reason, the result of stage 1 is used. The original text is never returned or stored in its place. The cost is stated plainly in the code and here: while DLP is unavailable, the patterns still remove the structured identifiers, but person names are not removed.

Audio and logs

  • Redaction applies to text. The audio stream that reaches the model during a call is not altered.
  • Keeping the raw audio of uploaded recordings is off by default. An organisation has to turn it on.
  • The processing log records that a piece of audio or text was processed by storing SHA-256 hashes of the input and the output. It does not store the content.
  • Each organisation has a retention period: 90 days by default, up to 2,555 days, or zero to delete data as soon as analysis has finished.

4. What is written to the CRM

After a call has been analysed, DULTRA adds one activity to the record the call belongs to. It does not change deal stages, amounts or owners.

SystemHow it connectsWhat it writes
PipedriveAPI token. We recommend a dedicated integration user, because a Pipedrive token has that user’s full access.A “Call analyzed” activity on the deal’s timeline.
Bitrix24Inbound webhook URL created by your administrator.A call activity linked to the lead, deal or contact. Compliance alerts are added as tasks.
TeamgateAPI credentials.An activity on the record.

Calls come in from telephony systems such as Genesys Cloud, which connects with OAuth client credentials, from an upload, or from the browser. Other CRMs, including Salesforce and HubSpot, are built on request and have no ready connector today.

5. How organisations are kept apart

Customer records carry an organisation ID and queries filter on it, including the vector search over a customer’s knowledge base. Isolation is enforced in the application code. Customers share one database; there is not a separate database per customer.

There are three roles: sales agent, organisation administrator, and platform administrator for our own staff. Platform administrators are limited to one session at a time.

6. What it does not do yet

A reviewer will find these anyway, so here they are in one place:

  • No SAML. Single sign-on is OpenID Connect only.
  • No SCIM. Accounts are created at first sign-in and are not removed automatically when someone leaves your directory.
  • No group-to-role mapping. Everyone arriving through single sign-on starts as a sales agent; administrators are appointed in the product.
  • Names depend on stage 2. While DLP is unavailable, names stay in the transcript.
  • Audio is not redacted. Only text is.
  • Customer-managed encryption keys through an external key service are not available.

7. Questions to ask any voice AI vendor

These are the questions this page was written to answer. They apply to any product that puts a model on a live call:

  1. Does the browser or the phone system connect to the model provider directly, or through your server?
  2. In which region is each model call made? Ask for each call separately, not for the product as a whole.
  3. Is the transcript de-identified before it is stored, or after?
  4. What exactly is stored when the de-identification service is unavailable?
  5. Is raw audio kept, for how long, and who can turn that on?
  6. Does single sign-on check that the email is verified and that its domain belongs to us?
  7. Can a user choose their own role or organisation in any request?
  8. What does the product write to the CRM, and what can the credential we give it read?

More from the blog