Multiple tag-adding automation

Continuing the discussion from Automate tag creation:

I want to create an automation to automatically assign a tag to an item if it is created in a specific group. The automation could be to take the name of the group but not necessarily. I follow the advice on a separate topic and managed to create a cutom tag but only by creating an automation which creates an infinite amount of new items with the desired tag, with no way of making it stop but by deactivating it. Any idea on how to make the infinite loop stop or any other way to achieve tag automations in an effective way? Also can I create an automation to add two tags? I can’t find a way to add two tags so far as any symbol I have tried between the two words I use is ignored and the entire string is added as a tag in the infinite creation loop. Thank you!