# Effortless email management with DeepSeek and OpenAI: n8n workflow

> Started by an arriving email, and works across Email, Gmail, Google Drive and Qdrant. It puts DeepSeek and OpenAI behind a retrieval step, so answers are...

Source: https://millionrounds.com/workflow/effortless-email-management-with-deepseek-and-openai (Millionrounds; every figure on the page links to its filing or article)

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

# Effortless email management with DeepSeek and OpenAI

Started by an arriving email, and works across Email, Gmail, Google Drive and Qdrant. It puts DeepSeek and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: DeepSeek, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Feffortless-email-management-with-deepseek-and-openai)

**22 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 1 Model 12 Logic 2 Service 7

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

- 1 **Email Trigger (IMAP)** Email Read Imap *Service*
- 2 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 3 **OpenAI** Lm Chat Open Ai *Model*
- 4 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 5 **Token Splitter** Text Splitter Token Splitter *Model*
- 6 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 7 **DeepSeek Chat Model** Lm Chat Deep Seek *Model*
- 8 **Markdown** Markdown *Logic*
- 9 **Qdrant Vector Store** Vector Store Qdrant *Model*
- 10 **Write email** Agent *Model*
- 11 **Email Reviewer** Agent *Model*
- 12 **Text Classifier** Text Classifier *Model*
- 13 **Create collection** Http Request *Service*
- 14 **Refresh collection** Http Request *Service*
- 15 **Default Data Loader** Document Default Data Loader *Model*
- 16 **Qdrant Vector Store1** Vector Store Qdrant *Model*
- 17 **Email Summarization Chain** Chain Summarization *Model*
- 18 **Edit Fields** Set *Logic*
- 19 **Send Email** Email Send *Service*
- 20 **Get folder** Google Drive *Service*
- 21 **Gmail** Gmail *Service*
- 22 **Download Files** Google Drive *Service*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 22
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Gmail, Google Drive, Qdrant
- **Model:** DeepSeek, OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Email, Gmail, Google Drive and Qdrant accounts, and a key for DeepSeek and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls DeepSeek and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

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 22 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%2Feffortless-email-management-with-deepseek-and-openai)
- **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.

[Email](https://millionrounds.com/workflows?service=Email#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**AI-Powered Vendor Policy & RSS Feed Analysis** 22 steps · calls a model · Gmail, RSS](https://millionrounds.com/workflow/ai-powered-vendor-policy-and-rss-feed-analysis)
- [**AI-powered viral trend analysis for TikTok and Instagram** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-viral-trend-analysis-for-tiktok-and-instagram)
- [**Audit AI decisions and route risks with OpenAI and Slack** 22 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/audit-ai-decisions-and-route-risks-with-openai-and-slack)
- [**Automate UX research planning with Gemini and Google Docs** 22 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/automate-ux-research-planning-with-gemini-and-google-docs)
- [**Automate satellite data analysis and regulatory reporting** 22 steps · calls a model · Email, Postgres](https://millionrounds.com/workflow/automate-satellite-data-analysis-and-regulatory-reporting)
- [**Process & summarize PDFs from email & messaging apps** 22 steps · calls a model · Gmail, Outlook](https://millionrounds.com/workflow/process-and-summarize-pdfs-from-email-and-messaging-apps)
