How to configure LUIS as your AI provider June 07, 2022 16:40 Updated LUIS is Microsoft's NLP (Natural Language Processing) provider. If you want to integrate BLiP and LUIS, just follow the steps below: Index: Create a Microsoft account Create an Azure account Activate the Cognitive service Creating and setting up a LUIS account Create an application on LUIS Setting up LUIS on Blip Add a prediction service (available for those signed up on a paid plan) LUIS is Microsoft's NLP (Natural Language Processing) provider. If you want to integrate BLiP and LUIS, just follow the steps below: Create a Microsoft account If you already have a Microsoft account, you can skip to the next section "Create an Azure account". But if you do not have a Microsoft account yet, please follow the next steps: Access the Microsoft webpage and click “Create free account”. You need to create a new email account. If you already have one, you will be informed and asked to change it. Write down the email address so you do not miss it! After that, click “Next”. You have to create a password to keep your account safe. Keep your password in a safe place! Click “Next”. Fill out the form with your first and name. Then click “Next”. Then you must select: your country of origin; day, month and year of birth; and click “Next”. Click “Next” to prove that you are not a robot! Complete the verification. If you want to remain signed in to your Microsoft account, just click “Yes” Create an Azure account Follow this step only if you already have a Microsoft account. If you do not have one yet, please go back to the previous section "Create a Microsoft account". If you do have a Microsoft account, go to the Azure Portal and click “Free Start” to create an Azure account. Fill out the form with your name, phone number and address. Only if you fill out all the mandatory fields and agree to the customer agreement and privacy policy, you will be able to click “Next”. As the next step, you must register a credit card number. Important! You will see an alert informing you that your card will be charged only if you run out of credit, but no charge will occur without your consent. After filling out all the required information, click “Register” at the bottom of the page. Azure will verify if your credit card is valid before proceeding. All set! You will be redirected to the Azure portal with your new account. Activate the Cognitive Service Follow this step only if you already have an Azure account. If you do not have one already, please go back to the previous section "Create an account on the Azure website". If you do have an Azure account, please go to the Azure Portal, search for “Subscriptions” and access this option. Type "subscriptions" in the search field and click "Enter". Now you should click the "subscription"for which you want to enable cognitive features (e.g., “Azure subscription 1”). Under "Subscriptions", click on the “Resource Providers” button, located in the left side menu, in the “Settings” section. You can also use the upper tab within the menu to run a search. Next, register the “Microsoft.CognitiveServices” resource. You can do this by filtering the available resources,using the top bar. Click the provider and then click “Register”. Important! This process may take a while. Go get yourself a cup of coffee. Once this process is done, it's all set! Creating and setting up a LUIS Account Follow this step only if you already have a Microsoft account. If you do not have one, please go back to the section "Create a Microsoft account." If you do have a Microsoft account, let's go! Please access the LUIS Portal with your Microsoft account. If you access the LUIS Portal for the first time, and you do not have an Azure account set up yet, you will see a welcome modal. This is an alert that, in order to access the LUIS service, you need an authorization feature from an Azure subscription. To get this authorization, please follow the previous step "Create an Azure account". You can also set up the Azure account by following the tutorial on “Create a free Azure account”. If you had to create a new Azure account, please refresh the page to continue. In this step, select an Azure subscription to use LUIS. You can do so by clicking “Select Subscription”, then selecting “Azure subscription 1”, and finally clicking “Select or create an authoring resource”. Next, you must select an authorization resource to continue. If you do not have one, you can create one by clicking “Create a new authoring resource”. If you choose to create a new authorization resource, you will be redirected to a form. Within this form, you must select the resource group to which you will belong (if you do not have any options available, go to the next step), the name, the location and the pricing (F0 is free). If you do not have a resource group available, you can create a new one by writing its name in the field (Important! You have to fill out the “Location” field before you can create a new group). After doing that, click “ Create new '...' ”, as in the following image (the name of the group cannot contain spaces or special characters). After this step, you can select the new group you just created. Click “Done” to conclude. An error message may appear if you have not yet enabled the cognitive resource provider for the selected subscription. If that is the case, please follow the tutorial “Enable Cognitive Feature in Subscription”, and return to this step. After creating the authorization resource, you will be redirected to the previous step, and the created resource will already be selected. Just click “Done” to conclude. All set! Microsoft LUIS is ready to use! Please go to the next step, "Create an application on LUIS". Create an application on LUIS Follow this step only if you have already created the LUIS resource within an Azure subscription by following the steps on "Create account and setup in LUIS".Have you already created a LUIS resource? Let's go! Access the LUIS portal and click “+ New app” in the upper left corner. Fill out the required fields, such as name, culture/language, and then click “Done”. Important! This step may take a while. If the options under “Culture” do not appear, press F5 to refresh. Next, you will be redirected to the home screen of your new application. Setting up LUIS on Blip Follow this step only if you have already created an application on the LUIS portal.If you already have one, let's go! Access your application on the LUIS portal, click “Manage” at the top bar, then click “Azure Resources” on the left side menu. In the “Authoring Resource” tab, you will find the application's primary keys. Copy the primary key and location! You will need them to register the provider on Blip. Important! If you signed up for a paid plan, you must also copy the primary key from the “Prediction Resources” tab. Once that step is done, access Blip and, then, the chatbot to be configured. Next, click on the artificial intelligence tab. Click on the “Microsoft LUIS” provider card to access the “Settings” tab. Fill out the following fields:⦁ “Authoring Resource”: primary key copied from the “Authoring Resource” tab;⦁ “Cognitive Service Resource key”: if you are on a free plan, paste the primary key copied from the “Authoring Resource” tab; if your signed up for a paid plan, paste the primary key copied from the “Prediction Resource” tab;⦁ “Application region”: same region as the one on the “Authoring Resource” tab;Finally, click on the “Save” button to complete. All set!! Your Microsoft LUIS provider is ready to use. Add a prediction service (available for those signed up on a paid plan) If your "tier" is set as S0, you are signed up on a paid plan. This is a setting for the paid cognitive plan.You must use the Cognitive key and LUIS in your Provider setting.First, you must access your bot at the IA tab, on the publishing menu in the Blip portal, once at the tab, you must train and publish your model for the first time. After that, a new "conversation app" is going to be created on LUIS, whose name is the name of the bot, followed by a unique identifier (e.g. teste107_28ce320b-dd60-44e1-8a08-017ba1d39d0a).The next step is to access the application that was created by Blip (which contains the name of your bot) in the LUIS portal. In your application, access the “Manage” tab (located at the top of the screen), and then select the “Azure Resources” menu on the left side. Next, you have to add a prediction resource. To do so, click on the “Add prediction resource” button located in the “Prediction resource” tab. You will see a modal with a form to choose in which Azure directory you the resource, subscription, and finally the resource will be in.If you have not created a prediction resource yet, you can do so by clicking on the “Create a new prediction resource” button, located at the bottom of the modal. If you choose to create a new prediction resource, you will see a new modal with a form. Fill out this form with all the requested information and make sure you choose the correct plan (“Pricing Tier”):F0 - Free: free plan;S0 - Standard: paid plan; Once you are done, click “Done” at the bottom of the modal. You will be redirected to the previous form, with the newly created resource already in place! After filling out all of the required information to add the prediction feature, click “Done”. In this step, the “Prediction Resources” tab will display the added resource, including the primary and secondary keys. Important! You will need these keys to set up the provider on Blip. (The primary key for this resource will be placed in the “Cognitive Service Resource key” field on LUIS). For more information, access the discussion on the subject in our community or the videos on our channel. 😃 Related articles How to configure Dialogflow as your AI provider Action: HTTP request Setting up your AI model in the Chatbot Setting up Watson Assistant as Your AI Provider Sending WhatsApp Active Messages on Blip Desk