In the YML-file, a category tree has integer category IDs, so products have integer category IDs as well, which allows you to use such IDs for recommendation requests.
Depending on the option how the product database transfer is integrated, you need to call different methods to get product recommendations for the product category screen.