Replika, even if it felt to me at times more effective than an actual therapist, is mostly for fun. It’s not built to help people through mental-health crises. But others are channeling this same technology to create bots that could potentially save lives.