Create daily Slack decision digests in Notion with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on a schedule (cron 0 9 * * 1-5). Along the way it connects Slack, OpenAI Chat Model and Notion.
How it runs
Trigger: On a schedule (cron 0 9 * * 1-5).
- Set Digest Config (Edit Fields (Set)): sets 5 fields: slackChannelId, confirmChannelId, notionDatabaseId…
- Fetch Slack Channel History (Slack): history (channel)
- Filter Bots and Noise (Code): runs custom JavaScript code
- Has Messages? (If): checks a condition and branches into true / false
- Generate Structured Digest (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Post No Activity Note (Slack): uses Slack
- Format Digest Markdown (Code): runs custom JavaScript code
- Create Notion Digest Page (Notion): work with database page
- Post Slack Confirmation (Slack): uses Slack
Services it uses
Other OpenAI + Slack templates (979) · Other OpenAI + Notion templates (157) · Other Notion + Slack templates (152)
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 (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Notion
n8n-nodes-base.notion
From the author
Quick Overview This workflow runs every weekday morning to pull recent messages from a Slack channel, uses OpenAI (via LangChain) to generate a structured daily digest, saves it as a new page in a Notion database, and posts a confirmation back to Slack. How…