{"id":23904,"date":"2020-07-05T11:20:37","date_gmt":"2020-07-05T10:20:37","guid":{"rendered":"https:\/\/developer.kore.ai\/?p=23904"},"modified":"2021-08-11T12:47:06","modified_gmt":"2021-08-11T11:47:06","slug":"how-to-configure-digital-forms","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/docs\/bots\/how-tos\/how-to-configure-digital-forms\/","title":{"rendered":"How to Configure Digital Forms"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>In this How-To, we will explore a scenario in a Banking Bot, where the user can create an additional account. We will see how Digital Forms can be used to gather all the required information from the user and create the account.<\/p>\n<p>For details on what Digital Forms are and how it is implemented in the Kore.ai Bots platform, <a href=\"\/docs\/bots\/bot-builder-tool\/digital-forms\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/a>.<\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h1><span class=\"ez-toc-section\" id=\"Problem_Statement\"><\/span>Problem Statement<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>Consider a Banking Bot trying to address the following scenarios:<\/p>\n<ol>\n<li>An already registered user wants to open an additional account.<\/li>\n<li>There are three types of accounts that are available, each with further options:\n<ul>\n<li>Savings Account;<\/li>\n<li>Checking Account with an option to opt for a Cash Card and set a Minumum Balance;<\/li>\n<li>Credit Card with an option to choose the type of card to be Platinum, Gold, Silver or Basic<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-probstmt.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23649\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-probstmt.png\" alt=\"\" width=\"1388\" height=\"964\" \/><\/a><\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Pre-requisites\"><\/span>Pre-requisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Bot building knowledge<\/li>\n<li>A Banking Bot<\/li>\n<\/ul>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h1><span class=\"ez-toc-section\" id=\"Configurations\"><\/span>Configurations<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>Let us consider each of the following scenarios one by one:<\/p>\n<ol>\n<li>Digital Form to gather input from the user;<\/li>\n<li>Dialog Task to:\n<ol>\n<li>trigger the above Digital Form; and<\/li>\n<li>capture the user-entered account information.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Digital_Form_Configuration\"><\/span>Digital Form Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a form to gather the following information:<\/p>\n<ul>\n<li>Account Name &#8211; pre-populated with the user&#8217;s name with an option to change it;<\/li>\n<li>Type of Account that the user wants to create, default selection to Savings Account;<\/li>\n<li>Based on the type of account selected above the following details to be gathered:\n<ul>\n<li>Savings &#8211; no further information needed;<\/li>\n<li>Checkings &#8211; whether Cash Card is required, if yes then the maximum withdrawal limit (range between $100 to $1000) to be enforced on that card;<\/li>\n<li>Credit Card &#8211; the type of card required\n<ul>\n<li>Platinum card levies additional charge,<\/li>\n<li>Gold,<\/li>\n<li>Silver, or<\/li>\n<li>Basic<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Form_Creation\"><\/span>Form Creation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>From the Kore.ai Bot Builder platform, open the Banking Bot.<\/li>\n<li>Select the <strong>Build<\/strong> tab from the top menu.<\/li>\n<li>From the left navigation menu, select <strong>Digital Skills -&gt; Digital Forms<\/strong> to access the Digital Forms page.<\/li>\n<li>Click\u00a0<strong>New Form<\/strong> and enter the following:\n<ol>\n<li><strong>Name<\/strong> &#8211; name to the form, say\u00a0<em>OpenAccount<\/em><\/li>\n<li><strong>Display Name<\/strong> for the form, say\u00a0<em>Open an Account<\/em><\/li>\n<li><strong>Description<\/strong> of the form.<\/li>\n<\/ol>\n<\/li>\n<li><strong>Save &amp; Proceed<\/strong> to the next step.<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811101916\/ht_form_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29046\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811101916\/ht_form_1.png\" alt=\"\" width=\"1366\" height=\"768\" \/><\/a><\/p>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Form_Editor\"><\/span>Form Editor<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Form Editor opens with components on the left, and a blank form. You can drag and drop components to the form as per your requirement.<\/li>\n<li>By default, a <strong>Submit button<\/strong> is added to the form. This would trigger the submit event which would capture the user input and save in context object.<\/li>\n<li>Drag and drop a <strong>Text Field<\/strong> component onto the form.<\/li>\n<li>As soon as you drag and drop a component, its property settings panel will be displayed.<\/li>\n<li>In that panel set the following values:\n<ul>\n<li><strong>Display Name\u00a0<\/strong>say\u00a0<em>Name.<\/em><\/li>\n<li><strong>Name<\/strong> used for internal reference, say\u00a0<em>accountname.<\/em><\/li>\n<li><strong>Description<\/strong> of the field.<\/li>\n<li><strong>Placeholder<\/strong> value to be displayed in the field when blank, say, <em>Enter the name of the account holder<\/em>.<\/li>\n<li>Scroll and locate\u00a0<strong>Data Settings<\/strong> and for\u00a0<strong>Default Value<\/strong> enter <code>{{context.session.UserContext.firstName}}<\/code>this would pre-populate the field with the user name as it appears in the user context based on the login credentials.<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-formName.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23652\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-formName.png\" alt=\"\" width=\"1334\" height=\"708\" \/><\/a><\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><ol start=\"5\">\n<li>Next, a selection box for the type of account to be opened.<\/li>\n<li>Drag and drop a <strong>Dropdown<\/strong>\u00a0component onto the form and set the following values:\n<ul>\n<li><strong>Display Name\u00a0<\/strong>say\u00a0<em>Type.<\/em><\/li>\n<li><strong>Name<\/strong> used for internal reference, say\u00a0<em>accounttype.<\/em><\/li>\n<li><strong>Description<\/strong> of the field.<\/li>\n<li><strong>Placeholder<\/strong> value to be displayed in the field when blank, say, <em>Select the type of account you want to open<\/em>.<\/li>\n<li>Scroll and locate\u00a0<strong>Data Settings,<\/strong> deselect <strong>Multi Select<\/strong> option and against <strong>Dropdown values<\/strong> click\u00a0<strong>Add Values<\/strong> to enter the values &#8211;\u00a0<em>Checkings, Savings, Credit Card.<\/em> You can mark one value,\u00a0<em>Savings<\/em>, as default. This would be selected by default at the time of execution<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-formType.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23653\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-formType.png\" alt=\"\" width=\"827\" height=\"499\" \/><\/a><\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><ol start=\"7\">\n<li>Next, for the Cash Card option when the account type is selected to be a Checkings account.<\/li>\n<li>Drag and drop a <strong>Toggle<\/strong>\u00a0component onto the form and set the following values:\n<ul>\n<li><strong>Display Name\u00a0<\/strong>say <em>Cash Card.<\/em><\/li>\n<li><strong>Name<\/strong> used for internal reference, say\u00a0<em>cashcard.<\/em><\/li>\n<li><strong>Description<\/strong> of the field. In this case, the question, <em>Want a cash card?<\/em><\/li>\n<li><strong>Value<\/strong> as <em>Yes<\/em> when selected and <em>No<\/em> when deselected.<\/li>\n<li>Scroll and locate\u00a0<strong>Visibility Settings.<\/strong> This component should be visible only when the account type is set to Checkings.\n<ul>\n<li>Add\u00a0<strong>Visibility Rules &#8211; Rule 1<\/strong> for the field to be\u00a0<strong>Visible<\/strong> when, select, <em>accounttype<strong>\u00a0<\/strong><\/em>field,\u00a0<em>=(Equal To)<\/em> operator,\u00a0<em>Value<\/em> comparison with,\u00a0<em>Checkings<\/em> value.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCCtoggle.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23655\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCCtoggle.png\" alt=\"\" width=\"819\" height=\"707\" \/><\/a><\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><ol start=\"9\">\n<li>If the user opts for cash card, then the withdrawal limit needs to be set on the same.<\/li>\n<li>Drag and drop a <strong>Range Slider<\/strong>\u00a0component onto the form and set the following values:\n<ul>\n<li><strong>Display Name\u00a0<\/strong>say <em>Withdrawal Limit.<\/em><\/li>\n<li><strong>Name<\/strong> used for internal reference, say <em>withdrawallimit.<\/em><\/li>\n<li><strong>Description<\/strong> of the field.<\/li>\n<li><strong>Placeholder<\/strong> value to be displayed in the field when blank, say, <em>Set the withdrawal limit<\/em>.<\/li>\n<li>Deselect\u00a0<strong>Is Percentage<\/strong><\/li>\n<li><strong>Value<\/strong> as <em>100<\/em> for Min and <em>1000<\/em> for Max.<\/li>\n<li>Under\u00a0<strong>Data Settings,\u00a0<\/strong>you can set the\u00a0<strong>Default Value<\/strong> to be 150, this would be pre-selected.<\/li>\n<li><strong>Visibility Rules<\/strong> would be a compound rule &#8211; account type is checkings and cash card is selected.<\/li>\n<li>Scroll and locate\u00a0<strong>Visibility Settings.<\/strong> This component should be visible only when the account type is set to Checkings and the Cash Card is opted.\n<ul>\n<li>Add\u00a0<strong>Visibility Rules &#8211; Rule 1<\/strong> field to be visible when, select, <em>accounttype<strong>\u00a0<\/strong><\/em>field,\u00a0<em>=(Equal To)<\/em> operator,\u00a0<em>Value<\/em> comparison with,\u00a0<em>Checkings<\/em> value\u00a0 AND selecting <em>cashcard<strong>\u00a0<\/strong><\/em>field,\u00a0<em>=(Equal To)<\/em> operator,\u00a0<em>Value<\/em> comparison with,\u00a0<em>Yes<\/em>\u00a0value.<\/li>\n<li>You can switch to <strong>Advanced Mode<\/strong> to enter the visibility rules<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCheckSlider.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23656\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCheckSlider.png\" alt=\"\" width=\"855\" height=\"691\" \/><\/a><\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><ol start=\"11\">\n<li>For the Credit Card option, the user needs to further select the type of card.<\/li>\n<li>Drag and drop a <strong>Radio Button<\/strong>\u00a0component onto the form and set the following values:\n<ul>\n<li><strong>Display Name\u00a0<\/strong>say <em>Card Type.<\/em><\/li>\n<li><strong>Name<\/strong> used for internal reference, say <em>cardtype.<\/em><\/li>\n<li><strong>Description<\/strong> of the field.<\/li>\n<li><strong>Placeholder<\/strong> value to be displayed in the field when blank, say, <em>Choose the type of credit card<\/em>.<\/li>\n<li>Under\u00a0<strong>Data Settings,\u00a0<\/strong>you can set the\u00a0<strong>Radio values<\/strong> to be <em>Platinum, Gold, Silver, <\/em>and <em>Basic<\/em>.<\/li>\n<li>Scroll and locate\u00a0<strong>Visibility Settings.<\/strong> This component should be visible only when the account type is set to Credit Card.\n<ul>\n<li>Set\u00a0<strong>Is visible<\/strong> flag to <em>Yes<\/em><\/li>\n<li>Add\u00a0<strong>Visibility Rules &#8211; Rule 1<\/strong> for the filed to be <strong>Visible<\/strong> when, select, <em>accounttype<strong>\u00a0<\/strong><\/em>field,\u00a0<em>=(Equal To)<\/em> operator,\u00a0<em>Value<\/em> comparison with,\u00a0<em>Credit Card<\/em> value.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCCType.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23658\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCCType.png\" alt=\"\" width=\"831\" height=\"677\" \/><\/a><\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><ol start=\"13\">\n<li>Finally, the Pro-Tip, when user selects a Platinum card.<\/li>\n<li>Drag and drop a <strong>Pro Tip<\/strong>\u00a0component onto the form and set the following values:\n<ul>\n<li><strong>Display Name\u00a0<\/strong>say <em>Platinum Tip.<\/em><\/li>\n<li><strong>Name<\/strong> used for internal reference, say <em>platinumtip.<\/em><\/li>\n<li><strong>Description<\/strong> would be the tip you want to display, say, <em>Additional charges will apply<\/em>.<\/li>\n<li>Scroll and locate\u00a0<strong>Visibility Settings.<\/strong> This component should be visible only when the account type is set to Credit Card.\n<ul>\n<li>Set\u00a0<strong>Is visible<\/strong> flag to <em>Yes<\/em><\/li>\n<li>Add\u00a0<strong>Visibility Rules &#8211; Rule 1<\/strong> for the field to be <strong>Visible <\/strong>when, select, <em>accounttype<strong>\u00a0<\/strong><\/em>field,\u00a0<em>=(Equal To)<\/em> operator,\u00a0<em>Value<\/em> comparison with,\u00a0<em>Credit Card<\/em> value AND selecting <em>cardtype<strong>\u00a0<\/strong><\/em>field,\u00a0<em>=(Equal To)<\/em> operator,\u00a0<em>Value<\/em> comparison with, <i>Platinum <\/i>value.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCCTip.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23659\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-formCCTip.png\" alt=\"\" width=\"831\" height=\"673\" \/><\/a><\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><ol start=\"15\">\n<li>Your form is ready.<\/li>\n<li>You can toggle between Desktop View and Mobile View to see how it looks in those devices.<\/li>\n<li>Use the\u00a0<strong>Test<\/strong> button to see a preview.<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/FormUC-final.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23660\" src=\"\/wp-content\/uploads\/sites\/22\/FormUC-final.png\" alt=\"\" width=\"1366\" height=\"768\" \/><\/a><\/p>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Dialog_Task_Configuration\"><\/span>Dialog Task Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will be creating a dialog task and adding a form node to trigger the Digital Form created in the above step and use a service node to make a service call to add the new account from the form data.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Create_Dialog_Task\"><\/span>Create Dialog Task<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Select the <strong>Build<\/strong> tab from the top menu<\/li>\n<li>From the left navigation menu, select\u00a0<strong>Conversational Skills -&gt; Dialog Tasks.<\/strong><\/li>\n<li>Click the\u00a0<strong>+<\/strong> against the\u00a0<strong>Dialog Tasks<\/strong> to create a new Task\n<ul>\n<li>Enter\u00a0<strong>IntentName<\/strong>, say,\u00a0<em>OpenAccount<\/em><\/li>\n<li><strong>Create &amp; Proceed<\/strong> to open the dialog builder page.<\/li>\n<\/ul>\n<\/li>\n<li>Retain the Intent Node default settings, and close the Intent Node.<\/li>\n<li>Click the\u00a0<strong>+<\/strong> next to the intent node and select the <strong>Form<\/strong> option.<\/li>\n<li>From the dropdown list select the form (<em>OpenAccount<\/em>) we created earlier.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811123155\/ht_form_dialog.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29049\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811123155\/ht_form_dialog.png\" alt=\"\" width=\"399\" height=\"553\" \/><\/a><\/li>\n<li>You will be prompted to select the\u00a0<strong>Form Experience.<\/strong> Kore.ai Bots platform allows you to gather user input both from the form and through conversation based on the channel.<\/li>\n<li>For this use case, let us select\u00a0<em>Only Form UI<\/em> experience.<\/li>\n<li>A Form Node would be added, you can customize the form name, etc.<\/li>\n<li>We are changing the <strong>Name<\/strong> to <em>OpenAccountForm<\/em> and <strong>Display Name<\/strong><em>\u00a0<\/em>to <em>Form to open account<\/em>.<\/li>\n<li>Next, we will see how to capture the values returned by the Form Node using a Script node and displaying the same.<\/li>\n<\/ol>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><ol start=\"11\">\n<li>Add a\u00a0<strong>Message Node<\/strong> to the form node.<\/li>\n<li>Set the\u00a0<strong>Name<\/strong> to\u00a0<em>FormMessage<\/em>\u00a0and\u00a0<strong>Display Name<\/strong> to\u00a0<em>Form Message<\/em>.<\/li>\n<li>Click the\u00a0<strong>MANAGE RESPONSES<\/strong> to open the message editor.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811123626\/ht_form_message.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29052\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811123626\/ht_form_message.png\" alt=\"\" width=\"459\" height=\"707\" \/><\/a><\/li>\n<li>Select the\u00a0<strong>JavaScript<\/strong> tab and enter the following code. This code would capture from the context object, the data submitted by the user in the Form and display it accordingly.\n<pre>var message;\r\nmessage = 'You have opened a '+context.forms.OpenAccount.accounttype+' account in the name of '+context.forms.OpenAccount.accountname;\r\nif (context.forms.OpenAccount.accounttype == 'Checkings' &amp;&amp; context.forms.OpenAccount.cashcard == 'Yes')\r\n  message = message + ' and opted for cash card with withdrawal limit set to '+ context.forms.OpenAccount.withdrawallimit;\r\nif (context.forms.OpenAccount.accounttype == 'Credit Card')\r\n  message = message + ' and opted for a '+ context.forms.OpenAccount.cardtype+' card';\r\nprint(message);<\/pre>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811124428\/ht_form_messageJS.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29055\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811124428\/ht_form_messageJS.png\" alt=\"\" width=\"1366\" height=\"768\" \/><\/a><\/li>\n<li>Your dialog with form is ready<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811124517\/ht_form_messageJS-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29058\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811124517\/ht_form_messageJS-1.png\" alt=\"\" width=\"1366\" height=\"768\" \/><\/a><\/li>\n<li><strong>Talk to bot<\/strong> and trigger the above dialog. The form will be displayed, enter the values and click Submit, the message would be displayed.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811124637\/ht_form_dialogRun.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29061\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210811124637\/ht_form_dialogRun.png\" alt=\"\" width=\"499\" height=\"455\" \/><\/a><\/li>\n<li>You can use the context object as shown above it a <strong>Script<\/strong> or <strong>Service<\/strong> nodes for further processing.<\/li>\n<li><a href=\"\/docs\/bots\/how-tos\/how-to-add-data-into-data-tables-from-digital-forms\/\" target=\"_blank\" rel=\"noopener noreferrer\">See here<\/a> for how to add this data into data tables.<\/li>\n<\/ol>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h1><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>In this post, we have seen:<\/p>\n<ul>\n<li>How to create a Digital Form;<\/li>\n<li>Add components to the Form;<\/li>\n<li>How to trigger the From from a Dialog;<\/li>\n<li>How to capture the Form data from the Dialog post submission.<\/li>\n<\/ul>\n<\/div><\/div><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><\/section>\n","protected":false},"excerpt":{"rendered":"In this How-To, we will explore a scenario in a Banking Bot, where the user can create an additional account. We will see how Digital Forms can be used to gather all the required information from the user and create the account. For details on what Digital Forms are and how it is implemented in...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/23904"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=23904"}],"version-history":[{"count":12,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/23904\/revisions"}],"predecessor-version":[{"id":29508,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/23904\/revisions\/29508"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=23904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=23904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=23904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}