I'm getting frustrated with n8n, why can't it detect Labels for an incoming email in a certain email thread?

The goal is for my AI agent to ONLY create a reply draft to a reply to an email I’ve sent that I have put a certain label on it.

How to make n8n detect the custom label I’ve created in a reply email that is in the labelled thread?

Context:

I’ve send an email to a receiver.
I labeled this email as “Availability”
I want that if this email thread got a reply from the receiver, my AI will help me create a reply draft.
AI will not create a draft for incoming emails that has no label.

Apprarently, the gmail trigger doesn’t detect he custome label, only these 4 default label…

If I put the label filter under the Gmail Trigger node like this:


Then it only return the email I sent to the receiver, not the email I receive from the receiver.

Appreciate the help!

WORKFLOW:

Well that makes sense, becaue the email that the customer is sending to you, won’t be tagged. I would implement a step in front of this that determines if an email needs response, passes it to the next step, and applies the tag.

Ah i see. Is there a way to make the gmail trigger node detect each email thread’s tag rather than each message I received?

So whenever I get a reply, as long as that reply is in the email thread that has the tag, it will read it the tag

You could maybe query for the whole thread based on the message, that might include the tag, but not entirely sure your ask.

Hmm I’ll try that and see if the get thread node will include the labels