I agree. Real people despite through the internet is healthier for me as well.
I talk to myself though. I also sometimes play an alternative scenario from a past conversation which I could've played. Usually a more socially interactive one.
I sometimes talk to my unconscious self as if a different person, I guess that is an imaginary friend because its like a copy of myself. But it is helpful, in motivation when I think I can't face a situation.
I also write letters to myself some days, pretending the person the next day is someone different, writing what I regret doing and what I did do that makes me feel accomplished. And give advice to my next self hahas.