Icon

Anonymize Sensitive Data for Bank Assistant Chatbots

<p>This workflow uses <strong>Presidio </strong>nodes within KNIME to <strong>anonymize </strong>sensitive information while working with third-party AI models in the KNIME Analytics Platform environment.</p><p>Using the <strong>Presidio </strong>nodes, you can easily identify Personally Identifiable Information (PII) and anonymize it before passing it to chat large language models, significantly reducing the risk of sensitive data leaks and ensuring a secure data environment.</p><p>You can download and run the workflow directly in your KNIME Analytics Platform. For optimal performance, we recommend using the latest version of the KNIME Analytics Platform.</p><p></p><p>Workflow Details</p><ol><li><p><strong>Creating Fake Customer Message</strong></p><ul><li><p>A fake bank customer message is created, complaining about some unauthorized transactions on their credit card, along with the system message to use in the Chat Model Prompter node.</p></li></ul></li><li><p><strong>Identifying PII with Presidio Analyzer</strong></p><ul><li><p>The Presidio Analyzer node identifies the following PII entities: Credit Card, Email, and Person. After running the node, we check how many entities the node has found.</p></li></ul></li><li><p><strong>Anonymizing PII with Presidio Anonymizer</strong></p><ul><li><p>Using the information from the Presidio Analyzer node, the Presidio Anonymizer node anonymizes the entities with random ones (names and emails).</p></li></ul></li><li><p><strong>Passing Anonymized Data to Chat Model</strong></p><ul><li><p>Once the data is anonymized, the customer issue is passed to OpenAI using the Chat Model Prompter node. The node is configured as follows:</p><ol><li><p><strong>System Message</strong>: Instruct the AI to behave like a bank's virtual assistant.</p></li><li><p><strong>User Message</strong>: Contains the request from the customer.</p></li><li><p><strong>Past Conversations</strong>: Includes a welcome message.</p></li></ol></li></ul></li><li><p><strong>Deanonymizing AI Response</strong></p><ul><li><p>When the AI assistant produces the response, the generated content is passed to the Presidio Deanonymizer node to restore the original entities. In the node output you can compare the anonymized and deanonymized outputs.</p></li></ul></li><li><p><strong>Visualizing Chat</strong></p><ul><li><p>Finally, the chat is plotted with the original data from the customer.</p></li></ul></li></ol>

URL: Microsoft Presidio https://microsoft.github.io/presidio/

Nodes

Extensions

Links