Review stale Notion docs with Gmail alerts, Slack reports, and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (every week at 10:00). Along the way it connects Notion, Gmail, OpenAI Chat Model and Slack.
How it runs
Trigger: On a schedule (every week at 10:00).
- Scan Docs Database (Notion): get many (database page)
- Compute Doc Age (Code): runs custom JavaScript code
- Stale 90+ Days (Filter): keeps only the items that match a condition
- Mark: Needs Review (Notion): update (database page)
- Critical With Owner? (If): checks a condition and branches into true / false
- Email The Owner (Gmail): uses Gmail
- Bundle Stale Docs (Aggregate): combines items into one
- Write Review Plan (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Post Review Plan (Slack): uses Slack
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Slack templates (979) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs every Friday to scan a Notion documentation database for pages not edited in 90+ days, marks them as “Needs review,” emails owners of critical stale docs via Gmail, and uses OpenAI to generate a prioritized weekly review plan…