I remember a cat toilet training product from years back, way pre-Youtube.
I don't think a dog has the capability in that regard that a cat does. It's possible to train dogs to go on command and it's possible to train them to go in a certain area. However, a housebroken dog may have a bit of trouble adjusting to a "litter box" setup indoors.