A number of companies are building A.I. apps for patients to talk to when human therapists aren’t available.