King Charles III will urge tech giants to ensure that artificial intelligence is geared to serve humanity and that mankind does “not lose control”, during a conference in Scotland on Thursday.