A lonely robot is something you can call somebody who acts like an NPC who also happens to have no friends. You can also use it towards somebody like you're reading a book. Saying things like "the lonely robot asked" "the lonely robot said".
Following this with onomatopoeias like "Beep" or "Boop" that resemble a robot can also be used to describe them, like you're translating what they said into robot slang.
Linda: "You can't call anything perfect, everything can always be improved."
Kora: ""You can't call anything perfect, everything can always be improved." Said the lonely robot."
Lina: "I'm not a lonely robot! That's just something my mom told me."
Kora: ""Beep boop bop!" The lonely robot exclaimed."