Startup Portola is treating its AI companions like characters in a novel, complete with lore, emotions, and personal lives.