Block 1 - Run Node With Credentials X
- Type / Role
- n8n-nodes-run-node-with-credentials-x.runNodeWithCredentialsX - runNodeWithCredentialsX
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
This template lets you poll multiple Gmail accounts from a single workflow using n8n’s credential aware execution. Instead of creating separate workfl...
n8n-nodes-run-node-with-credentials-x.runnodewithcredentialsx, n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, n8n-nodes-base.datatable, n8n-nodes-base.splitinbatches, n8n-nodes-base.set, n8n-nodes-base.discord, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jatin Khatri.
Original n8n.io sourceThis 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.
Pulls all email account records from the cold_email_accounts table.
For every account, the workflow:
Runs the Gmail “Get Many Messages” node for that account using "Run Node With Credentials X" community node.
Messages are reformatted into a clean JSON object (from, subject, preview text, body, labels, attachments, etc.).
Saved into the All Emails table using an upsert (avoids duplicates).
Sends a Discord notification like “15 new emails arrived”.
Create Gmail OAuth2 credentials in n8n, one for each email account you want to poll.
Add those credentials into a Data Table named cold_email_accounts with columns: cred_id credentials_name email last_polled (datetime)
Import this workflow template into n8n.
Update: DataTable references (if your names/IDs differ) Discord channel/server IDs Any domain filters inside the Gmail search query
Activate the workflow and it will automatically: Poll each Gmail inbox every hour Save all new emails Notify you on Discord Keep everything synced via last_polled.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Poll multiple Gmail accounts with unified data table storage & Discord notifications |
|---|---|
| Complexity | advanced |
| Nodes | 21 |
| Categories | Ticket Management |
| Author | Jatin Khatri |
| Published | 11 Dec 2025 |
Use the JSON export at /data/workflows/11721/11721.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
This template lets you poll multiple Gmail accounts from a single workflow using n8n’s credential aware execution. Instead of creating separate workfl...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management use case.