Hi everyone,
I’ve developed a workflow in n8n that:
- Watches emails using a Gmail Trigger.
- Uses a Text Classifier to categorize emails (e.g., Leads, Qualified Leads, etc.).
- Adds labels to emails based on the classification.
This worked fine when I had just one Gmail account. However, I now need to add six more Gmail accounts, and I want to avoid creating six separate workflows.
I tried adding multiple Gmail Triggers in the same workflow and duplicating the logic for each account, but it quickly became unmanageable. Anytime I need to make a change, I would have to update everything for all accounts, which is time-consuming and error-prone.
Is there a way to:
- Centralize the logic so I don’t have to duplicate it for each account?
- Use dynamic inputs or parameters to handle multiple Gmail accounts within a single workflow?
Any guidance or best practices for handling this kind of scenario in n8n would be greatly appreciated!
Thanks in advance!