How to create Kunden kauften auch and Kunden haben sich ebenfalls angesehen or Customers also bought / view to every products?

I see there is a cross selling section but I can not see rules for customers also bought/view. Also I want to add it globally.

I know how to edit twig files and a little bit of programming. I just can’t understand how to create my own cross selling entity with the rule I want.

Thank you.