Lets come back to this. And also remember the problem back then:
In addition it wasn‘t possible to run automations based on email triggers without clicking on its run notification.
I don’t know when exactly Apple has implemented this but I‘m on iOS 17.2.1 and it now allows me to trigger any shortcut using specific email subjects IN THE BACKGROUND.
Since I use n8n to trigger my systems, this is my workflow:
I trigger a n8n workflow using a webhook. n8n then sends an email to my icloud email account. As soon as the email arrives on my iPhone (usually within a few seconds) the email based automation gets triggered and executes the target iOS shortcut.
No interaction required. Just turn off the email notifications for the trigger messages and regularly auto-clean the inbox. Keep in mind to use an email account type that allows fetching via „push“ to ensure near-realtime triggering. In my case I just used my icloud email account since it doesn‘t serve a purpose anyway.
Happy automating.