Automation library · Chat assistants

AI-powered email inbox manager with OpenAI and Gmail

Started by an arriving email, and works across Gmail and Slack. It hands the judgement calls to OpenAI. 21 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

21 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 7Logic 1Service 12

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

  1. 1Gmail TriggerGmail triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3SlackSlackService
  4. 4Create a draft2GmailService
  5. 5Create a draft1GmailService
  6. 6Slack1SlackService
  7. 7Create a draft3GmailService
  8. 8Text ClassifierText ClassifierModel
  9. 9InternalGmailService
  10. 10Customer SupportGmailService
  11. 11PromotionGmailService
  12. 12Admin/FinanceGmailService
  13. 13Sales OpportunityGmailService
  14. 14Message a model1Open AiModel
  15. 15Message a model2Open AiModel
  16. 16Message a modelOpen AiModel
  17. 17Message a model3Open AiModel
  18. 18Message a model4Open AiModel
  19. 19Create a draftGmailService
  20. 20IfIfLogic
  21. 21Mark a message as read1GmailService

How it's built

Starts on
An arriving email
Steps
21, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Slack 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 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 21 steps before you point it at anything that matters.