Will pursuing master degree increase the chances of Ph.D. admissions if​ the Ph.D.​ is in different field than Undergraduate is the goal?
I assume you mean a master's in CS. 

This might depend somewhat on where you are, but in the US it would probably have little effect. The way to learn if your background is adequate for doctoral admissions is jut to apply to a program or two. There are aspects of your education that would be good to have when studying AI. 

In the US, I think that if you could get in to an MS program you could also get into a doctoral program with the same background. It might be different in EU or elsewhere, of course, especially in places that have strict rules. 

But everywhere, you need to make your best case that you are qualified to begin and are a good candidate for success and that you have shown success in the things you've already done. You will find a lot of competition, of course, but no single thing will be determinative. Make your case.