Here is how I set up my bot to find a bucket, fill it with water and fill the wash tub 3 times, find and wash dirty pots 10 times, and repeat everything forever. I have another bot return the clean pots to storage.
I use a similar method for cleaning dirty folk, returning them to their homes, and refilling the tub as needed. It always seems to take 3 buckets of water to fill a tub and 10 pots or 10 folk or 10 clothing being washed to empty the tub. Below is how I set up the bot for cleaning folk.