To protect sensitive user information in enterprise conversational agents, you
can redact confidential data before Dialogflow CX writes records to persistent
storage. Conversational agents routinely handle Personally Identifiable
Information (PII), Protected Health Information (PHI), Payment Card Industry
(PCI) data, and other confidential customer records. If left unprotected, this
data can propagate into conversation history, Cloud Logging,
BigQuery exports, and downstream analytics pipelines.

Dialogflow CX provides multiple redaction mechanisms that you can combine to
achieve defense-in-depth data protection across conversational ingestion points.

## Conversational ingestion points

Sensitive data enters an agent through several architectural touchpoints during
a conversation:

- **Intent and form parameters**: End users provide names, phone numbers, national identification numbers, or payment card details in spoken or typed utterances that entity extraction parses into intent or form parameters.
- **Session parameters**: Upstream client applications, Contact Center as a Service (CCaaS) platforms, or Customer Relationship Management (CRM) systems pass customer profile records into session parameters when initializing or continuing a session.
- **Webhooks and tools**: Backend fulfillment services return structured payloads containing account balances, physical addresses, or confirmation tokens.
- **Fulfillment response messages**: Dynamic agent responses that synthesize parameters and webhook data to confirm details back to the user can contain sensitive data.

Redacting data at the source prevents sensitive values from appearing in logs
and transcripts while maintaining runtime access to parameters during the active
session.

## Redaction options

The following table compares the redaction options available in Dialogflow CX:

| Redaction mechanism | Scope | Configuration point | Best for |
|---|---|---|---|
| **Consent-based redaction** | End-user utterances and parameters | **Agent Settings** \> **General** \> **Logging settings** | Giving end users control over transcript logging based on explicit consent. |
| **Parameter redaction** | Specific intent or form parameters | Intent settings or page form settings | Removing known parameters (such as account numbers or addresses) from logs. |
| **Sensitive Data Protection integration** | User utterances, agent responses, parameters, and webhook payloads | Project-level security settings | Automated pattern matching, infoType classification, masking, and tokenization. |

## Consent-based end-user input redaction

