I’m building a gmail workflow to automatically add labels based on subject keywords. I have the Gmail Node to get all, then an if statement, to identify the keywords then the gmail node to add the label. For the false path on the IF node, I insert another IF node with a different set of keywords that leads to another gmail node to add a different label.
The issue I’m having is in the last step the Gmail node keeps labeling the wrong message ID. In the screenshot below, you can see that the input message ID is different than the output message ID. Am I doing something wrong? Maybe I can’t do multiple IF statements?
What is the error message (if any)?
Please share the workflow
(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database you’re using (default: SQLite):
- Running n8n with the execution process [own(default), main]:
- Running n8n via [Docker, npm, n8n.cloud, desktop app]: