{"id":19495,"date":"2019-07-05T12:28:37","date_gmt":"2019-07-05T12:28:37","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=19495"},"modified":"2020-05-27T07:12:55","modified_gmt":"2020-05-27T07:12:55","slug":"increase-productivity-of-crm-users-by-using-dynamics-365-virtual-agent","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/07\/increase-productivity-of-crm-users-by-using-dynamics-365-virtual-agent\/","title":{"rendered":"Increase productivity of CRM users by using Dynamics 365 Virtual Agent"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>In our previous <a href=\"https:\/\/www.inogic.com\/blog\/2019\/06\/create-chat-bot-using-dynamics-365-virtual-agent-for-your-customers\/\">blog<\/a>, we illustrated how we can use Dynamics 365 Virtual Agent to create Chatbot for the customers. In this blog, we will see how we can use Dynamics 365 Virtual Agent for employees of the organization or the CRM users.<\/p>\n<p>We can allow the CRM users to use Chatbot to perform operations quickly like Qualify Lead, won opportunity, get the count of some entity records, etc. Now let\u2019s configure Dynamics 365 Virtual Agent Chatbot to qualify a lead. Once the user asks the bot to qualify a lead, the bot will in return ask for email id to find the corresponding lead. If the bot finds the email then it will qualify that lead or else will display a message like &#8211; lead not found in the system.<\/p>\n<h2><strong>Create Bot using Dynamics 365 Virtual Agent: <\/strong><\/h2>\n<p>Read our previous <a href=\"https:\/\/www.inogic.com\/blog\/2019\/06\/create-chat-bot-using-dynamics-365-virtual-agent-for-your-customers\/\" target=\"_blank\" rel=\"noopener noreferrer\">blog<\/a> to understand how to create Chatbot using Dynamics 365 Virtual agent.<\/p>\n<p><strong>1<\/strong>. Login to <a href=\"https:\/\/va.ai.dynamics.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/va.ai.dynamics.com<\/a> and create a new bot. Give an appropriate name to it and also make sure that you have selected the correct environment.<\/p>\n<p style=\"padding-left: 80px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19496\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"504\" height=\"536\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 504w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-282x300.png 282w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/p>\n<p><strong>2<\/strong>. Go to the Topic and create a new Topic. After that add trigger phrases. Here we have added the following trigger phrases as shown in the below screen shot:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19497\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1437\" height=\"482\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1437w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x101.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x258.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x343.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x221.png 660w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/p>\n<p><strong>3<\/strong>. Now next step is to configure the bot to add conversation. Click on <strong>Edit<\/strong> to edit the conversation.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19498\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1439\" height=\"363\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1439w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x76.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x194.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x258.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x166.png 660w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/p>\n<p><strong>4<\/strong>. After trigger phrases step, add \u2018Bot Says\u2019 step and add message like \u201cPlease enter email address of lead\u201d.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19499\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1228\" height=\"353\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1228w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x86.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x221.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x294.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x190.png 660w\" sizes=\"(max-width: 1228px) 100vw, 1228px\" \/><\/p>\n<p><strong>5<\/strong>. Next add \u2018User Says\u2019 step and then create a variable to capture the user\u2019s response.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19500\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1229\" height=\"565\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1229w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x138.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x353.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x471.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x303.png 660w\" sizes=\"(max-width: 1229px) 100vw, 1229px\" \/><\/p>\n<p style=\"padding-left: 120px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19501\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"439\" height=\"305\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 439w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x208.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-200x140.png 200w\" sizes=\"(max-width: 439px) 100vw, 439px\" \/><\/p>\n<p>Delete the newly added expression that was created after adding a new variable.<\/p>\n<p style=\"padding-left: 40px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19502\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"662\" height=\"256\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 662w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x116.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x255.png 660w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/p>\n<p><strong>6<\/strong>. At this stage we have captured the user\u2019s response i.e. email address. Now we have to search for matching lead in the CRM system and need to qualify that. We can achieve this by using Microsoft Flow. So let\u2019s first create Microsoft Flow.<\/p>\n<p><strong>7<\/strong>. To avail Microsoft Flow in Dynamics 365 Virtual Agent you have to create Microsoft Flow in Dynamics 365 Virtual Agent environment. The Microsoft flow should be in the environment which has created while singing up to Dynamics 365 Virtual Agent.<\/p>\n<p><strong>8<\/strong>. So here we have created a new solution in Power Apps (<a href=\"https:\/\/web.powerapps.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/web.powerapps.com<\/a>) under the Dynamics 365 Virtual Agent environment and added a new Microsoft Flow.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19503\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1424\" height=\"565\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1424w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x119.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x305.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x406.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x262.png 660w\" sizes=\"(max-width: 1424px) 100vw, 1424px\" \/><\/p>\n<p><strong>9<\/strong>. Next create a new Microsoft Flow of type \u2018http request\u2019 and select below highlighted trigger.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19504\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/9Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"619\" height=\"513\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/9Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 619w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/9Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x249.png 300w\" sizes=\"(max-width: 619px) 100vw, 619px\" \/><\/p>\n<p><strong>10<\/strong>. Add JSON schema to read the parameter (EmailAddress) pass to the Microsoft Flow by Virtual Agent. (For more details refer previous <a href=\"https:\/\/www.inogic.com\/blog\/2019\/06\/create-chat-bot-using-dynamics-365-virtual-agent-for-your-customers\/\" target=\"_blank\" rel=\"noopener noreferrer\">blog<\/a>)<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19505\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"604\" height=\"367\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 604w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x182.png 300w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/p>\n<p><strong>11<\/strong>. Now we have to search for lead by email address in CRM. So add Common Data Service \u2018List Records\u2019 step in MS Flow and search for lead based on email address.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19506\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"614\" height=\"422\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 614w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x206.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p>\n<p><strong>12<\/strong>. The next step is to qualify the lead. To qualify lead we can execute Web API request i.e. <strong>QualifyLead<\/strong> through MS Flow. This involves two steps, first get the access token and then execute QualifyLead request using Http Trigger action.<\/p>\n<p><strong>13<\/strong>. First &#8211; Get the access token;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19507\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/12Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"623\" height=\"614\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/12Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 623w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/12Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x296.png 300w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/p>\n<p>To get URI, login to <a href=\"https:\/\/portal.azure.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/portal.azure.com<\/a>. Navigate to Azure Active Directory -&gt; App Registration &#8211; &gt; Endpoints. Copy \u2018OAuth 2.0 token endpoint\u2019 URL.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19508\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1371\" height=\"580\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1371w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x127.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x325.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x433.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x279.png 660w\" sizes=\"(max-width: 1371px) 100vw, 1371px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19509\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1439\" height=\"580\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1439w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x121.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x310.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x413.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x266.png 660w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/p>\n<p>Pass following parameters in the body of request,<\/p>\n<p>grant_type=client_credentials<\/p>\n<p>client_id=&lt;application id&gt;\/\/add id of application registered in Azure Active Directory<\/p>\n<p>client_secret=&lt;secret key of application&gt;<\/p>\n<p>resource=&lt;crm url&gt;<\/p>\n<p><strong>14<\/strong>. Once we are ready with access token, store it in Variable (add \u2018Initialize variable\u2019 step) and then check if the \u2018list records\u2019 step of Common Data service has returned any lead. If yes then call HTTP trigger action and call Web API QualifyLead method otherwise return \u2018Lead not found\u2019 result in HTTP request Response action.<\/p>\n<p>Next initialize Flow variable to store Access Token and initialize another Flow variable to store the result that needs to be send as response to the calling platform i.e. Dynamics 365 virtual agent.<\/p>\n<p style=\"padding-left: 40px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19510\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/15Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"630\" height=\"483\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/15Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 630w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/15Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x230.png 300w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/p>\n<p><strong>15<\/strong>. Check if matching lead is found or not. If found then call HTTP trigger action to execute Web API request or else set result as \u2018Lead not found\u2019.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19511\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"974\" height=\"689\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 974w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x212.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x543.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x467.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-200x140.png 200w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/p>\n<p><strong>16<\/strong>. Finally, call \u2018Request Response\u2019 action and pass the Result variable as response.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19512\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/17Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1072\" height=\"698\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/17Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1072w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/17Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x195.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/17Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x500.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/17Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x667.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/17Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x430.png 660w\" sizes=\"(max-width: 1072px) 100vw, 1072px\" \/><\/p>\n<p><strong>17<\/strong>. Save the flow and activate it by clicking on \u2018Turn On\u2019 button.<\/p>\n<p><strong>18<\/strong>. Now call this MS Flow in our bot and pass \u2018EmailAddress\u2019 variable.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19513\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/18Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"662\" height=\"446\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/18Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 662w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/18Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x202.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/18Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x445.png 660w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 80px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19514\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/19Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"391\" height=\"523\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/19Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 391w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/19Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-224x300.png 224w\" sizes=\"(max-width: 391px) 100vw, 391px\" \/><\/p>\n<p>Add final \u2018Bot says\u2019 step and add output from Flow.<\/p>\n<p><strong>19<\/strong>. Save the topic and test it. If bot is working as expected then publish it. (Refer our previous <a href=\"https:\/\/www.inogic.com\/blog\/2019\/06\/create-chat-bot-using-dynamics-365-virtual-agent-for-your-customers\/\">blog<\/a> for more details.)<\/p>\n<h2><strong>Add Chatbot in Dynamics CRM<\/strong><\/h2>\n<p>We are ready with our bot. Now we need to embed it somewhere in Dynamics CRM so that CRM users can use it. In April 2019 release, Microsoft has introduced Channel Integration Framework solution. Refer following article to know more about CIF. (<a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/developer\/channel-integration-framework\/channel-integration-framework\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/developer\/channel-integration-framework\/channel-integration-framework<\/a>)<\/p>\n<ul>\n<li>Install CIF from <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/mscrm.d365ciframework-preview?flightCodes=d365cifalohamora&amp;tab=Overview\" target=\"_blank\" rel=\"noopener noreferrer\">App Source<\/a>.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19515\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/20Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1398\" height=\"595\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/20Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1398w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/20Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x128.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/20Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x327.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/20Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x436.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/20Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x281.png 660w\" sizes=\"(max-width: 1398px) 100vw, 1398px\" \/><\/p>\n<ul>\n<li>This will add CIF solution in Dynamics CRM.<\/li>\n<\/ul>\n<p style=\"padding-left: 80px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19516\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/21Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"364\" height=\"286\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/21Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 364w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/21Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x236.png 300w\" sizes=\"(max-width: 364px) 100vw, 364px\" \/><\/p>\n<ul>\n<li>Open \u2018Channel Integration Framework\u2019 app and create a new record of \u2018Channel Provider\u2019 entity.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19517\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/22Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1427\" height=\"503\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/22Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1427w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/22Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x106.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/22Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x271.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/22Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x361.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/22Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x233.png 660w\" sizes=\"(max-width: 1427px) 100vw, 1427px\" \/><\/p>\n<ul>\n<li>Here, the important thing is \u2018Channel URL\u2019. Copy the virtual agent bot URL and past it here.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19518\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1virtual-agent.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"952\" height=\"95\" \/><\/p>\n<p>You will get the bot URL from Deploy section of the Virtual Agent bot.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19519\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2virtual-agent.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1432\" height=\"631\" \/><\/p>\n<ul>\n<li>So this step will add a Virtual Agent Bot in CIF panel in CRM as shown in the below screenshot.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19520\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/25Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"1439\" height=\"774\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/25Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users.png 1439w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/25Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/25Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-768x413.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/25Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-1024x551.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/25Use-Dynamics-365-Virtual-Agent-Chabot-for-the-CRM-users-660x355.png 660w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/p>\n<p><strong>Here is the video of the working bot;<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19521\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/chatbot.gif\" alt=\"Use Dynamics 365 Virtual Agent Chabot for the CRM users\" width=\"800\" height=\"426\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this way the Dynamics 365 users can now directly talk with bot while being in CRM and perform operations.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In our previous blog, we illustrated how we can use Dynamics 365 Virtual Agent to create Chatbot for the customers. In this blog, we will see how we can use Dynamics 365 Virtual Agent for employees of the organization or the CRM users. We can allow the CRM users to use Chatbot to perform\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/07\/increase-productivity-of-crm-users-by-using-dynamics-365-virtual-agent\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":23688,"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,1894,19,67],"tags":[1897,1896],"class_list":["post-19495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-365-virtual-agent","category-dynamics-crm","category-workflows","tag-channel-integration-framework","tag-dynamics-365-virtual-agent-chabot"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19495","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=19495"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19495\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/23688"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=19495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=19495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=19495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}