GMail Trigger eliminating Sent messages from myself

I’m trying to find the best way to make my workflow eliminate my sent emails. I think there is a filter in the trigger itself but it messed up the rest of my workflow. If anyone has the best way to handle this, I’m open to hear it.
Thanks!

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Brian_Magladry welcome to the :n8n: community!

When you say “it messed up the rest of my workflow”, could you share an example? That would make it easier to understand and help you better.

In the meantime, I can think of two approaches:

  • Use an If, Filter, or even a Switch node. Just set the condition to check if the email is not your own, and only then let the workflow continue.
  • Use the Gmail Trigger node’s search filters with this Search operator - like this:
-from:[email protected]

You can find more details about Search operators here: Refine searches in Gmail - Computer - Gmail Help

Hope this helps!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.