Posts

Showing posts from 2018

Create and integrate QnA Maker chat bot with MS Azure & Asp.Net

Image
Recently everyone is trying to add bot framework with their existing web site.If you want to add a Qna maker immediately with your FaQ page then MS Azure QnA maker is a good option as we can create bot with in 30 mins.Lets see how? Prerequisite : 1.Ms Azure Valid subscription. 2.Knowledge in Asp.Net  3.Predefined questions and answer sets in Excel form or any web sites FAQ page. As we said QnAMaker is a very simple way to create bot with predefined question and answer set. Steps to Create: 1.Got to QnAmaker.ai site by microsoft. 2.Sign in to the page. 3.Create QnA maker Service.It will redirect you to azure portal you signed in.If you don't have yet please create one and ensure you have enough credits in it.please see below. 4.Now you can access this QnA services in the QnAmaker.ai site.see below. 5.Now you need to populate knowledge base.Here I have added the FaQ page of a Website. You can add multiple URLs if you want...

Get Potential Reach of Email campaign By SendGrid Event Notification

Image
In my previous blog we have seen the mail sending through the SendGrid.Sendgrid has the amazing event notification feature which is used to make notification on sending mail events like Open,clicked,spammed etc which can be really used as a valuable information to finding  the leads in the marketing.We will see how to configure the event notifications on sending mails with C# and SendGrid.   Here is the events that they are offering : To get the events notification : 1.Configure the sending mails through SendGrid. More details here . 2.Set up the Event notification End point in the Application. 3.Configure the end point in the SendGrid Account. Set up the Event notification in the application: Create a new asp.net WebAPI application.Add model like blow,  and create an plain end point, You can get the code in GIT .   Configure the end point in the SendGrid Account. Now we need to set up the ablve end point the sendgrid account.Sign i...

SendGrid Integration with c#

Image
SendGrid is one of the way to send mail through the application which gives the statics on the emails send through the email server.There are two ways to configure mail client through the send grid. 1.STMP server 2.Through the API Send grid Event notification will give the notifications on the email activity happened like bounces,clicks,opens etc to get the potential reach of the email send via send grid which is a very cool option if you are working with some marketing related application.Let's see how to do this. Configure SendGrid 1.Set up an account with send grid. 2.In the start up guide you can configure the SMTP server or the API. 3.Select the WEB API  option and generate Api key and keep the API key with you. 4.To set up SMTP,choose the option and create new key for the SMTP server like below. Note down the username,generated key,Server name,Port also. Now we are done with send grid set up. Integrate in C# Code 1.Create a asp.net web api a...

Configure Facebook Webhook[WebSub protocol]

Image
Facebook added  a product called Webhooks for subscribe to the changes and receive updates in real time without calling the API.This blog is about how to configure the webhook product in Facebook and integrate it in the ASP.net Application. Webhooks are basically works with the protocol named as  WebSub   , which contains three main components  Publisher. Subscriber. Hub. In the case of facebook webhook,the user who wants to get notification while new post comes in page is the subscriber.Publishing and hub part will handle by Facebook itself. Configure the end point in Asp.net Web API Create the asp.net application . Create get/post end points for Facebook like below: Here,get end point will get called once you subscribe to the Facebook webhook with hub.challenge token.You should echo back with the same for verification purpose.Post is the end point you are exposing to get notified on updates. You can get the complete cod...