The Bot Application runs inside an application in different channel like Cortana, Skype, web chat, Facebook, Message, etc. Users can interact with bots by sending them messages, commands, and inline requests. Microsoft has announced Line App new channel added into the Azure portal.

LINE is a new communication app which allows you to make FREE voice calls and send FREE messages whenever and wherever you are. Line is available in different device iPhone, Android, Windows Phone, BlackBerry, and Nokia and even your PC and LINE is a popular messaging app with hundreds of millions of users in India, Japan, Taiwan, Thailand, Indonesia, and other countries. You can follow the below steps for Create FAQ Bot and enable your bot in the Line new channel.



Create FAQ Bot Application

You can refer to my previews article to create and build a Xamarin FAQ Bot using Azure Bot Service and deploy it into Azure. I am not using any coding for developing the Bot Application, you can follow the provided steps in the article to create and deploy FAQ Bot.

Microsoft Bot Application deploy to Line App using Azure Bot


Line Developer Portal 

We can implement a Bot Application to the Line apps. You can create a Line developer account or select an existing provider name. Create a new Line Developer App on the Page and generate an Channel Secret and Channel access token for integrating the Bot to the Line ap. You can start login or create account in the following screen.
Microsoft Bot Application deploy to Line App using Azure Bot

Create Provider

After login, start creating a provider name for your bot or if you already have the provider, select the provider name and do the setup. The provider name is individual owner or company, it’s not app name. Next Click on confirm, if you want change in the future, edit options always enable. Microsoft Bot Application deploy to Line App using Azure Bot

Line Messaging API channel 

Create a new Line App on the developer portal and generate a Channel Secret and Channel access token integrating the Bot to the page messenger. You can click on “Message API Create Channel” from the following screen.
Microsoft Bot Application deploy to Line App using Azure Bot


Create New Channel 

The following creates new channel screen provide valid your app icon.
Microsoft Bot Application deploy to Line App using Azure Bot
You can Fill out the required fields and confirm your channel settings. You can find the two developer options is available.

Developer trial - A trial plan which lets you create a bot that can send push messages and have up to 50 friends.

Free - A plan which lets you create a bot with an unlimited number of friends.The Push message cannot be sent with this plan.

Microsoft Bot Application deploy to Line App using Azure Bot

Once you've confirmed your channel settings, you'll be navigating to a following screen, which list all the apps.

Microsoft Bot Application deploy to Line App using Azure BotClick on the channel you created to access your channel settings, and scroll down to find the Basic information > Channel secret.

You can Save following somewhere for a moment for update in to Azure portal.

Channel Secret – Copy the secret code, if not available, click on Issue

Channel access Token - Scroll further to Messaging settings. There, you will see a Channel access token field, with a click on issue button forget your access token. 

Webhook URL - Webhook URL copy from Azure Portal and Update in the Line app developer portal

Microsoft Bot Application deploy to Line App using Azure Bot

Connect New LINE Channel 

Login to Azure portal > Select the “All Resources” > Select your Bot Application > Select Channels property > Find and Select New Line icon. Let us start to configure the “Line “Channel and follow the below steps, at the end of this article you will be able to deploy the Bot into the Line apps.

Microsoft Bot Application deploy to Line App using Azure Bot


The Azure Line configuration channel will generate the following Webhook URL and past/update the channel secret and access token and click Save button. You can copy following custom webhook URL and Return to the Line Developer portal and update the webhook URL

Microsoft Bot Application deploy to Line App using Azure Bot

Test Your Bot 

Once you have completed all the above steps, your bot will be successfully configured to communicate with users on LINE and is ready to test.

LINE developer console - Navigate to the settings page and you will see, a QR code of your bot.

Mobile LINE app - go to the right most navigation tab with three dots [...] and tap on the QR code icon.

Microsoft Bot Application deploy to Line App using Azure Bot

Live Demo 

Xamarin Developer Interview questions and answers Bot is ready to use in Line app. Xamarin FAQ Bot will be ready with 7000+ more Xamarin QnA’s. Now you can start open your Line App and > click on three dot line > Scan the following QR Code to add Xamarin QA bot as a friend. 

Microsoft Bot Application deploy to Line App using Azure Bot

Summary 

In this article, you have learned how to integrate a bot application into Line App via Azure Microsoft AI. In case your bot is not responding to any of your messages at all, navigate to your bot in Azure portal, and choose Test in Web Chat. If you have any questions/ feedback/ issues, please write in the comment box.
The Bot Framework Composer is a fantastic tool for creating/developing Microsoft bots, as it gives you the ability to sketch out and compose the whole simple and complex Bot applications within a visual interface instead of writing actual code. Composer to create the bot solution’s code and run it immediately to test it in the emulator and deploy it to Azure using the CLI. Bot developers should check out Composer awesome tool, as this will make your Bot development even easier in terms of building smart and engaging bots with ease. Read my previous article to build and setup the bot framework Composer development environment.

The primary goal when creating any bot is to engage your user in a meaningful conversation. One of the best ways to achieve this goal is to ensure that from the moment a user first connects, they understand your bot’s main purpose and capabilities, the reason your bot was created. In this article you will learn more about How you create initial and create greeting messages using bot framework composer.

Send welcome message to users using Bot Framework Composer

Create New Bot Application

In Bot Framework Composer Editor provide different feature for Create a new bot project, You can choice
  1. Create new bot Project from scratch
  2. List of Bot Template
  3. Select very Recent Project
  4. Collection of Recent Project 
Bot Project template contains all the code that's necessary to create the bot, you won't actually need to write any additional code for simple startup. Let we select to create a new bot from scratch with a composer.

Send welcome message to users using Bot Framework Composer

Provide Bot name, Location and description for create Bot application

Send welcome message to users using Bot Framework Composer

Bot Framework Composer Editor 

Step 1: On the right-hand side of the page, select “Greeting”.

Step 2:
Click on “+” Icon and select “Send a response”.

Step 3: Provide a message “what your bot will say for greeting “.

Step 4: Message always starts with “-“.

Response message includes one or more variations of text that must be used for composition and expansion. One of the variations provided will be picked at random. Here is an example of a simple template that includes 2 variations.

Bot Framework Composer Editor

Build Bot Application 

We have added a Greeting message and started building the bot application using the StartBot /Restart Bot button. After building success, you can click on “Test in Emulator “. 

Build Bot Application

Test in Bot Emulator 


Next, Click on “Test in Emulator” after that browser will ask you permission to open the bot emulator, once you confirmed the message, Bot emulator will open and automatically navigate to your Bot service. You can start clicking on “restart conversation”, the welcome message will display randomly.
Send welcome message to users using Bot Framework Composer


Summary 

You have successfully created and run the first bot with a greeting message using Bot framework composer. I hope you have enjoyed learning. If you have any questions/feedback/issues, please write them in the comment box.
You weren't able to attend the Microsoft Ignite or any of the world tour events. Microsoft Shared AI presentations, demo, Video, learning paths and more as a full github repo. It's amazing content that gets started by Microsoft .


Offline Ignite Learning Paths - Developers Guide to Microsoft AI, Machine Learning, DevOps to Data Science


Microsoft Legal Notices Notice saying, The content of this repository is available for you so you can reproduce any demo or learn how to present any session of the Learning Path presented at Microsoft Ignite and during the Microsoft Ignite The Tour, in your local field office, a community user group, or even as a lunch-and-learn event for your company.


 
Offline Ignite Learning Paths - Developers Guide to Microsoft AI, Machine Learning, DevOps to Data Science
Bot Framework Composer is a fantastic tool for creating/developing Microsoft bots, as it gives you the ability to sketch out and compose the whole simple and complex Bot applications within a visual interface instead of writing actual code. Composer to create the bot solution’s code and run it immediately to test it in the emulator and deploy it to Azure using the CLI. Bot developers should definitely check out this really awesome tool as this will be making your Bot development even easier in terms of building smart and engaging bots with ease. You want to learn more, just read this article for understanding and setup Bot Framework composer.

Bot Framework Composer: Setup and Build a bot

Setup Bot Framework Composer 

The Microsoft Bot Framework Composer is a Microsoft open source GitHub project, you can clone the source code and start contributing to the development as well. It’s a web-based application, you can download and run the web application in a local machine.Bot Framework Composer: Setup and Build a bot

Run Bot Composer web application

You can wait some time for cloning the source code, after cloning the repo open a command prompt and navigate to the Bot Framework Composer folder and run the following commands to start the web application.

Step 1: Build and Run the Composer application yarn software is required. Yarn is a package manager for code. It allows you to use and share code with other developers from around the world.
Bot Framework Composer: Setup and Build a bot
Step 2: Node JS is required for setup the application, download and install the Node JS application.

