Sunday, 28 January 2018

Artificial Intelligence And E-Commerce

n the present era, machines, and technologies are outsmarting human beings. Such mind-boggling technologies, when embedded in businesses, open new doors for us, which were until now unapproachable.
Artificial Intelligence is such a breakthrough in the automated era. The vision seeks adaptation of human-specific characters by machines, especially computers. Computers featuring robustness, tirelessness, and fewer errors,  coupled with human-like intelligence and behavior are setting new benchmarks in every industry.
E-Commerce is such a field which has been markedly revolutionized by Artificial Intelligence. The technology has definitely reshaped the construct of the sector and elevated the competition among various e-commerce industries. E-Commerce businesses are using various forms of A.I to better understand their customers, generating new leads and providing an enhanced customer experience.
Customer satisfaction and experience is the top priority of this sector. The sector’s convergence with Artificial Intelligence is providing unique customer support prioritizing user’s ease.

Customizes Searches
Today when everyone prefers online and smart purchases to be done effortlessly, Artificial Intelligence is simplifying this task with its great efficiency to handle huge data, utilize it to its full extent and process it based on customer choices. The software, based on A. I, through its deep learning feature analyses the purchase patterns by tracking their previous searches and predicting the future behavior of the user based on past requirements. It offers new solutions to them, suggesting complementary products and services.  For example,  if a customer wishes for a pair of shoes of a particular brand, size, shape etc., A.I helps in filtering the search of the user by providing him with the coveted product suggestions.

Personalizes User Experiences
AI surely keeps its users up-to-date with the driving trends in every industry with its distinguished expertise. It delivers a personalized experience to users worldwide by giving them a personalized recommendation based on image-based searches and audio searches. Natural language processing supported search engine explores to understand the text as humans understand the text. Visual search is nothing but image search. The user can just drag and put the image in the search bar to get the required results.

ChatBots/Intelligent Agents
This is another exemplary part where Artificial Intelligence plays its prominent role. These are conversational computer programs mimicking human beings. Nowadays messaging apps have become the most popular way of communication. Chatbots uses the power of the computer to talk to customers on messaging apps. Most of the customers now prefer to seek online support than human agents.

With the surge in customers/users on websites, handling their requests through one to one communication becomes a tedious task. Businesses now use chatbots to talk one to one with 1000 customers and more via messaging apps.; e.g., WeChat, Facebook Messenger.
They answer the repetitive and frequently asked questions within real time by generating the pre-registered correct answers through natural language processing.
Instead of calling business agents to set up an appointment, chatbots can schedule the same for them by significantly reducing the tortuous process of waiting to get an answer.
They help in providing more personalized experiences to customers by making their shopping experience more smooth and helping them in making better purchase decisions by offering product recommendations suitable to their needs.
Anything from food delivery to paying bills, from ticket purchase to changing user’s name, address etc., from online shopping to book an appointment has been made much easier. These chatbots are largely used by restaurants, retailers, teachers, musicians, publishers etc.
Greater convenience, deeper personalization, improved customer satisfaction, purchase simplification— it’s a recipe for success in any e-commerce brand’s digital strategy achievable to a large extent through chatbots.
Secured Transactions
Secured Transactions and data is one major issue due to which users tend to abandon the online purchases. AI is winning the trust of the users by providing robust security features and facilitating secured transactions in real time. Over the last decade, AI has not only improved the monitoring process but also improved response time to catch frauds in financial activities.

Artificial Intelligence has certainly changed the face of E-Commerce sector by unlocking it’s previously untapped potential. In the future one can reasonably predict its heightened role in one’s life in quick and efficient decision making, smart and sustainable purchases, generating the requisite information in real time and many more. Once Artificial Intelligence is able to bridge the gap between machines and human emotions, then the sky is the limit.

Tuesday, 8 August 2017

How to use data-balloon in angular 2?

Today we are going to discuss that how to use data-balloon in the angular 2/4 application. You must know that why we are using data-balloon in our application and what kind of features it is going to provide to us. For this click on this link and check out its features

