Quick overview
This workflow collects up to 10 Reddit thread URLs via an n8n form, scrapes each thread’s top comments with Apify, uses OpenAI to extract customer insights and write a Markdown research brief, and converts it into a formatted Google Doc in Google Drive.
How it works
- Receives form submissions containing Reddit thread URLs, a research question, and an optional product description.
- Validates, deduplicates, and limits the input to up to 10 Reddit thread links.
- Uses the Apify Reddit Comments Scraper actor to download each thread and its top comments as Markdown.
- Merges multi-part thread exports and truncates long threads before sending each thread to OpenAI to extract structured pain points, wishes, alternatives, objections, and verbatim quotes with upvote points.
- Verifies each extracted quote appears word-for-word in the original thread text, trims or removes quotes that don’t match, and combines the per-thread findings into a single dataset.
- Uses OpenAI to write a multi-section Markdown customer research brief from the combined findings.
- Converts the brief to HTML, uploads it to Google Drive to create a formatted Google Doc, and redirects the form response to open the document.
Setup
- Install the Apify community node (@apify/n8n-nodes-apify) and add an Apify API token with access to the quarra/reddit-comments-scraper actor.
- Add an OpenAI API credential for the models used to extract findings and write the brief.
- Add a Google Docs OAuth2 credential (Drive upload scope) for the HTTP request that creates the Google Doc.
- Review Apify run settings such as maxCommentsPerPost and maxTotalChargeUsd to match your desired comment depth and budget.
- Activate the workflow and use the form’s production URL to submit Reddit thread links and your research question.
Requirements
- Apify account (the free plan works). The Actor charges per event: $0.005 per run and $0.0025 per post or comment. Ten threads with 100 comments each cost about $2.50.
Customization
- Change maxCommentsPerPost in the Apify node to read more or fewer comments. Edit the brief's sections in the Write the research brief node. Send the HTML by Gmail or Slack instead of Google Docs.