Automation library · Scheduling

Categorize emails, chat with PDFs and OpenAI

Started by someone opening a chat with it, and works across Gmail, Pinecone and Slack. It puts Claude and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 26 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude, OpenAIRetrieval

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

The flow

Starts it 3Model 16Logic 3Service 4

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

  1. 1Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  2. 2Embeddings OpenAIEmbeddings Open AiModel
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4Embeddings OpenAI2Embeddings Open AiModel
  5. 5PDFs to downloadNo OpLogic
  6. 6Anthropic Chat ModelLm Chat AnthropicModel
  7. 7Get calendar availabilityTool Http RequestModel
  8. 8Window Buffer MemoryMemory Buffer WindowModel
  9. 9Book appointmentTool Http RequestModel
  10. 10When chat message receivedChat triggerStarts it
  11. 11OpenAI Chat Model1Lm Chat Open AiModel
  12. 12On new email to nathan's inboxGmail triggerStarts it
  13. 13WebhookWebhookStarts it
  14. 14Default Data LoaderDocument Default Data LoaderModel
  15. 15Insert into Pinecone vector storeVector Store PineconeModel
  16. 16Question and Answer ChainChain Retrieval QaModel
  17. 17Read Pinecone Vector StoreVector Store PineconeModel
  18. 18Download PDFHttp RequestService
  19. 19Appointment booking agentAgentModel
  20. 20Assign label with AIText ClassifierModel
  21. 21Whether email contains n8nIfLogic
  22. 22Vector Store RetrieverRetriever Vector StoreModel
  23. 23Add automation labelGmailService
  24. 24Add music labelGmailService
  25. 25Execute JavaScriptCodeLogic
  26. 26Send messageSlackService

How it's built

Starts on
Someone opening a chat with it
Steps
26, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Pinecone, Slack
Model
Claude, 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 Gmail, Pinecone and Slack accounts, and a key for Claude and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

Yes. It calls Claude 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 26 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 26 steps before you point it at anything that matters.