First of all, there is a built-in automatic phone calls recorder, you just have to enable it in your stock phone app. But if you want a much better one you could check the app made by skvalex developer (check google store). Ask him personally to get the last version working automatically both ways. But I think you should pay for it first. Due to Google's restrictions, newer versions do not work automatically.