Bot Framework Composer

Step 3: Build and test application required Dot net core SDK, Install Dotnet core 2.2++

Bot Framework Composer: Setup and Build a bot


Step 4: Download and install Bot emulator for test the application
Bot Framework Composer
Step 5: You can successfully install and all required software, let us start build and test the composer. Open Command prompt and switch to “Composer” folder using cd <folder path>/Composer

learn Bot Framework Composer


Step 6: Install all the dependencies using “yarn install “ in command prompt

learn Bot Framework Composer

Step 7: creating and optimized production build extensions and library using “yarn build “ in command prompt.

learn Bot Framework Composer


Step 8: Start the client and server using “yarn startall” in command prompt.

learn Bot Framework Composer

Step 9: Bot framework Composer hosted successfully, open a browser and navigate to the address(http://localhost:3000) after the message composer runs successfully.

learn Bot Framework Composer


Create New Bot Composer Project

 You can create a new project or Microsoft provided example template with best practices and supporting components. Let us continue and select an existing composer template for demo. learn Bot Framework Composer
Step 1: Click on New or Select Example template and provide the Solutions Location, name and project description and start doing the Visual design.

learn Bot Framework Composer

Step 2: Start look, the visual design and no need to design for now and next article will explain very detail to How to manage and design and modify visual design

learn Bot Framework Composer


Step 3: Click on “Start Bot”, it will take some time to build the solutions

learn Bot Framework Composer

Step 4: You're now ready to start and test your bot. You will then see the Test in Emulator button show up. Click Test in Emulator and Bot Framework Emulator should start.

Bot Framework Composer: Setup and Build a bot

learn Bot Framework Composer


Debug Bot Framework Composer Build issue 


You can easily resolve your build problem, if you are getting error “You intended to execute a .NET Core program, but dotnet-bin/Debug/netcoreapp2.1/BotProject.dll does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.”, the output solution not able to compile.

Go the location of your generated bot (The one you set when creating a new bot, defaults to User Documents > Composer). 

Open command prompt “Run dotnet” build in your bot directory and see the errors.
If you have a visual studio, you can ignore step 2 and Open your project in Visual Studio.
The issue may be ranges of sources for the build not to run. Wrongly configured Nuget sources, misaligned package version, just check and resolve yourself.
Once the build succeeds, launching the bot via Composer again.
You intended to execute a .NET Core program, but dotnet-bin/Debug/netcoreapp2.1/BotProject.dll does not exist

Summary 

You have successfully done the setup and build a bot application in Bot framework composer. I hope you have enjoyed learning. If you have any questions/feedback/issues, please write them in the comment box.
Create Azure article is not a problem, we can take a screenshot and mask using a paint application or other tools, but while doing Live presentation or screen recording is a big challenge, there was a security problem. Subscription ID, email addresses, keys etc are visible on a big screen or visible in the session recordings afterwards. Microsoft shared google chrome and Firefox browser add-on for mask azure secure content.

Azure secrets content mask for presentations and screen recordings

Azure Mask Features 


The following feature available in the Azure mast extensions
  • Blurs Username, Key
  • Blurs GUIDs (such as Subscription IDs)
  • Blurs your account email and Secure content
  • Hides the "Report a Bug" button (if found)

Installing the chrome Extension 

Microsoft currently not published in the Chrome Web Store. You can download release version and add manually into the chrome extension as per below steps.

Step 1: Download Latest .crx file.

Step 2: Go to Chrome browser and select the extensions.

Step 3: Make sure the "Developer mode” is enabled.

Step 4: Drag the .crx file to your Chrome window that has the extensions view open

Step 5: Confirm any prompts 

Azure secrets content mask for presentations and screen recordings


You have successfully added chrome extensions, let we continue and see, How it's working, In the browser near to address bar Azure mask icon will be there, Just do toggle for mask.

Azure secrets content mask for presentations and screen recordings

You can log in to azure Portal and see all the sensitive information is blurred like Subscription IDs and user ID like below.

Azure secrets content mask for presentations and screen recordings

Summary 

I hope this article gave you some value and This is a fantastic tool which saves you a lot of time and makes your presentations more secure. Please leave your feedback/query using the comments box, and if you like this article, please share it with your friends.
The Microsoft Azure, Cloud, MicrosoftAI and Enterprise Symbol / Icon Set is a free download from Microsoft website, the folder included set of symbols/icons as an SVG.




Microsoft Word, PowerPoint, Outlook, and Excel for Office 365 on Windows, Mac, Android and iOS Mobile support inserting and editing, scalable vector graphics (.SVG) files in your documents, presentations, emails, and workbooks. You can open any document and insert Microsoft SVG icon and modify styles, size and arrange, it's more helpful for Prestation preparation, technical architecture design and add into different applications

The Bot Framework supports different types of rich cards, Azure AD authentication and provides a richer interaction experience to the users, I have already shared about message design, login, and deployment in my previous article. In this article, I will share about how to connect and deploy bots into Bing Search.
You can build Bing Bot Application using Bot Framework and connect the application to the Bing channel, whenever user search tag /category text and Bing search output show your Bot along with your website.

Building Chat Bots with Bing search results using Bot Framework

You can follow below give steps for implement your bot application into the Bing Channel.

Setup and Create New Bot Application

You can read my previous article for create a Bots Application Using Visual Studio 2017 from following URL http://www.c-sharpcorner.com/article/getting-started-with-bots-using-visual-studio-2017/
Building Chat Bots with Bing search results using Bot Framework

Deploy Bot to Azure

You can read my previous article for deploy bot application into Azure using Visual Studio 2017 from following URL http://www.c-sharpcorner.com/article/getting-started-deploy-a-bot-to-azure-using-visual-studio-2017/
Building Chat Bots with Bing search results using Bot Framework



Publishing Bot on Bing


Step 1:
Publishing a bot on Bing, you can navigate to Bot Framework Portal https://dev.botframework.com/bots > Login with Microsoft account > Select deployed bot application > click the Channels tab, and then click Bing.

Building Chat Bots with Bing search results using Bot Framework

Step 2: 

Upload Bot png icon within 32kb. Bot Icon will help people to find bot on Bing with image



Step 3

Provide Bot application basic information

Display Name - provide a bot display name. This name will appear in Bing search results.

Long Description – provide about bot application. The bot must operate as described in its bot description.

Website - Link to your website with more information about this bot.


Step 4:
The Category and tags option will help us for search bot , You can select relevant category and provide tag value with comma separated .

Building Chat Bots with Bing search results using Bot Framework

Step 5

You can provide the following publisher information.

  • Publisher Name
  • Publisher Email
  • Publisher Phone

Building Chat Bots with Bing search results using Bot Framework

Step 6:
Provide the privacy and terms url and Click on Submit for Review

Building Chat Bots with Bing search results using Bot Framework

Step 7:
The review process will take a few weeks or days and you will get approved email confirmation. after approval, you can search your bot on bing using search keyword based on category and tag.

Building Chat Bots with Bing search results using Bot Framework

Click the Test on Bing , the link to preview a sample of how the bot will appear on Bing on like below

Building Chat Bots with Bing search results using Bot Framework

Related Article:


 I have explained about Bot framework Installation, deployment and implementation in the below article

Getting Started with Chatbot Using Azure Bot Service
Getting Started with Bots Using Visual Studio 2017
Deploying A Bot to Azure Using Visual Studio 2017
How to Create ChatBot In Xamarin
Getting Started with Dialog Using Microsoft Bot Framework
Getting Started with Prompt Dialog Using Microsoft Bot Framework
Getting Started With Conversational Forms And FormFlow Using Microsoft Bot Framework
Getting Started With Customizing A FormFlow Using Microsoft Bot Framework
Sending Bot Reply Message With Attachment Using Bot Framework
Getting Started With Hero Card Design Using Microsoft Bot Framework
Getting Started With Thumbnail Card Design Using Microsoft Bot Framework
Getting Started With Adaptive Card Design Using Microsoft Bot Framework
Getting Started with Receipt Card Design Using Microsoft Bot Framework
Building Bot Application With Azure AD Login Authentication Using AuthBot

Summary 


In this article, you learned how to connect and deploy bots into Bing Search. If you have any questions/feedback/ issues, please write in the comment box.

Featured Post

Improving C# Performance by Using AsSpan and Avoiding Substring

During development and everyday use, Substring is often the go-to choice for string manipulation. However, there are cases where Substring c...

MSDEVBUILD - English Channel

MSDEVBUILD - Tamil Channel

Popular Posts