See llms.txt for all machine-readable content.

Back to Templates

Create daily Slack decision digests in Notion with OpenAI

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 it works

  1. Runs every weekday at 9:00 AM based on a cron schedule.
  2. Loads the digest configuration (Slack channel IDs, Notion database ID, lookback window, and timezone) and fetches the last N hours of message history from the selected Slack channel.
  3. Removes bot messages, system events, and very short posts, then builds a timestamped transcript for summarization.
  4. If no human messages remain, posts a “no activity” note to the confirmation Slack channel and stops.
  5. If messages exist, sends the transcript to an OpenAI chat model to produce JSON containing a summary, decisions, blockers, and action items with owners.
  6. Formats the AI output into Markdown and creates a dated page in the target Notion database.
  7. Posts a Slack confirmation message with the Notion page link and message count.

Setup

  1. Connect Slack OAuth2 credentials with permissions to read channel history and post messages, and invite the Slack app to the source and confirmation channels.
  2. Connect your Notion integration credential, share the target Notion database with that integration, and ensure the database has a title property named “Name.”
  3. Add an OpenAI API credential (used by the LangChain OpenAI Chat Model node) and verify the selected model is available to your account.
  4. Update the placeholders in the digest configuration (Slack channel ID, confirmation channel ID, Notion database ID, lookback hours, and timezone) before activating the workflow.