“Hey, I’d love to keep chatting, but I’ve got to take care of a few things. Let’s catch up another time!”
“I’ve enjoyed our talk, but I should let you get back to your day too!”
“I just got a message I need to deal with. Let’s chat later!”
“I’m feeling a bit drained and need a little quiet time. Hope you understand!”
or for me I just like to be honest and tell them they are being annoying and that I’m not in mood to talk anymore so it doesn’t cause a argument

Rosanna thanks for sharing.