It will take a lot to replace lawyering that involves client contact. Low-level document discovery has already been replaced by robots, and much of the day-to-day work is already automated. But the task of listening to a client's story, picking out the legal issues, and giving applicable advice will take a lot of technology that we don't have yet. The most important reason for hiring a lawyer is their malpractice insurance policy; if they mess up, the insurance company will bail you out. When we get a robot lawyer that can get its own insurance policy, then we can replace human lawyers, but I don't think that will happen in my lifetime. This also applies to other professions such as doctors and accountants.