Quick Overview
This workflow runs every Monday, scrapes weekly top posts from selected Reddit pages via ScraperAPI, analyzes sentiment and themes with OpenAI GPT-5 Mini, compiles a single weekly digest, and creates a formatted page in a Notion database.
How it works
- Runs every Monday at 9:00 AM on a schedule.
- Defines a list of Reddit source URLs to analyze and the target Notion database ID.
- Scrapes each Reddit page via ScraperAPI and converts the returned HTML into plain text for analysis.
- Sends the cleaned text to OpenAI GPT-5 Mini to extract per-source sentiment counts, top themes, representative quotes, and a short tone note in JSON.
- Normalizes and aggregates all source results into a single weekly digest with totals, theme rollups, per-source breakdown, and selected quotes.
- Creates a new Notion database page containing the digest sections (overview, counts, themes, per-source breakdown, and quotes).
Setup
- Add a ScraperAPI credential and ensure it can access the Reddit URLs you want to scrape.
- Add an OpenAI API key credential for the OpenAI Chat Model configured as GPT-5 Mini.
- Add a Notion credential (API token), share your target Notion database with the integration, and replace the placeholder Notion database ID in the configuration step.
- Update the Reddit source URLs/labels (and optional country code) to match the subreddits and views you want to track.
- Adjust the schedule cron expression if you want the digest to run at a different time.