A 2-week experiment with freshman students suggests the effect on loneliness of chatting with a trained chatbot is no better than that of the control (journalling about their feelings).

Only chatting with a human partner reduced feelings of loneliness:

https://www.bps.org.uk/research-digest/chatbot-vs-random-human-which-better-tackling-loneliness