Automating a workflow - excluding the woocommerce buyers

Automating a workflow - excluding the woocommerce buyers

I have some leads in a workflow. I will send some emails following some rules.

My question is: Whem someone buys something in my website I need to exclude this client from the worflow and put it in another worflow. How could I do that?

I use wordpress and woocommerce.

Thank you