Automation library · Customer support

Answer Slack knowledge questions with Notion and Google Drive

Started by a clock, and works across Google Drive, Notion, Pinecone and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

25 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
4Services it connects to

The flow

Starts it 3Model 7Logic 8Service 7

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

  1. 1Nightly Sync (2am)Schedule triggerStarts it
  2. 2Insert EmbeddingsEmbeddings Open AiModel
  3. 3Doc LoaderDocument Default Data LoaderModel
  4. 4Slack Q&A TriggerSlack triggerStarts it
  5. 5OpenAI Chat Model (Q&A)Lm Chat Open AiModel
  6. 6Retrieval EmbeddingsEmbeddings Open AiModel
  7. 7Error TriggerError triggerStarts it
  8. 8Search Notion PagesNotionService
  9. 9Search Drive FilesGoogle DriveService
  10. 10Pinecone: Insert DocsVector Store PineconeModel
  11. 11Strip MentionCodeLogic
  12. 12Answer Question (AI Agent)AgentModel
  13. 13Knowledge Base (RAG Tool)Vector Store PineconeModel
  14. 14Notify OpsSlackService
  15. 15Combine Doc SourcesMergeLogic
  16. 16Process Each DocSplit In BatchesLogic
  17. 17Reply in ThreadSlackService
  18. 18Normalize Doc ListCodeLogic
  19. 19Sync DoneNo OpLogic
  20. 20Is Notion Doc?IfLogic
  21. 21Get Notion Page BlocksNotionService
  22. 22Download Drive FileGoogle DriveService
  23. 23Flatten Notion TextCodeLogic
  24. 24Extract Drive TextExtract From FileService
  25. 25Build Drive DocCodeLogic

How it's built

Starts on
A clock
Steps
25, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Notion, Pinecone, Slack
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 Google Drive, Notion, Pinecone 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 a clock.

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 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.