Consent-based redaction lets you use a boolean session parameter to control
whether Dialogflow CX redacts end-user input and parameters from
[conversation history](https://docs.cloud.google.com/dialogflow/cx/docs/concept/conversation-history.md.txt) and
[Cloud logging](https://docs.cloud.google.com/dialogflow/cx/docs/concept/logging.md.txt).

### How consent-based redaction works

When you enable this feature in the agent settings, Dialogflow CX evaluates the
`$session.params.conversation-redaction` boolean session parameter during the
session:

- **Default state** : By default, `$session.params.conversation-redaction` is `true`. When this setting is enabled and the parameter is `true`, Dialogflow CX redacts user input and parameters from logs and history.
- **Consent granted** : If the user grants consent to store their conversation history, set `$session.params.conversation-redaction` to `false`. When set to `false`, Dialogflow CX retains user input and parameters. Other configured redaction strategies, such as parameter redaction and Sensitive Data Protection security settings, still apply.
- **Feature disabled**: If you disable consent-based redaction in the agent settings, Dialogflow CX ignores the parameter and performs no consent-based redaction.

### Configure consent-based redaction

To enable consent-based redaction:

### Console

1. Go to the [Conversational Agents console](https://conversational-agents.cloud.google.com).
2. Select your Google Cloud project.
3. Select your agent.
4. Click **Agent Settings** (or the settings icon).
5. In the **General** settings tab, go to the **Logging settings** section.
6. Select the **Enable consent-based end-user input redaction** checkbox.
7. Click **Save**.

### API

Set the `advanced_settings.logging_settings.enable_consent_based_redaction`
field to `true` on the `Agent` type:


<button class="devsite-dialog-button cloud-button cloud-button--primary" style="display: block; padding: 10px; margin-top: 10px; margin-bottom: 10px;" data-modal-dialog-id="cx-agent-reference-dialog-Agent">Go to the Agent API reference</button>
**Select a protocol and version for the Agent reference:**

| Protocol | V3 | V3beta1 |
|---|---|---|
| REST | [Agent resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.md.txt) | [Agent resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.md.txt) |
| RPC | [Agent interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3.md.txt#google.cloud.dialogflow.cx.v3.Agents) | [Agent interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3beta1.md.txt#google.cloud.dialogflow.cx.v3beta1.Agents) |
| C++ | [AgentsClient](https://googleapis.dev/cpp/google-cloud-dialogflow_cx/latest/classgoogle_1_1cloud_1_1dialogflow__cx_1_1AgentsClient.html) | Not available |
| C# | [AgentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt) | Not available |
| Go | [AgentsClient](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/dialogflow/latest/cx/apiv3.md.txt#cloud_google_com_go_dialogflow_cx_apiv3_AgentsClient) | Not available |
| Java | [AgentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.AgentsClient.md.txt) | [AgentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.AgentsClient.md.txt) |
| Node.js | [AgentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3.AgentsClient.html) | [AgentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3beta1.AgentsClient.html) |
| PHP | Not available | Not available |
| Python | [AgentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3.services.agents.AgentsClient.md.txt) | [AgentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3beta1.services.agents.AgentsClient.md.txt) |
| Ruby | Not available | Not available |

<button class="devsite-dialog-close">Close</button>

<br />

### Design a consent collection flow

To collect consent in your agent design:

1. Create an initial page or transition route that asks the end user if they consent to storing their conversation history.
2. Create two intents: one that matches affirmative responses ("yes") and one that matches negative responses ("no").
3. In the transition route for the affirmative intent, use [parameter presets](https://docs.cloud.google.com/dialogflow/cx/docs/concept/fulfillment.md.txt#param-preset) to set `$session.params.conversation-redaction` to `false`.
4. In the transition route for the negative intent, use parameter presets to set `$session.params.conversation-redaction` to `true`.

## Parameter redaction

Parameter redaction removes end-user parameter values from logs and internal
storage. Redacted parameters appear as `$parameter-name_redacted` in logs and
transcripts. For example, if an end user says "My address is 1600 Amphitheatre
Parkway", and the address resolves to an `address` parameter, the logged text
appears as:

```text
My address is $address_redacted
```

> [!NOTE]
> **Note:** Parameter redaction applies to text-based user input. To redact sensitive data across all conversation payloads and fulfillment messages, use [security settings with Sensitive Data Protection](https://docs.cloud.google.com/dialogflow/cx/docs/concept/redaction.md.txt#dlp).

### Redact intent and form parameters

You can enable parameter redaction on individual intent parameters and form
parameters:

### Console

- **Intent parameters** : Go to **Manage** \> **Intents** , select the intent, and in the **Parameters** table, select the **Redact in log** checkbox next to the parameter.
- **Form parameters** : Go to **Build** , select the page containing the form, click the parameter in the **Parameters** section, and select the **Redact in log** checkbox.

### API

- **Intent parameters** : Set the `parameters[].redact` field to `true` on the [`Intent`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3.md.txt#google.cloud.dialogflow.cx.v3.Intent) resource: <button class="devsite-dialog-button cloud-button cloud-button--primary" style="display: block; padding: 10px; margin-top: 10px; margin-bottom: 10px;" data-modal-dialog-id="cx-agent-reference-dialog-Intent">Go to the Intent API reference</button> **Select a protocol and version for the Intent reference:**

  | Protocol | V3 | V3beta1 |
  |---|---|---|
  | REST | [Intent resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.intents.md.txt) | [Intent resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.intents.md.txt) |
  | RPC | [Intent interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3.md.txt#google.cloud.dialogflow.cx.v3.Intents) | [Intent interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3beta1.md.txt#google.cloud.dialogflow.cx.v3beta1.Intents) |
  | C++ | [IntentsClient](https://googleapis.dev/cpp/google-cloud-dialogflow_cx/latest/classgoogle_1_1cloud_1_1dialogflow__cx_1_1IntentsClient.html) | Not available |
  | C# | [IntentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.IntentsClient.md.txt) | Not available |
  | Go | [IntentsClient](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/dialogflow/latest/cx/apiv3.md.txt#cloud_google_com_go_dialogflow_cx_apiv3_IntentsClient) | Not available |
  | Java | [IntentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.IntentsClient.md.txt) | [IntentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.IntentsClient.md.txt) |
  | Node.js | [IntentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3.IntentsClient.html) | [IntentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3beta1.IntentsClient.html) |
  | PHP | Not available | Not available |
  | Python | [IntentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3.services.intents.IntentsClient.md.txt) | [IntentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3beta1.services.intents.IntentsClient.md.txt) |
  | Ruby | Not available | Not available |

  <button class="devsite-dialog-close">Close</button>
- **Form parameters** : Set the `form.parameters[].redact` field to `true` on the [`Page`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3.md.txt#google.cloud.dialogflow.cx.v3.Page) resource: <button class="devsite-dialog-button cloud-button cloud-button--primary" style="display: block; padding: 10px; margin-top: 10px; margin-bottom: 10px;" data-modal-dialog-id="cx-agent-reference-dialog-Page">Go to the Page API reference</button> **Select a protocol and version for the Page reference:**

  | Protocol | V3 | V3beta1 |
  |---|---|---|
  | REST | [Page resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.flows.pages.md.txt) | [Page resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.flows.pages.md.txt) |
  | RPC | [Page interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3.md.txt#google.cloud.dialogflow.cx.v3.Pages) | [Page interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3beta1.md.txt#google.cloud.dialogflow.cx.v3beta1.Pages) |
  | C++ | [PagesClient](https://googleapis.dev/cpp/google-cloud-dialogflow_cx/latest/classgoogle_1_1cloud_1_1dialogflow__cx_1_1PagesClient.html) | Not available |
  | C# | [PagesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.PagesClient.md.txt) | Not available |
  | Go | [PagesClient](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/dialogflow/latest/cx/apiv3.md.txt#cloud_google_com_go_dialogflow_cx_apiv3_PagesClient) | Not available |
  | Java | [PagesClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.PagesClient.md.txt) | [PagesClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.PagesClient.md.txt) |
  | Node.js | [PagesClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3.PagesClient.html) | [PagesClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3beta1.PagesClient.html) |
  | PHP | Not available | Not available |
  | Python | [PagesClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3.services.pages.PagesClient.md.txt) | [PagesClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3beta1.services.pages.PagesClient.md.txt) |
  | Ruby | Not available | Not available |

  <button class="devsite-dialog-close">Close</button>

As an alternative to configuring each parameter individually, you can
[redact all parameters of a specific entity type](https://docs.cloud.google.com/dialogflow/cx/docs/concept/entity-options.md.txt#redact).

### Session parameters and parameter presets

Unlike intent parameters and form parameters, session parameters configured
through fulfillment parameter presets or passed by upstream client applications
do not have a `redact` field in the Dialogflow CX API (`v3` or `v3beta1`).

> [!NOTE]
> **Note:** In some console environments, a **Redact in log** option might appear in the parameter presets table under experimental feature access. However, because this option is not available across all projects or supported in the underlying API, do not rely on parameter presets as a primary redaction mechanism.

To protect sensitive data in session parameters, use one of the following
approaches:

- **Sensitive Data Protection security settings** : Use [security settings with Sensitive Data Protection](https://docs.cloud.google.com/dialogflow/cx/docs/concept/redaction.md.txt#dlp). When `redaction_strategy` is set to `REDACT_WITH_SERVICE` and `redaction_scope` is set to `REDACT_DISK_STORAGE`, Sensitive Data Protection performs string-level pattern detection to detect and redact matching infoTypes in session parameters, webhook payloads, and fulfillment response messages before Dialogflow CX writes records to storage. Note that `REDACT_WITH_SERVICE` matches values against configured infoTypes rather than redacting arbitrary keys; opaque values (such as internal identifiers or confirmation tokens) are not redacted unless matched by a predefined or custom infoType in your inspect template. In addition, setting `redaction_strategy` to `REDACT_WITH_SERVICE` requires setting `redaction_scope` to `REDACT_DISK_STORAGE` to redact persisted data.
- **Intent and form parameter extraction** : Where possible, extract sensitive user inputs by using intent or form parameters with [parameter redaction](https://docs.cloud.google.com/dialogflow/cx/docs/concept/redaction.md.txt#parameter-intent-form) enabled, rather than setting them through unredacted session presets.
- **Consent-based redaction** : If end users request that their conversation history not be retained, use [consent-based redaction](https://docs.cloud.google.com/dialogflow/cx/docs/concept/redaction.md.txt#consent).

## Sensitive Data Protection integration through security settings

For comprehensive protection across user input, agent fulfillment responses,
session parameters, and webhook payloads, Dialogflow CX integrates with
[Sensitive Data Protection](https://docs.cloud.google.com/sensitive-data-protection/docs.md.txt) by using
project-level security settings.

When configured, Dialogflow CX sends conversation text to the
Sensitive Data Protection API.
Sensitive Data Protection detects sensitive patterns and applies
de-identification rules before Dialogflow CX persists logs or conversation
history.

### Inspection templates

An
[inspection template](https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-inspect.md.txt)
specifies what sensitive data to search for in conversational text. You can
configure inspection templates to identify:

- **Predefined infoTypes** : Standard global and regional identifiers, such as `CREDIT_CARD_NUMBER`, `US_SOCIAL_SECURITY_NUMBER`, `EMAIL_ADDRESS`, and `PHONE_NUMBER`. For a complete list, see the [infoType detector reference](https://docs.cloud.google.com/sensitive-data-protection/docs/infotypes-reference.md.txt).
- **Custom infoTypes**: Domain-specific sensitive patterns defined by regular expressions or custom dictionary word lists, such as employee identifiers or internal account numbers.

Template names follow this format:

```text
projects/PROJECT_ID/locations/LOCATION_ID/inspectTemplates/TEMPLATE_ID
```

Or for organization-level templates:

```text
organizations/ORGANIZATION_ID/locations/LOCATION_ID/inspectTemplates/TEMPLATE_ID
```

> [!CAUTION]
> **Caution:** If you do not specify an inspect template, Dialogflow CX uses a default template. The default template enables only a subset of infoType detectors and might not detect all sensitive data categories required by your organization. Create a custom inspection template whenever possible.

### De-identification templates

A
[de-identification template](https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid.md.txt)
defines how to transform or redact the detected sensitive data.
Sensitive Data Protection supports several transformation methods:

- **Masking** : Obscures sensitive characters with a masking character while optionally preserving prefix or suffix characters (for example, displaying a credit card number as `••••-••••-••••-1234`).
- **Replacement** : Replaces the sensitive value with a static token or the infoType name (for example, `[redacted]` or `[EMAIL_ADDRESS]`).
- **Crypto-based tokenization (pseudonymization)**: Replaces sensitive values with surrogate tokens encrypted by using a cryptographic key. Authorized workflows can re-identify tokens when necessary.
- **Hashing**: Applies a one-way cryptographic hash to sensitive fields.

Template names follow this format:

```text
projects/PROJECT_ID/locations/LOCATION_ID/deidentifyTemplates/TEMPLATE_ID
```

Or for organization-level templates:

```text
organizations/ORGANIZATION_ID/locations/LOCATION_ID/deidentifyTemplates/TEMPLATE_ID
```

> [!NOTE]
> **Note:** If you do not specify a de-identification template in your security settings, Dialogflow CX replaces detected sensitive data with the string `[redacted]`.

### Grant required IAM roles

Before creating security settings that reference inspection or
de-identification templates, verify that the Dialogflow CX service identity
service account has permission to read your templates. Creating or updating a
security settings resource validates template read access immediately; if
permissions are missing, the operation fails.

The service identity service account uses the following format:

```
service-AGENT_PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com
```

Replace `AGENT_PROJECT_NUMBER` with your Dialogflow CX agent's Google Cloud
project number.

> [!NOTE]
> **Note:** When templates reside in the same project as the agent, the default `roles/dialogflow.serviceAgent` role grant already provides template read permissions. Explicit IAM role bindings are primarily required when templates reside in a different project or at the organization level.

Grant the following Identity and Access Management (IAM) roles to the service
account on the project or organization that hosts the templates:

- **DLP Inspect Templates Reader** (`roles/dlp.inspectTemplatesReader`)
- **DLP Deidentify Templates Reader** (`roles/dlp.deidentifyTemplatesReader`)

To grant these roles on a template project by using the Google Cloud CLI CLI:

```bash
gcloud projects add-iam-policy-binding TEMPLATE_PROJECT_ID \
    --member="serviceAccount:service-AGENT_PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com" \
    --role="roles/dlp.inspectTemplatesReader"

gcloud projects add-iam-policy-binding TEMPLATE_PROJECT_ID \
    --member="serviceAccount:service-AGENT_PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com" \
    --role="roles/dlp.deidentifyTemplatesReader"
```

Replace `TEMPLATE_PROJECT_ID` with the ID of the project hosting the templates.

For organization-level templates, grant the roles at the organization level:

```bash
gcloud organizations add-iam-policy-binding ORGANIZATION_ID \
    --member="serviceAccount:service-AGENT_PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com" \
    --role="roles/dlp.inspectTemplatesReader"

gcloud organizations add-iam-policy-binding ORGANIZATION_ID \
    --member="serviceAccount:service-AGENT_PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com" \
    --role="roles/dlp.deidentifyTemplatesReader"
```

Replace `ORGANIZATION_ID` with your Google Cloud organization ID.

### Configure security settings for redaction

To enable Sensitive Data Protection redaction, create a security
settings resource and associate it with your agent.

#### Step 1: Create a security settings resource

To create security settings:

### Console

1. Go to the [Conversational Agents console](https://conversational-agents.cloud.google.com).
2. Select your Google Cloud project.
3. Select your agent.
4. Click **Agent Settings** (or the settings icon).
5. Click the **Security** tab.
6. Click **Manage security settings**. The CCAI console opens in a new tab.
7. In the security settings management page, click **Create security settings**.
8. In the **Display name** field, enter a name for the security settings.
9. In the **Location** drop-down menu, select the location matching your agent and templates.
10. In the **Redaction Strategy** drop-down menu, select **REDACT_WITH_SERVICE**.
11. In the **Redaction Scope** drop-down menu, select **REDACT_DISK_STORAGE**.
12. In the **Inspect Template** field, enter the resource name of your inspection template.
13. In the **De-identify Template** field, enter the resource name of your de-identification template.
14. Click **Create**.

### API

Create a
[`SecuritySettings`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3.md.txt#google.cloud.dialogflow.cx.v3.SecuritySettings)
resource with the following fields:

- `display_name`: Set to a descriptive name.
- `redaction_strategy`: Set to `REDACT_WITH_SERVICE`.
- `redaction_scope`: Set to `REDACT_DISK_STORAGE`.
- `inspect_template`: Set to your inspection template resource path.
- `deidentify_template`: Set to your de-identification template resource path.

> [!NOTE]
> **Note:** The inspection template, de-identification template, and security settings resource must all reside in the same Google Cloud region or location.

#### Step 2: Assign security settings to your agent

After creating the security settings resource, link it to your agent:

### Console

1. Go to the [Conversational Agents console](https://conversational-agents.cloud.google.com).
2. Select your Google Cloud project.
3. Select your agent.
4. Click **Agent Settings** (or the settings icon).
5. Click the **Security** tab.
6. In the **Security settings** drop-down menu, select the security settings resource that you created.
7. Click **Save**.

### API

Set the `security_settings` field to the resource name of your security
settings on the `Agent` type:


<button class="devsite-dialog-button cloud-button cloud-button--primary" style="display: block; padding: 10px; margin-top: 10px; margin-bottom: 10px;" data-modal-dialog-id="cx-agent-reference-dialog-Agent">Go to the Agent API reference</button>
**Select a protocol and version for the Agent reference:**

| Protocol | V3 | V3beta1 |
|---|---|---|
| REST | [Agent resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.md.txt) | [Agent resource](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3beta1/projects.locations.agents.md.txt) |
| RPC | [Agent interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3.md.txt#google.cloud.dialogflow.cx.v3.Agents) | [Agent interface](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3beta1.md.txt#google.cloud.dialogflow.cx.v3beta1.Agents) |
| C++ | [AgentsClient](https://googleapis.dev/cpp/google-cloud-dialogflow_cx/latest/classgoogle_1_1cloud_1_1dialogflow__cx_1_1AgentsClient.html) | Not available |
| C# | [AgentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt) | Not available |
| Go | [AgentsClient](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/dialogflow/latest/cx/apiv3.md.txt#cloud_google_com_go_dialogflow_cx_apiv3_AgentsClient) | Not available |
| Java | [AgentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.AgentsClient.md.txt) | [AgentsClient](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.AgentsClient.md.txt) |
| Node.js | [AgentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3.AgentsClient.html) | [AgentsClient](https://googleapis.dev/nodejs/dialogflow-cx/latest/v3beta1.AgentsClient.html) |
| PHP | Not available | Not available |
| Python | [AgentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3.services.agents.AgentsClient.md.txt) | [AgentsClient](https://docs.cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3beta1.services.agents.AgentsClient.md.txt) |
| Ruby | Not available | Not available |

<button class="devsite-dialog-close">Close</button>

<br />

Updates to security settings take effect within one hour.

## Redaction behavior across logs and transcripts

When redaction is enabled, Dialogflow CX applies transformations to sensitive
data before writing records to downstream systems:

- **Conversation history** : In the **Manage** \> **Conversation history** console view, redacted parameter values and sensitive text detected by Sensitive Data Protection appear masked, replaced, or removed.
- **Cloud Logging**: Log entries in the Logs Explorer display redacted text strings, protecting log sinks from storing plain-text PII.
- **BigQuery export**: When exporting session interaction logs to BigQuery, exported request and response payloads reflect the applied redactions.
- **Exported audio recordings** : When audio export to Cloud Storage is configured, audio recordings are redacted only when `audio_export_settings.enable_audio_redaction` is set to `true` in your security settings. Redaction applies to end-user input audio only; synthesized virtual agent response audio is not redacted.
- **Session state during runtime**: Redaction affects storage and logs only. During the live session, Dialogflow CX continues to evaluate parameters in memory to resolve conditions, routes, webhooks, and tool inputs.

## What's next

- Learn more about configuring [Security settings](https://docs.cloud.google.com/dialogflow/cx/docs/concept/security-settings.md.txt).
- Explore [Conversation history](https://docs.cloud.google.com/dialogflow/cx/docs/concept/conversation-history.md.txt) inspection.
- Review [Cloud logging](https://docs.cloud.google.com/dialogflow/cx/docs/concept/logging.md.txt) format and options.
- Learn about [Sensitive Data Protection templates](https://docs.cloud.google.com/sensitive-data-protection/docs/concepts-templates.md.txt).