Following reports that people use the bot during an emotional crisis, the company said the software would spot and respond more appropriately.