Transactional emails to customers like this are currently not possible with the built-in Flow actions or with Marketing Automation. You could potentially use a 3p app that has the trigger and action to send a custom email like that. Also, while Flow doesn’t have that trigger just yet, it does have an action to “Get customer data” where you can query by the tag XY and then do something with the list of customers.