The prime minister says he wants to see government departments become more efficient by using AI and technology.