In this post we will see how can we setup an express web application and how to deploy an node.js based express web application. Step 1: Creating an web application in express. To create a express application skeleton we need to install express generator from npm: Check available option while creating an express app: After … Continue reading Creating and Deploying Express Web App on Azure in few steps
Microsoft provides its Bot framework to build smart chat bots. It provides the Bot Builder SDK in two languages i.e Node.js and C#. Azure provides us the setup of developing the web app bot on cloud with integrated web-chat channel and integrated online VScode editor. The bot on Azure is deployed on Azure Web server … Continue reading Is developing bots using Microsoft Bot Framework without Azure possible?
Direct Line API is used enable communication between your bot and your own client application. This post will show you how can we use the direct line API of our BOT to start a conversation and also how to exchange Activities. We are using the Microsoft Sample bot example of Notes Bot. The below pic show … Continue reading DirectLineAPI – Testing with custom client and POSTMAN – Microsoft Bot Framework
LUIS is Language Understanding Intelligent Service from Microsoft, as part of Azure Cognitive Services. Several Microsoft technologies work with LUIS: Bot Framework allows a chat bot to talk with a user via text input. Bing Speech API converts spoken language requests into text. Once converted to text, LUIS processes the requests. LUIS allows us to create an … Continue reading Learning about LUIS and Consuming LUIS API in node.js
If you want to execute after set period of time, timers are used for that. Timers are globally available in node.js. Check official documentation here. Three types of timers are: setTimeout() setImmediate() setInterval(); setTimeout() - "When I say so!" used for scheduling execution of code after set of milliseconds. accepts set of arguments - first arg. … Continue reading How to use Timers in Node.js?
There is nothing new about sending a request to a REST API and fetching a response. In this blog we will show how can we make an asynchronous call to a API, which means your node.js code will be able to perform other operations while it requests sent to an API fetched the response. What … Continue reading Asynchronous call to a REST API using Node.js and using the Promises.
Given an array of integers, return indices of the two numbers such that they add up to a specific target. Each input should have exactly one solution and you may not use the same element twice. Example, arr_nums = [7, 4, 2, 11, 20], target = 6 Here, arr_nums + arr_nums = 6 So, return … Continue reading Data Structures in Java: Two Sum Problem
Callback In the callback model you make a request and provide a function to be called when the request is completed. Which means one request and one reply. Also in the callback approach you won't receive any result until you receive all the results. Like shown in the example below, until it iterates over all … Continue reading Node.js: Callbacks v/s Events
Microsoft Bot Framework has multiple prompts to get user response while having the conversation such as Prompts.text, Prompts.number, Prompts.Choice, Prompts.confirm But there is automatic validation for number, choice and confirm prompt. For example if the user responds with wrong choice then the chat bot will re-prompt the choices and ask yo to select again. Check documentation here. This post … Continue reading Microsoft Bot Framework: How to validate user response to bot Prompts?