How does Artificial Intelligence work?

how does artificial Intelligence work?

Our purposes define AI. Meanwhile AI’s purposes define us. There are lot of different ways to use Artificial Intelligence, and a lot more different mechanics and commands, that will generate intelligent action and lead to desired conclusion. AI can be used for storing and sharing information, for copying human emotions and for creating whole new worlds, fulfilled with science and art. It can be used for serving humans in nearly every fields of life, but in which way and in what extent? What is the true purpose of Artificial Intelligence?