
Use a friendly time boundary up front, then a clear wrap line. As soon as someone starts chatting, smile and say, I have about a minute before I need to get this draft out. What is the headline? When the minute is up, close with Thanks for the chat. I need to jump back to the doc by ten, but I want to hear the rest later. If they pop by when you are on a deadline, try I am heads down on a deliverable. Can you ping me or grab me after lunch and we will catch up? It signals interest without inviting a long detour.
Pair the words with physical cues. At your desk, swivel your chair back toward your screen, put a hand on the mouse, and take a half step away from them as you say Alright, I am going to dive back in. At the coffee machine with both hands full, use motion to end it. Say I need to get this back to my desk before I spill it. Walk in the direction of your desk and finish with Let me not keep you or I will let you get back to it. You can also offer a next touchpoint while moving, like Shoot me a message or Grab five on my calendar.
Make it easier on yourself with simple props and routines. Wear headphones as a visual do not disturb and set your status to Focus or On deadline so drop bys feel less casual. Keep a couple of ready lines you can repeat without thinking, like I only have a minute right now or I promised myself I would finish this before the next meeting. When a chat is winding down, do a quick summary to cue the exit, like Sounds like the trip was great. Let us pick this up after standup, then smile and turn back to work.