Artificial intelligence can now learn to influence human behaviour