Rabbits I’m not sure. Cats naturally want to bury their leavings, so they actually train themselves just fine. Show them where it is, keep it clean, and 99% of the time that’s that.
You just toss the cat into the litter box after setting it up and they're like "this is fucking rad, dude! Thanks! Now leave me alone to do my bidness".