How can I tag or label emails after classification using IMAP in n8n?
I'm building a workflow in n8n that:
  • Uses the IMAP Email Trigger to receive emails from a custom domain.
  • Passes the content to a text classifier (e.g., to identify if it's "Sales", "Support", etc.).
  • Now I want to tag or label the original email based on the classification.
I know Gmail has a "Gmail > Add Label" node, but I’m working with a generic IMAP inbox. The IMAP Email node doesn’t seem to have an option to move or label the email after it's been triggered.
Is there any existing way (or recommended workaround) to:
  • Move an email to a folder (like /Sales, /Support)?
  • Apply a tag/label using IMAP or any other node?
Thanks in advance!
1
3 comments
Antony Esquivel
2
How can I tag or label emails after classification using IMAP in n8n?
AI Automation Society
skool.com/ai-automation-society
A community built to master no-code AI automations. Join to learn, discuss, and build the systems that will shape the future of work.
Leaderboard (30-day)
Powered by