Automation library · Customer support

Turn emails into AI-enhanced tasks in Notion (multi-user support)

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

LargeCalls a model: OpenAI

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

The flow

Starts it 2Model 8Logic 7Service 8

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2CalculatorTool CalculatorModel
  3. 3Structured Output ParserOutput Parser StructuredModel
  4. 4Gmail TriggerGmail triggerStarts it
  5. 5When clicking ‘Test workflow’Manual triggerStarts it
  6. 6Structured Output Parser1Output Parser StructuredModel
  7. 7Calculator1Tool CalculatorModel
  8. 8OpenAI Chat Model1Lm Chat Open AiModel
  9. 9Get Summary & Meta DataAgentModel
  10. 10GlobalsSetLogic
  11. 11Get all labelsGmailService
  12. 12Generate Actionable TaskAgentModel
  13. 13Format Notion Page BlocksCodeLogic
  14. 14Filter for unprocessed mailsFilterLogic
  15. 15Required labelsFilterLogic
  16. 16Create Notion PageHttp RequestService
  17. 17Extract Route IDSetLogic
  18. 18Add Label "Processed"GmailService
  19. 19Deactivate RouteAirtableService
  20. 20Get Route by IDAirtableService
  21. 21Send notification about deactivated routeGmailService
  22. 22Active Routes OnlyFilterLogic
  23. 23No Operation, do nothingNo OpLogic
  24. 24Add Label "Error"GmailService
  25. 25Send notification about missing routeGmailService

How it's built

Starts on
An arriving email
Steps
25
Size
Large: read it before trusting it with anything live
Connects to
Airtable, Gmail
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Airtable and Gmail 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 25 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 25 steps before you point it at anything that matters.