{"id":19342,"date":"2019-06-28T12:01:10","date_gmt":"2019-06-28T12:01:10","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=19342"},"modified":"2022-09-02T15:41:46","modified_gmt":"2022-09-02T10:11:46","slug":"create-chat-bot-using-dynamics-365-virtual-agent-for-your-customers","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/06\/create-chat-bot-using-dynamics-365-virtual-agent-for-your-customers\/","title":{"rendered":"Create chatbot using Dynamics 365 Virtual Agent for your Customers"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">Customer service is the key aspect of any organization that add value to their growth. It becomes very important for organizations to focus on satisfying the customers with their services. We know email, phone call are the channels that the customer use to reach out to the organization and get what they are looking for. But it is important for an organization to keep up with the latest technology that can be incorporated to engage with customers and provide services to customers wherever they are.<\/p>\n<p style=\"text-align: justify;\">In recent years, we can see the use of chatbot has increased because it provides immediate customer service without human interaction. What if you want to add or create chatbot to provide customer service?<\/p>\n<p style=\"text-align: justify;\">Dynamics 365 Virtual Agent is a new Microsoft Dynamics 365 feature (which is in preview) that helps Dynamics 365 CRM users to create powerful chat bots using no-code graphical interface. In this blog, we will see how to create a bot for real-world scenario using Dynamics 365 Virtual Agent.<\/p>\n<p><strong>Scenario:<\/strong><\/p>\n<p style=\"text-align: justify;\">Suppose you have a website to help your customer to find the details about your services\/products and contact details to reach out to your organization\u2019s Customer Service Representative. Now you want to add chat bot on your website which will allow your customers to ask the questions to the bot and get the answers. But in some cases, you would want to validate the customer\u2019s identity. For example, the customer asks the bot to show them their outstanding payment. Before bot answers, the bot should validate the customer\u2019s identity. It should check whether we have their record in our Dynamics CRM system or not. If yes then only answer the question.<\/p>\n<p>Let\u2019s jump into the Dynamics 365 Virtual Agent feature and see how to use that in the above scenario.<\/p>\n<p><strong>Create Bot using Dynamics 365 Virtual Agent: <\/strong><\/p>\n<p>Kindly note that the Dynamic 365 Virtual Agent feature is in preview now and is available to try on US region only. It will be available for production use by October 2019.<\/p>\n<p style=\"text-align: justify;\"><strong>1<\/strong>. Sign up for Dynamics 365 Virtual Agent for customer service. Go to <a href=\"http:\/\/aka.ms\/virtual-agent\">ms\/virtual-agent<\/a> and click on\u00a0<strong>Try Preview<\/strong> button and then sign up using your existing work email address.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19344\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1chat-bot.jpg\" alt=\"chat bot\" width=\"1078\" height=\"576\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1chat-bot.jpg 1078w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1chat-bot-300x160.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1chat-bot-768x410.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1chat-bot-1024x547.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1chat-bot-660x353.jpg 660w\" sizes=\"(max-width: 1078px) 100vw, 1078px\" \/><\/p>\n<p><strong>2<\/strong>. After performing this step you will get the required license for Dynamics 365 Virtual Agent application. You will get the access to <a href=\"https:\/\/va.ai.dynamics.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/va.ai.dynamics.com<\/a> . This is the URL from where you can create multiple new bots and can manage those. In my case, I have created bot and named it as \u2018Demo Bot\u2019.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19345\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/2chat-bot.png\" alt=\"chat bot\" width=\"503\" height=\"536\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/2chat-bot.png 503w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/2chat-bot-282x300.png 282w\" sizes=\"(max-width: 503px) 100vw, 503px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>3<\/strong>. While creating a bot you have to specify name of the bot and select the environment. Since this Dynamics 365 Virtual Agent feature is currently available for US region, you will only be able to select the environment created in the US region. If you do not have one then you can create it from Power Apps.\u00a0 Click on \u201c<a href=\"https:\/\/docs.microsoft.com\/en-gb\/dynamics365\/ai\/customer-service-virtual-agent\/getting-started-new-environment\" target=\"_blank\" rel=\"noopener noreferrer\">How to create an environment for Virtual Agent<\/a>\u201d link. This will guide you to create new environment.<\/p>\n<p style=\"text-align: justify;\"><strong>4<\/strong>. The bot is created with some default standard topics that we can use and also create our own topics. Topics is the area where we have to configure what bot should do when the user asks the questions.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19346\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/3chat-bot.jpg\" alt=\"chat bot\" width=\"1440\" height=\"770\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/3chat-bot.jpg 1440w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/3chat-bot-300x160.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/3chat-bot-768x411.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/3chat-bot-1024x548.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/3chat-bot-660x353.jpg 660w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/p>\n<p><strong>5<\/strong>. Here, I am going to create a new Topic which will trigger when user asks for outstanding payment. Click on \u2018New topic\u2019. Give name, add description and save it by clicking on \u2018Save Topic\u2019 button. Next, you need to add appropriate trigger phrases. In my case, I have added the following trigger phrases:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19347\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/4chat-bot.jpg\" alt=\"chat bot\" width=\"1442\" height=\"582\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/4chat-bot.jpg 1442w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/4chat-bot-300x121.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/4chat-bot-768x310.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/4chat-bot-1024x413.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/4chat-bot-660x266.jpg 660w\" sizes=\"(max-width: 1442px) 100vw, 1442px\" \/><\/p>\n<p>So now, when a customer types any of the above phrases this topic will get triggered and will run the conversation.<\/p>\n<p><strong><em>*Whenever you edit the topic, always remember to save it. <\/em><\/strong><\/p>\n<p><strong>6<\/strong>. Next step is to edit the conversation. In this area, we can actually configure what the bot should do. Click on the below highlighted Edit button to edit the conversation.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19348\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/5chat-bot.jpg\" alt=\"chat bot\" width=\"1436\" height=\"403\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/5chat-bot.jpg 1436w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/5chat-bot-300x84.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/5chat-bot-768x216.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/5chat-bot-1024x287.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/5chat-bot-660x185.jpg 660w\" sizes=\"(max-width: 1436px) 100vw, 1436px\" \/><\/p>\n<p><strong>7<\/strong>. As we need to verify the customer, we will ask bot to get the email address from the customer. Enter appropriate message in \u2018Bot Says\u2019 step. This message will be displayed when the customer asks for outstanding payment.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19349\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/6chat-bot.jpg\" alt=\"chat bot\" width=\"818\" height=\"684\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/6chat-bot.jpg 818w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/6chat-bot-300x251.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/6chat-bot-768x642.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/6chat-bot-660x552.jpg 660w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/p>\n<p><strong>8<\/strong>. After that capture the customer\u2019s response in a variable that we will then pass to the Microsoft Flow which will in turn revert whether customer is valid or not. Click on \u2018User says\u2019 to capture user\u2019s response.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19350\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/7chat-bot.jpg\" alt=\"chat bot\" width=\"441\" height=\"571\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/7chat-bot.jpg 441w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/7chat-bot-232x300.jpg 232w\" sizes=\"(max-width: 441px) 100vw, 441px\" \/><\/p>\n<p><strong>9<\/strong>. Delete the user response and add new variable as shown below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19351\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/8chat-bot.jpg\" alt=\"chat bot\" width=\"340\" height=\"269\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/8chat-bot.jpg 340w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/8chat-bot-300x237.jpg 300w\" sizes=\"(max-width: 340px) 100vw, 340px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19352\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/9chat-bot.jpg\" alt=\"chat bot\" width=\"657\" height=\"412\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/9chat-bot.jpg 657w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/9chat-bot-300x188.jpg 300w\" sizes=\"(max-width: 657px) 100vw, 657px\" \/><\/p>\n<p>Create a new variable of type \u2018Text\u2019 to store the email address.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19353\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/10chat-bot.jpg\" alt=\"chat bot\" width=\"440\" height=\"309\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/10chat-bot.jpg 440w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/10chat-bot-300x211.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/10chat-bot-200x140.jpg 200w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/p>\n<p>Delete the below expression that get added when we add variable to capture output response.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19354\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/11chat-bot.jpg\" alt=\"chat bot\" width=\"370\" height=\"559\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/11chat-bot.jpg 370w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/11chat-bot-199x300.jpg 199w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><\/p>\n<p><strong>10<\/strong>. At this stage we have to ask the customer to enter the email address and capture it in \u2018EmailAddress\u2019 variable. Now we need to pass this email address to Microsoft Flow. So first, we will create a Microsoft Flow.<\/p>\n<p><strong>11<\/strong>. Go to <a href=\"https:\/\/web.powerapps.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/web.powerapps.com<\/a> . Select the environment which got created while registering for Dynamics 365 Virtual Agent. In my case you can see two environments &#8211; one is my Dynamics 365 Customer Engagement environment (crmworks41) and another is Virtual Agent environment (crmworks41 (default)).<\/p>\n<p>Select the Virtual Agent environment.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19355\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/12chat-bot.jpg\" alt=\"chat bot\" width=\"1388\" height=\"453\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/12chat-bot.jpg 1388w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/12chat-bot-300x98.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/12chat-bot-768x251.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/12chat-bot-1024x334.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/12chat-bot-660x215.jpg 660w\" sizes=\"(max-width: 1388px) 100vw, 1388px\" \/><\/p>\n<p>Create a new solution in that environment and then create new Flow. The flow added in this environment will be displayed in Virtual Agent portal in the \u2018Action\u2019 section.<\/p>\n<p><strong>12<\/strong>. Create a new Microsoft Flow and select the trigger point as http request as shown in the below screen shot.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19356\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/13chat-bot.jpg\" alt=\"chat bot\" width=\"1428\" height=\"618\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/13chat-bot.jpg 1428w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/13chat-bot-300x130.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/13chat-bot-768x332.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/13chat-bot-1024x443.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/13chat-bot-660x286.jpg 660w\" sizes=\"(max-width: 1428px) 100vw, 1428px\" \/><\/p>\n<p><strong>13<\/strong>. Add Request Body JSON schema. We can use \u2018Use sample payload to generate schema\u2019 method to generate the JSON schema. In my case I have added payload as shown below and it generates the JSON body schema.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19357\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/14chat-bot.jpg\" alt=\"chat bot\" width=\"1242\" height=\"400\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/14chat-bot.jpg 1242w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/14chat-bot-300x97.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/14chat-bot-768x247.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/14chat-bot-1024x330.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/14chat-bot-660x213.jpg 660w\" sizes=\"(max-width: 1242px) 100vw, 1242px\" \/><\/p>\n<p><strong>14<\/strong>. Add new step in Flow to add Common Data Service Connector and select \u2018List Records\u2019 action. Now select the Dynamics 365 CRM environment in CDS connector. In my case my CRM environment is different than the current environment so I have selected my CRM environment.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19358\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/15chat-bot.jpg\" alt=\"chat bot\" width=\"638\" height=\"212\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/15chat-bot.jpg 638w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/15chat-bot-300x100.jpg 300w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/p>\n<p>Configure this CDS connector to get the contacts from CRM based on the email address. EmailAddress is coming from the body of the http request.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19359\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/16chat-bot.jpg\" alt=\"chat bot\" width=\"611\" height=\"339\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/16chat-bot.jpg 611w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/16chat-bot-300x166.jpg 300w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/p>\n<p><strong>15<\/strong>. Now next add Response step. Here we need to add response body and the response Body JSON schema.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19360\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/17chat-bot.jpg\" alt=\"chat bot\" width=\"500\" height=\"444\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/17chat-bot.jpg 500w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/17chat-bot-300x266.jpg 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19361\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/18chat-bot.jpg\" alt=\"chat bot\" width=\"826\" height=\"445\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/18chat-bot.jpg 826w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/18chat-bot-300x162.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/18chat-bot-768x414.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/18chat-bot-660x356.jpg 660w\" sizes=\"(max-width: 826px) 100vw, 826px\" \/><\/p>\n<p>So here we are sending \u2018Yes\u2019 and \u2018No\u2019 in response. If matching contact exists in CRM then send <strong>Yes<\/strong> or else <strong>No<\/strong>. As Virtual Agent\u2019s expression do not have support for Boolean we are sending response in string format. Here is how my entire flow will look like:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19362\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/19chat-bot.jpg\" alt=\"chat bot\" width=\"1251\" height=\"727\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/19chat-bot.jpg 1251w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/19chat-bot-300x174.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/19chat-bot-768x446.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/19chat-bot-1024x595.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/19chat-bot-660x384.jpg 660w\" sizes=\"(max-width: 1251px) 100vw, 1251px\" \/><\/p>\n<p>Now save this flow and check if it is getting displayed in your Topics created in Virtual Agent.<\/p>\n<blockquote><p>Note: if you want to modify the Flow then you have to first deactivate it. You have to make sure that the flow is active and is created in right environment.<\/p><\/blockquote>\n<p><strong>16<\/strong>. Let\u2019s call this newly created flow in our Topic. Click on \u2018Action\u2019 and select the MS Flow.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19363\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/20chat-bot.jpg\" alt=\"chat bot\" width=\"692\" height=\"349\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/20chat-bot.jpg 692w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/20chat-bot-300x151.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/20chat-bot-660x333.jpg 660w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/><\/p>\n<p><strong>17<\/strong>. In next screen we will select the variable that we created in Topic and pass it to the Flow. You can also see the output from Flow. We will use it to perform further actions in the Topic.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19364\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/21chat-bot.jpg\" alt=\"chat bot\" width=\"702\" height=\"457\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/21chat-bot.jpg 702w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/21chat-bot-300x195.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/21chat-bot-660x430.jpg 660w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>18<\/strong>. Add \u2018Expression\u2019 step and check the output response from Flow. If the response is <strong>Yes<\/strong> then add \u2018Bot Says\u2019 step and add message like \u201c<em>Thank you. You are registered user. Fetching your outstanding payments<\/em>\u201d or else add message like \u201cSorry, you are not registered customer. Please contact our Sales rep\u201d. In a valid scenario you can then call another Flow to get the outstanding payments from CRM for that customer.<\/p>\n<p><strong>19<\/strong>. We can also write Flow response in \u2018Bot says\u2019 step, as shown below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19365\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/22chat-bot.jpg\" alt=\"chat bot\" width=\"312\" height=\"123\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/22chat-bot.jpg 312w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/22chat-bot-300x118.jpg 300w\" sizes=\"(max-width: 312px) 100vw, 312px\" \/><\/p>\n<p><strong>20<\/strong>. We can validate our topic using \u2018Topic Checker\u2019 button.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19366\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/23chat-bot.jpg\" alt=\"chat bot\" width=\"973\" height=\"193\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/23chat-bot.jpg 973w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/23chat-bot-300x60.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/23chat-bot-768x152.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/23chat-bot-660x131.jpg 660w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/p>\n<p>So, this way we can create and add our conversation. Now next step is to test your bot before publishing and deploying it to the website. Here is the full view of Topic.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19343\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1bot.png\" alt=\"bot\" width=\"654\" height=\"716\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1bot.png 654w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/1bot-274x300.png 274w\" sizes=\"(max-width: 654px) 100vw, 654px\" \/><\/p>\n<p><strong>Test Dynamics 365 Virtual Agent Bot<\/strong><\/p>\n<p>Dynamics 365 Virtual Agent has one cool thing i.e. test your bot before publishing it. This saves a lot of time. Click on \u2018Test your bot\u2019 button and start testing the conversation.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19368\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/25chat-bot.jpg\" alt=\"chat bot\" width=\"638\" height=\"772\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/25chat-bot.jpg 638w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/25chat-bot-248x300.jpg 248w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/p>\n<p><strong>Publish and Deploy Dynamics 365 bot<\/strong><\/p>\n<p>Click on Deploy button and you will see two options &#8211; Demo website and custom website. Using Demo website you can directly check your bot on Microsoft\u2019s Demo website. To publish the new changes made in your bot, you have to click on Publish button.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19369\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/26chat-bot.jpg\" alt=\"chat bot\" width=\"685\" height=\"508\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/26chat-bot.jpg 685w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/26chat-bot-300x222.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/26chat-bot-660x489.jpg 660w\" sizes=\"(max-width: 685px) 100vw, 685px\" \/><\/p>\n<p>Custom website is where you will get the html IFrame content that you can embed into your website. Again you have to publish the custom website to reflect the changes on bot that you have embedded on custom website.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19370\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/27chat-bot.jpg\" alt=\"chat bot\" width=\"1083\" height=\"750\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/27chat-bot.jpg 1083w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/27chat-bot-300x208.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/27chat-bot-768x532.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/27chat-bot-1024x709.jpg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/27chat-bot-660x457.jpg 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/27chat-bot-200x140.jpg 200w\" sizes=\"(max-width: 1083px) 100vw, 1083px\" \/><\/p>\n<p><strong>Here is the working video of the bot. <\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19371\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/bot.gif\" alt=\"bot\" width=\"800\" height=\"426\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>With Dynamics 365 Virtual Agent you can create chatbot for your website and provide exemplary customer service to your customers.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Generate Your Own New Leads Within Microsoft Dynamics 365 CRM<\/div><\/div><\/h2>\n<p><em>Contact us for a <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">demo<\/a> to know more about how <a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> can help you to generate new leads from within Microsoft Dynamics 365 CRM.<\/em><\/p>\n<p><em><a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> is a 5-star rated, preferred business app on the <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a> that is Certified for Microsoft Dynamics 365 (CfMD) and comes with powerful features like Appointment Planning, Sales Routing, Territory Management, Heat Maps, Geo-analytical Dashboards and more that empower organizations to add more value to their CRM data, improve sales &amp; service processes, and achieve high ROI.<\/em><\/p>\n<p><em>Get your <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">free trial<\/a> from our Website or <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a>!<\/em><\/p>\n<p><em>&#8216;If data is the new oil, location intelligence is ??\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Customer service is the key aspect of any organization that add value to their growth. It becomes very important for organizations to focus on satisfying the customers with their services. We know email, phone call are the channels that the customer use to reach out to the organization and get what they are looking\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/06\/create-chat-bot-using-dynamics-365-virtual-agent-for-your-customers\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":23721,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,18,1894,36],"tags":[1892,1893,1150],"class_list":["post-19342","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-365-virtual-agent","category-microsoft-flow","tag-dynamics-365-virtual-agent","tag-dynamics-365-virtual-agent-chat-bot","tag-microsoft-flow"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=19342"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19342\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/23721"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=19342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=19342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=19342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}