Bot Flow Secure Data Question

Hi, I am using "Ask for Slot" and storing the response in a secure data variable (Slot.SSN) like below.

I am then planning to use the value of the secure data variable collected from the "Ask for Slot" to form the value of another secure data variable (Flow.secureData) before passing Flow.secureData to a secure Data action like below where I am calling JsonStringify.


(The reason being is that I want to create a dynamic data action where the input and output contracts will accept JSON formatted strings, allowing me to change the input/output contracts to the API and not have a predefined structure to the data action itself).

I had thought that Secure Data was write only but why am I allowed to read the value of one secure data variable to populate another?

Is what I am doing secure, in the sense that nothing about Slot.SSN or Flow.secureData will be logged?

First of all, you're not passing the value of Slot.SSN to Flow.secureData. Your expression is using the literal string letters S, l, o, t, ... Change your expression to this to have it use the value of the Slot.SSN variable.

JsonStringify(JsonParse("{\n"SSN" : "" + Slot.SSN + ""\n}"))

You can read and pass the value of a secure variable into another secure variable. If Flow.secureData wasn't secure, you would see a validation error like this.
image

Is what I am doing secure, in the sense that nothing about Slot.SSN or Flow.secureData will be logged?
Yes, you're fine.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.