{"id":23564,"date":"2020-04-24T07:57:54","date_gmt":"2020-04-24T06:57:54","guid":{"rendered":"https:\/\/developer.kore.ai\/v7-3\/?p=23564"},"modified":"2020-04-24T07:57:54","modified_gmt":"2020-04-24T06:57:54","slug":"how-to-use-protect-user-inputs","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-3\/uncategorised\/how-to-use-protect-user-inputs\/","title":{"rendered":"How to use Protect User Inputs"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>Chances are that you might want to protect user data from possible threats. Kore.ai allows you to redact sensitive personal information or personally identifiable information.<\/p>\n<p>In this How-To, we will explore a scenario in a Banking Bot, where user-entered email id needs to be redacted.<\/p>\n<p>For details on what Redacting PII is and how they are implemented in the Kore.ai Bots platform, <a href=\"\/v7-3\/docs\/bots\/bot-settings\/pii-data-masking\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/a>.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Problem_Statement\">Problem Statement<\/span><\/h2>\n<p>In our <a href=\"\/v7-3\/docs\/bots\/how-tos\/creating-a-banking-bot\/\">Banking Bot<\/a>, users are prompted to enter email id and this is a piece of personal information that needs to be protected and redacted.<\/p>\n<p>In this document, we will see how PII Settings can be used to achieve the same.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Pre-requisites\">Pre-requisites<\/span><\/h2>\n<ul>\n<li>Bot building knowledge<\/li>\n<li>A Banking Bot with the Get Balance task<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/PR_dialog.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23571\" src=\"\/wp-content\/uploads\/sites\/15\/PR_dialog.png\" alt=\"\" width=\"941\" height=\"313\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095356\/PR_dialog.png 941w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095356\/PR_dialog-300x100.png 300w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/a><\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Implementation\">Implementation<\/span><\/h2>\n<ol>\n<li>Open the Banking Bot.<\/li>\n<li>From the left navigation menu under\u00a0<strong>Settings<\/strong> -&gt;\u00a0<strong>Config Settings<\/strong> select\u00a0<strong>PII Settings<\/strong>.<\/li>\n<li>You will see that the PII Redaction is Disabled by default. Use the toggle switch to\u00a0<strong>Enable<\/strong> the PII Redaction.<\/li>\n<li>By default, redaction rules are defined for some information types like <strong>Email<\/strong>, <strong>Phone<\/strong>, <strong>SSN,<\/strong> and <strong>Credit Card Number<\/strong> fields.<\/li>\n<li>You need to associate these rules to any entity in your bot and further configure them.<\/li>\n<li>Select\u00a0<strong>Email<\/strong><\/li>\n<li>In the\u00a0<strong>Edit Information Type<\/strong> window, in the\u00a0<strong>Map Entities<\/strong> field select\u00a0<em>EmailId<\/em> entity.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/PR_rules.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23573\" src=\"\/wp-content\/uploads\/sites\/15\/PR_rules.png\" alt=\"\" width=\"497\" height=\"643\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095355\/PR_rules.png 497w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095355\/PR_rules-232x300.png 232w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/a><\/li>\n<li><strong>Save<\/strong> the settings.<\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Testing\">Testing<\/span><\/h2>\n<p>Use <strong>Talk to Bot<\/strong> to test the changes.<\/p>\n<ol>\n<li>Open\u00a0<strong>Talk to Bot<\/strong>.<\/li>\n<li>Enter the email id and account number<\/li>\n<li><b>N<\/b>otice that the email id in the message is redacted, also in the\u00a0<strong>Debug Logs\u00a0<\/strong>the variable value is redacted.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/PR_test.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23572\" src=\"\/wp-content\/uploads\/sites\/15\/PR_test.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095355\/PR_test.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095355\/PR_test-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/15\/20221201095355\/PR_test-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Chances are that you might want to protect user data from possible threats. Kore.ai allows you to redact sensitive personal information or personally identifiable information. In this How-To, we will explore a scenario in a Banking Bot, where user-entered email id needs to be redacted. For details on what Redacting PII is and how they...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23564","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/23564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/comments?post=23564"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/23564\/revisions"}],"predecessor-version":[{"id":23574,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/23564\/revisions\/23574"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/media?parent=23564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/categories?post=23564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/tags?post=23564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}