The plugin comes a long with a few placeholders which can be used in order to dynamically display products based on certain parts of your context.
For instance if you want create a list of bestselling products, based on the title of your post, the shortcode looks as follows:
Overview of all available placeholders
|Title of the current post
|Title of the current page
|Name of the main category of the current post
|Only available when using Yoast SEO.