It is easy to use in simple HTML application, but we have a problem to use this in the angular 2/4 application. In the angular 2/4 we can't use this as it is as shown in the above article. For this, we need to create a directive and use that under our application. I am going to explain, how to create directive and how to use this in the application.
Step by step information:

1. Create a new TS file or use an existing file to create the directive and copy the below code. In this code, you will find that we are going to set only two properties as dynamic, following the same method you can add other properties and make it more styling.
// This directive is to use to add the hover message using data-balloon
@Directive({
selector: '[dataBalloon]'
})
export class DataBalloonDirective implements OnChanges {
@Input('databalloonProperty') tooltipText: any;
@Input('databalloonpos') position: any;
constructor(private el: ElementRef) {
}
ngOnChanges(changes) {
if (this.tooltipText) {
$(this.el.nativeElement).attr({
"data-balloon": this.tooltipText,
"data-balloon-pos": this.position,
"data-balloon-length":"fit"
});
}
}
}
2. Add that directive in your app-common module or on your page where you want to use this. 
3.  <span class="text-capitalize"  
dataBalloon databalloonProperty="{{username}}" databalloonpos="up"> 



4.Run the application and check the results. 


Enjoy it !!!!

Saturday, 1 October 2016

Compare Id from a Comma separated value in Sql Server

I have a column in which UserIds are stored in a comma separated form (as shown below). Now I have a problem that I need to check whether the current user is available in that list or not. 

I was using split function for this but that was taking too much time. As we need to perform this action on millions of records and table is having 20 other columns which we need to returns. 

Id     UserId 
--  ---------------
1    10,11,12,13    
2    10,13,15,4 

I was using split function for this but that was taking too much time. As we need to perform this action on millions of records and table is having 20 other columns which we need to returns.

Then I found the below solution of my problem. 

SELECT * FROM dbo.History 
WHERE (','+ RTRIM(ShareWith)+',') LIKE '%,'+CAST(@UserId AS VARCHAR)+',%')



Wednesday, 13 April 2016

Another Form of Ternary Operator In AngularJS

Once I was working on an AngularJS application. I have a requirement that under ng-repeat I need one object value with comma separated but ‘.’ in last. We can achieve this with the help of ternary operator very easily, but I found something different. This is like 

{{ !$last && ', ' || '.'}}


The above solution resolved the problem also, but the interesting thing is that who it is working. It creates a confusion in my mind. Now I started to find out the best answer for this. In-order to this I created a question on stackoverflow and got many answers all are same. Every explain that it is working as a Ternary operator. 

The best answer that I found is as given below.


It is a form of ternary operator. && returns first operand if it is a falsy value and second operand if first operand is truthy e.g. 1 && 3 will return 3 but 0 && 3 will return 0. Second operator is not evaluated if first is falsy. || is similar but returns first operand if it is truthy and second operand if first is falsy.


So basically cond && val1 || val2 is equivalend to cond ? val1 : val2 under condition that val1 is truthy value. If this is not the case e.g. cond && 0 || 1 this will always return last value 1 in this case.
For readability reasons you should always prefer ternary operator ?: than Boolean shortcircuting operators.

Saturday, 28 November 2015

Could not load file or assembly 'Telerik.Reporting, Version=9.2.15.1105, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies.

I am working on Telerik Reports. The application is working fine on local system or in debugging mode, but it gives an error (Could not load file or assembly 'Telerik.Reporting, Version=9.2.15.1105, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies) when I am trying to deploy the application. In order to resolve this issue we just need to copy the specified dll from "C:\Program Files (x86)\Telerik\Reporting Q3 2015\Bin". 

Follow the below steps and see how I resolved this error.

Step 1: Deploy the application on the server where you want to deploy. 

Step 2: Open server using any of the FTP tool and upload an error showing dll from location "C:\Program Files (x86)\Telerik\Reporting Q3 2015\Bin" under bin folder of the deployed application. 


PS: Every time when you will update the Telerik Reporting tool and deploying your application again then you will face the same error, because of version change. This time you need to follow the same steps and upload the latest file.