aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Tech

How To Keep Sensitive Data Out Of Your Chatbots

  • aster.cloud
  • December 28, 2021
  • 5 minute read

As virtual agent adoption has grown, the use cases have increasingly begun to span conversation flows that include Personal Identifiable Information (PII) and sensitive data.

Organizations and government agencies often view storing this data  as an unacceptable risk and require automated redaction of sensitive information.


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

But how? What’s the fastest, easiest way to achieve the right level of data privacy?

Custom solutions take time

Many tools can enable redaction of sensitive information but using them requires custom integration into your virtual agent implementations. This can require costly development and take time to fine-tune for different platforms.

On top of that time cost, the data redaction systems don’t always play nicely with the tools you already use to handle requests or process tickets.

 

Integrations may be incomplete

Building integrations to automatically redact sensitive data can be complex. Getting the correct level of granularity of redaction right makes it even more complicated.

For example:

  • Is redaction only required for sensitive PII data or is it required for complete user utterances?
  • Does data need to be completely redacted or will de-identification methods like tokenization and masking be sufficient?

The options are myriad and aligning the capabilities of a redaction solution with an organization’s virtual agent strategy can be a challenge.

Dialogflow supports automated redaction

Dialogflow has grown into a popular development platform for creating rich, intuitive customer conversations and is powered by Google AI. Dialogflow CX now includes three options for redacting sensitive information;

  • Parameter redaction, which is enabled by selecting the Redact in log option in the console or via the Dialogflow API.
  • Support for redaction via the SecuritySettings API.
  • Security Settings in the Dialogflow CX console

By default, Dialogflow does not send its logs to Cloud Logging. If you do not need logging for analytics or other purposes, then you do not need to turn this on. However, this is rarely the case and so In order to ensure virtual agent logs are written to Cloud Logging the Enable Stackdriver Logging option needs to be selected in the General tab of the virtual Agent Settings as shown below.

Read More  Best Practices For Managing Vertex Pipelines Code

 

Parameter redaction

Once this option is set, parameter redaction can be configured and the results can be reviewed in Cloud Logging. Parameter redaction  can be applied to any parameters defined in an intent or form. Doing so redacts the selected parameters in Dialogflow storage as well as in Cloud Logging.

The image below shows the Redact in Log checkbox selected for the form parameter named social-security-number.

 

Examining the logs in the log explorer provided by Cloud Logging will show that the appropriate parameter has been redacted.

The parameter named social-security-number has had its data replaced.

 

The Security Settings API

The SecuritySettings API provides the ability to manage settings related to security issues such as data redaction and data retention.

The API enables users to set a strategy which determines if data is redacted or not. The strategy guides the overall security posture of the virtual agent with regards to handling sensitive data..

The table below shows the redaction strategy options.

 

Setting the REDACTION_STRATEGY_UNSPECIFIED switch will result in no redaction-related action being taken. The entire conversation is stored without modification. Setting the REDACT_WITH_SERVICE switch enables the redaction process.

 

Consider the REDACT_WITH_SERVICE option as the “On” switch. Once activated, it enables redaction of personally identifiable information and provides the ability to configure more granular options like selecting the scope of redaction and the type of data to purge.

 

When redaction is enabled, the specified data types are purged prior to being written to permanent Dialogflow storage. This ensures that the defined data types are never persisted within Dialogflow.

Read More  Twilio Welcomes Deloitte Digital As A Premier Global Systems Integrator Focused On Elevating Human Experience And Accelerating Digital Transformation

Redaction via the Security Settings API – process overview

The redaction process requires Dialogflow to call Data Loss Prevention (DLP) which is a fully managed service designed to help discover, classify, and protect sensitive information. It does this by using the configuration options set in the Security Settings API. When this happens, Dialogflow becomes the data source and client that makes the DLP API request as shown in the figure below:

Dialogflow calling the Data Loss Prevention (DLP) service

 

The DLP service redacts sensitive data contained in the Dialogflow User Utterance and Agent response based on the Redaction strategy for the Dialogflow agent. The API request itself is encrypted in transit, stateless, not persisted and supports data residency.

Security Settings in the Dialogflow CX console

The Security tab of the Virtual Agent Settings page provides a means to configure data redaction and data retention in the Dialogflow CX console instead of using the API directly.

As with using the API, a Security Setting must be configured that can be applied to the virtual agent.

 

Clicking Manage Security Settings will take you to the Create Security Settings page where the specifics of your policy can be configured.

 

The Create Security Settings form allows the use of a Cloud DLP Inspection Template. The steps to create a template can be found here.

Once Security Settings have been configured, the appropriate policy can be applied to the virtual agent on the Security tab of the Agent Settings page.

 

Reviewing data after Security Settings based redaction

When redaction is configured via Security Settings it applies to the conversation transcript. The data types selected for redaction are replaced with the text [redacted] in both the user and virtual agent message text in Cloud Logging.

Read More  The United Nations And Tencent Announce A Global Partnership

