Automation library · Research and reporting

AI-powered email automation for business: Summarize & respond

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

LargeCalls a model: OpenAIRetrieval

23 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 14Logic 2Service 6

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

  1. 1Email Trigger (IMAP)Email Read ImapService
  2. 2DeepSeek R1Lm Chat Open AiModel
  3. 3Embeddings OpenAIEmbeddings Open AiModel
  4. 4When clicking ‘Test workflow’Manual triggerStarts it
  5. 5Token SplitterText Splitter Token SplitterModel
  6. 6Embeddings OpenAI1Embeddings Open AiModel
  7. 7OpenAILm Chat Open AiModel
  8. 8DeepSeekLm Chat Open AiModel
  9. 9OpenAI 4-o-miniLm Chat Open AiModel
  10. 10MarkdownMarkdownLogic
  11. 11Email Summarization ChainChain SummarizationModel
  12. 12Qdrant Vector StoreVector Store QdrantModel
  13. 13Create collectionHttp RequestService
  14. 14Refresh collectionHttp RequestService
  15. 15Default Data LoaderDocument Default Data LoaderModel
  16. 16Qdrant Vector Store1Vector Store QdrantModel
  17. 17Write emailAgentModel
  18. 18Review emailChain LlmModel
  19. 19Email ClassifierText ClassifierModel
  20. 20Get folderGoogle DriveService
  21. 21Send EmailEmail SendService
  22. 22Do nothingNo OpLogic
  23. 23Download FilesGoogle DriveService

How it's built

Starts on
An arriving email
Steps
23
Size
Large: read it before trusting it with anything live
Connects to
Email, Google Drive, Qdrant
Model
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, Google Drive and Qdrant accounts, and a key for 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 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 23 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 23 steps before you point it at anything that matters.