Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Difference b/w "redactedText" and "text" in Dialogflow CX Original response.

I want to fetch the dialogflow cx logs and extract all the bot responses from it .

Currently I am looking at the "responseMessage" key of the df Original response.

Mohammad_Anas_0-1707832312915.png

Wanted to know  the difference b/w "redactedText" and "text" fields in the object.

All the help is appreciated and if you have relevant links to the documentation explaining the above scenario will also help.

Thanks !





0 5 283
5 REPLIES 5

Hi,

The redacted text is when you enable redacted entities: https://cloud.google.com/dialogflow/cx/docs/concept/entity-options#redact

What I would suggest is to enable the BQ integration and pull the information that you want but from BQ, that it will be way easier on your side! https://cloud.google.com/dialogflow/cx/docs/concept/export-bq

Best,

Xavi

Thanks Xavi for the inputs ,

But my concern is I see the "redactedText"  field even if I have not redacted anything that is in the above picture.

and sometimes the redactedText field is even not present in the responseMessage

So how should I write logic coz if I directly read the "text" field then sensitive information will be displayed and if I read "redactedText" then code will break becoz sometimes it doesn't shows up , 

So I guess it has to be an if else condition if "redactedText" is present extract that or else the "text"  field 

Your thoughts?

Pls refer below images @xavidop 

1000000023.png

1000000022.pngone is with redactedText and other one is without 

Thanks

If you are not using the redactedText feature what I would suggest is just always read from the text property. Forget about the redactedText property

Alright thnx ,

But just to clarify, if I've some redacted entities then using "text" field will not redacted them in response?

Thnx

exactly!