Cleaning cycle for tubing system

I was thinking there could be a separate container with a switchable valve that allowed items other than water to be passed through the tubing. Either a compost tea type watery fertilizer or a vinegar and water mixture meant to keep the tubing clear of the mold and such. It could switch between the tanks automatically via programming.