US President Donald Trump and Chinese President Xi Jinping pledged to set up a "communication channel" for AI incidents.