I did not writing a long time on my blog. Today I’ll write about ChatBot with Luis.AI and Xamarin.Forms.That application will be about Plate Number and City name. But before all this, I want to give you some information about what these titles mean.
What’s the ChatBot?
ChatBot is an auxiliary tool that lets you do all the things we do every day in an interactive way. So what does this give us? Instead of going to any site and searching for what’s where, open your ChatBot and tell it what you want to do. ChatBot will do what you say, that’s done 🙂
What’s the Luis.AI?
Language Understanding Intelligent Service (LUIS), allows your application to understand what the other person is saying.LUIS uses machine learning to allow developers to build applications that can receive user input in natural language and extract meaning from it. As such, it is a service that is constantly communicating with the user.
Let’s go to practice 🙂
First of all, we are logging in from Bot Framework site. Then we come to MyBots from the menu to create our first bot.
Then we create a bot and fill in the necessary information.
In this section, we need to create an id and password. We follow the link for this.
After clicking the “Generate” button from the link that comes up, we note the password and the information there, and then we complete the step by saying finish. When you come back, do not forget to take note of the name in Bot Handle which we wrote at the top of the page 🙂
After all these steps, we go down to the register and make our bot.
When it comes to coding. At the very end we are opening the LuisBot section of the project I will give the source code. After opening the project, we open the web.config section and fill in the information we have saved.
Our bot is now ready. From here we log in to LUIS.AI. Then we create our application by saying New App. After entering the project, we go to the Entities section on the left menu. This part of our practice will include where we are separating which data is wanted. For example, plate number or city name. We will then use it in the Intents section.
After we have done this part, we come to the Intents section and implement what we want from the application, what kind of process we have separated.
Unlike the other one here, we should say that if the city is showing, the example code we have entered is the plate code for that city. Here, as soon as a sentence of this sentence structure arrives, it will understand that [$ PlateNumber] is the plate of that city. I click on the sample number that I have entered in the bottom row and select the PlateNumber Entity. And I do the same for the ShowPlateNumber Intent, and I’m recording last.
Yes, almost everything is ready now. I come to the Train & Test section and randomly try the sentences in this sentence structure.
As you can see, when I ask for the code for the city plate, it turns to Intent. We then click on the link that was created after publishing.
We note the marked parts from the Url part. We are pasting these sections as ModelId and SubscriptionKey in the project I will give last as follows.
We have completed all the implemantation to this point. The rest is now just requesting from the API. I leave it here for the sake of no more writing, dear reader. If you have a part that you hang out from here afterwards, please contact me 🙂
You can download both Xamarin and ChatBot from here. Do not forget to create your own LUIS in order to use the project. In this project you can just paste the keys and run them 😉
See you next time, goodbye 😉