workflows.fit
Back to n8n workflows
n8n templateFreeBy Jatin Khatri

Poll multiple Gmail accounts with unified data table storage & Discord notifications

![Screenshot 20251216 001014.png](fileId:3669) 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,...

CommunicationHITLDevelopmentCore NodesN8n-nodes-run-node-with-credentials-x.run Node With Credentials XSchedule TriggerCodeData Table
Loading interactive preview...

Template notes

![Screenshot 20251216 001014.png](fileId:3669)

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.).