Caveat1:
For foamy devices, use a foam-like detergent by injecting it directly.
If it is a liquid detergent, dilute it with 1/4 liquid and 3/4 water and mix well before use. Please note that if you do not mix well, the pipe may become clogged and no bubbles will form.