Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[日本語版はこちら]
Azure Bot Service is "bot-as-a-service" which we can publish bot app, deploying app on Azure Functions and registering Bot Directory at once in Azure Portal. This is 3-step tutorial to deply bot app using Azure Bot Service, add text-analytics flavor using and training pre-built LUIS (Language Understanding Intelligent Service).
Open Azure Portal (https://portal.azure.com) and sign in with your account. Click [New+] and select [Intelligent + analytics] > [Bot Service]. At [Bot Service] blade type or select App Name, Resource Group, Datacenter Place, and click [Create].
As "Finish deploy successful" message comes up, click and open Bot Service just created. At [Create a Microsoft App ID] section, click [Create Microsoft App ID and password].
At [Create App ID and password] screen, click [Generate app password]. New password pops up, copy and save it locally.
Back to original screen, paste password below app ID which is auto-filled. Now you can select bot app language (C# or Node.JS) and template.
Select [LUIS] and click [Create Bot] to deploy bot app using LUIS.
Once bot created, you can see codes in left pane and web chat in right pane. Type something and check default returns.
On [Develop] tab in left pane, you can manage bot behavior maily BasicLuisDialig.csx. Click and show its code. There are 2 intents, called "none" and "MyIntent" as analyzing result of message sent to bot. Edit code as below as bot returns LuisIntent("None") as English and LuisIntent("MyIntent") as Japanese this time.
Open LUIS Website (https://www.luis.ai/) and sign in (if needed). At "My Application" screen, pick up one named "YourLuisAPP-..." . Click Edit in that section.
Click (+) at "Intents" Section and add intent named "MyIntent". Use "None" as created by default.
At [New Utterances] tub, enter Japanese sentences and submit as "MyIntent". Otherwise, enter English sentences and submit as "None" intent. Click [Train] to let this model learn.
Go to [Publish] and click [Update published application] to update to public.
Go back to Bot Service blade in Azure Portal, check behavior in web chat. Or, you can set it up to your website with iframe. Go to [Channels] Tab, and get from [Get bot embed codes]
Here is my bot as created as above. Enjoy!
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in