This is a common trope in sci-fi, but I personally don't get the appeal. It's not talking to my dead loved one, it's just a weird technological puppet of them. An actual recording of their voice is much more meaningful, even if it's not interactive.
It actually already exists. There's companies that train AI on a deceased loved one's messages and then have them send texts back. They act as if they're alive and well.