Artificial intelligence (AI) is no longer just helping people write emails, summarise documents or generate images.