The reliable fix is relocating this logic to where the email data is actually available—a record-triggered flow on the Email Message object. Here, you have access to the relevant headers. You can:
- Check headers for automation markers like
auto-submitted,Precedence: bulk, or the presence of ano-replysender address. - Suppress the auto-response and flag the case for review if these markers are found, ensuring that humans aren’t caught in the crossfire of bot loops.
Implementing this pattern means your automation genuinely distinguishes between human senders and automated replies, closing the door to runaway loops.