The pattern is always the same. Your dog sleeps through the morning, you get a solid three hours of work done, and then somewhere around two in the afternoon a nose appears under the desk. By four they are pacing, dropping a ball on your keyboard, barking at the mailman with real commitment. You are on a call. You throw the ball twice and they come straight back.
This is not a behavior problem. It is a scheduling problem, and it has a scheduling fix. If you are not sure boredom is what you are looking at, the signs of a bored dog are worth reading first.
Front load the day and the afternoon gets easier
Most people walk the dog after work, when they are free. The dog needs it before lunch, when they are not. Twenty minutes of proper activity in the morning, before you sit down, changes the shape of the whole afternoon. It does not have to be long. It has to be real: sniffing, some off leash running if you have somewhere safe, a few minutes of training. A slow walk on a short leash while you check your phone does almost nothing.

Feed them out of something, not out of a bowl
A bowl of kibble disappears in about fifteen seconds. The same food in a puzzle takes twenty minutes and leaves your dog calmer afterward, because working for food is what their body expects. Scatter breakfast in the grass. Put lunch in a snuffle mat under the desk. Freeze something soft into a lick mat and hand it over at the start of your longest meeting.
You are not adding food, you are moving food you were already giving them into a format that costs them effort.
Have one thing that moves without you
This is the gap that food toys do not fill. A puzzle occupies the nose and the brain, but it does nothing for the chase instinct, which is the one that makes a dog drop a ball on your keyboard. They do not want a snack, they want something to run after.
A ball that only moves when you throw it is not much use during a call. A ball that rolls away and comes back on its own keeps responding after you have looked back at your screen, which is the entire point. Ten or fifteen minutes of that at the low point of the afternoon does more than the two throws you can manage between emails. Look through the interactive dog balls if you want one that also works in a dark hallway in winter.
Break the day into slots instead of one long block
Dogs do better with several short things than one big one. A workable shape for a normal day looks like this.
Before you start. Twenty minutes out, with real sniffing time.
Mid morning. Breakfast out of a puzzle or scattered on the floor.
Around noon. Five minutes of training. Genuinely five minutes. Teach one thing, stop while they still want more.
Early afternoon. A chew, or a lick mat, timed to the meeting you cannot be interrupted in.
Three or four o'clock. The moving toy. This is the slot that matters most, because it is when the pacing starts.
Evening. The proper walk, and your attention.

Rotate, or none of it works by Thursday
The same puzzle in the same spot at the same time stops being interesting fast. Keep four or five things and put most of them away. Bring one back after a week and your dog treats it as new. This is the cheapest trick in the whole article and it is the one people skip.
What none of this fixes
If your dog follows you from room to room, will not settle even with something to do, and panics when you close a door, that is anxiety rather than boredom, and enrichment will not touch it. The tell is whether they can relax when you are home and busy. A bored dog nags you and then gives up and sleeps. An anxious dog cannot settle at all. That one is worth a conversation with your vet or a behaviorist, not another toy.
On the days you cannot get out at all, there are indoor activities that do the same job in a living room. For everyone else, the fix is usually just moving the good stuff earlier in the day and having one thing that keeps moving while you type.