The images below show the text of the user and virtual agent messages in Cloud Logging before and after redaction is enabled.

User Message Text prior to redaction
Virtual Agent Message Text prior to redaction
User Message Text after redaction
Virtual Agent Message Text after Redaction

 

In the above example, the social security number and date of birth have been replaced by the text string [redacted].

Fully managed data protection

Organizations and agencies often cannot determine when user conversations with virtual agents will include sensitive information so having an easy-to-use tool for enabling automated redaction helps alleviate the operational burden of ensuring that sensitive user data is protected.

The Parameter Redaction and Security Settings features simplify the management of data within Dialogflow and in adjacent systems. Users can specify that particular parameters be redacted, utilize the default DLP inspect configuration, or create a custom inspect template that is unique to their environment’s needs.

Conversational architects  implementing virtual agents can now take advantage of automated redaction in Dialogflow. Doing so ensures that sensitive user data is handled in line with industry best practices and in accordance with security and compliance requirements.

Try it today

You can get started today and try it yourself. We recommend some basic knowledge of DLP and Dialogflow which you can find in these tutorials and How-to guides.

Keep in mind that DLP and Dialogflow both have costs associated, so turn off your experiments when you’re done to avoid surprises.

Ready to go? Check out the Parameter Redaction section of the Dialogflow CX documentation, the Security Settings API reference and the Security Settings overview page to set up data protection for Dialogflow.

 

 

By: Anthony Okwechime (Customer Engineer) and Max Saltonstall (Developer Relations Engineer)
Source: Google Cloud Blog


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

aster.cloud

Related Topics
  • Chatbot
  • Data
  • Google Cloud
  • Tutorial
You May Also Like
Getting things done makes her feel amazing
View Post
  • Computing
  • Data
  • Featured
  • Learning
  • Tech
  • Technology

Nurturing Minds in the Digital Revolution

  • April 25, 2025
View Post
  • Tech

Deep dive into AI with Google Cloud’s global generative AI roadshow

  • February 18, 2025
Volvo Group: Confidently ahead at CES
View Post
  • Tech

Volvo Group: Confidently ahead at CES

  • January 8, 2025
zedreviews-ces-2025-social-meta
View Post
  • Featured
  • Gears
  • Tech
  • Technology

What Not to Miss at CES 2025

  • January 6, 2025
View Post
  • Tech

IBM and Pasqal Plan to Expand Quantum-Centric Supercomputing Initiative

  • November 21, 2024
Black Friday Gifts
View Post
  • Tech

Black Friday. How to Choose the Best Gifts for Yourself and Others, Plus Our Top Recommendations.

  • November 16, 2024
zedreviews-Apple-iPhone-16-Pro-finish-lineup-240909
View Post
  • Featured
  • Gears
  • Tech
  • Technology
  • Tools

Apple debuts iPhone 16 Pro and iPhone 16 Pro Max

  • September 10, 2024
zedreviews-Apple-iPhone-16-Apple-Intelligence-240909
View Post
  • Featured
  • Gears
  • Tech
  • Technology

Apple introduces iPhone 16 and iPhone 16 Plus

  • September 10, 2024

Stay Connected!
LATEST
  • college-of-cardinals-2025 1
    The Definitive Who’s Who of the 2025 Papal Conclave
    • May 7, 2025
  • conclave-poster-black-smoke 2
    The World Is Revalidating Itself
    • May 6, 2025
  • 3
    Conclave: How A New Pope Is Chosen
    • April 25, 2025
  • Getting things done makes her feel amazing 4
    Nurturing Minds in the Digital Revolution
    • April 25, 2025
  • 5
    AI is automating our jobs – but values need to change if we are to be liberated by it
    • April 17, 2025
  • 6
    Canonical Releases Ubuntu 25.04 Plucky Puffin
    • April 17, 2025
  • 7
    United States Army Enterprise Cloud Management Agency Expands its Oracle Defense Cloud Services
    • April 15, 2025
  • 8
    Tokyo Electron and IBM Renew Collaboration for Advanced Semiconductor Technology
    • April 2, 2025
  • 9
    IBM Accelerates Momentum in the as a Service Space with Growing Portfolio of Tools Simplifying Infrastructure Management
    • March 27, 2025
  • 10
    Tariffs, Trump, and Other Things That Start With T – They’re Not The Problem, It’s How We Use Them
    • March 25, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    IBM contributes key open-source projects to Linux Foundation to advance AI community participation
    • March 22, 2025
  • 2
    Co-op mode: New partners driving the future of gaming with AI
    • March 22, 2025
  • 3
    Mitsubishi Motors Canada Launches AI-Powered “Intelligent Companion” to Transform the 2025 Outlander Buying Experience
    • March 10, 2025
  • PiPiPi 4
    The Unexpected Pi-Fect Deals This March 14
    • March 13, 2025
  • Nintendo Switch Deals on Amazon 5
    10 Physical Nintendo Switch Game Deals on MAR10 Day!
    • March 9, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.