The role and function of artificial intelligence