# Poll multiple Gmail accounts with Discord: n8n workflow

> Started by a clock, and works across Discord and n8n data table. 15 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/poll-multiple-gmail-accounts-with-discord (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Poll multiple Gmail accounts with Discord

Started by a clock, and works across Discord and n8n data table. 15 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpoll-multiple-gmail-accounts-with-discord)

**15 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 7 Service 7

The steps in the order they run, from what starts it.

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Get All Email Accounts** Data Table *Service*
- 3 **Loop Over Items** Split In Batches *Logic*
- 4 **Get new emails if any** Data Table *Service*
- 5 **Code in JavaScript** Code *Logic*
- 6 **If new email found1** If *Logic*
- 7 **Run Node With Credentials X** Run Node With Credentials X *Service*
- 8 **Edit Fields** Set *Logic*
- 9 **If new email found** If *Logic*
- 10 **Limit** Limit *Logic*
- 11 **Email Normalization** Code *Logic*
- 12 **Update last_polled1** Data Table *Service*
- 13 **Send a message** Discord *Service*
- 14 **Update last_polled** Data Table *Service*
- 15 **upsert emails** Data Table *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 15, with 2 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Discord, n8n data table
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Discord account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 15 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpoll-multiple-gmail-accounts-with-discord)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Discord](https://millionrounds.com/workflows?service=Discord#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Discord message proxy: Bot mentions AI actions** 15 steps · Discord](https://millionrounds.com/workflow/discord-message-proxy-bot-mentions-ai-actions)
- [**Generate curated local news digests with Gemini** 15 steps · Discord, RSS](https://millionrounds.com/workflow/generate-curated-local-news-digests-with-gemini)
- [**Run weekly security audits with Data Tables and Telegram** 15 steps · Telegram, n8n data table](https://millionrounds.com/workflow/run-weekly-security-audits-with-data-tables-and-telegram)
- [**Monitor and classify brand mentions from Instagram and Google** 15 steps · calls a model · Apify, Slack](https://millionrounds.com/workflow/monitor-and-classify-brand-mentions-from-instagram-and-googl)
- [**Triage elevator callbacks and compliance alerts with OpenAI** 15 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/triage-elevator-callbacks-and-compliance-alerts-with-openai)
- [**Automated Website Monitoring & Performance Checks with Discord** 16 steps · Discord, Gmail](https://millionrounds.com/workflow/automated-website-monitoring-and-performance-checks-with-dis)
