What is artificial intelligence and how is it used?

Artificial intelligence (AI) is set to be a "defining future technology", but what exactly is AI and how does it already affect our lives?