Poll multiple Gmail accounts with unified data table storage & Discord notifications
 This template lets you poll multiple Gmail accounts from a single workflow using n8n’s credential-aware execution. Instead of creating separate workflows for every inbox,...
Template notes

This template lets you poll multiple Gmail accounts from a single workflow using n8n’s credential-aware execution. Instead of creating separate workflows for every inbox, this setup loops through all accounts stored in your data table and runs Gmail operations dynamically using the correct OAuth2 credential.
It’s built for cases like cold-email systems, multi-client mail monitoring, or anything that needs centralized polling and logging.
What It Does
1. Pulls all email account records from the coldemailaccounts table.
2. For every account, the workflow:
3. Runs the Gmail “Get Many Messages” node for that account using "Run Node With Credentials X" community node.
4. Messages are reformatted into a clean JSON object (from, subject, preview text, body, labels, attachments, etc.).