Microsoft is planning to develop an AI therapist at some point, as the company has patented a technology for it.