Workflow function to summarize Reddit posts using Google Gemini and Supabase
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Gemini Chat Model, Supabase and Reddit.
How it runs
Trigger: On a schedule (every day) (plus 1 other trigger).
- Get post data from supabase (Supabase): get many
- and extract their reddit id (Code): runs custom JavaScript code
- get saved post from reddit profile (Reddit): work with profile
- extract relevant attribut and filter posts based on subreddit (Code): runs custom JavaScript code
- further filtering existing posts wrt existing posts in database (Code): runs custom JavaScript code
- Loop Over Every Posts (Loop Over Items (Split in Batches)): loops over the items in batches
- LLM (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- If: checks a condition and branches into true / false
- get all comments for the current post (Reddit): get many (post comment)
- extract relevant attribut from comments (Code): runs custom JavaScript code
…plus 5 more steps. See the full node list below.
Services it uses
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)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Code
n8n-nodes-base.code - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Wait
n8n-nodes-base.wait - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Supabase
n8n-nodes-base.supabase - Reddit
n8n-nodes-base.reddit - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if
From the author
Reddit Post Saver & Summarizer with AI-Powered Filtering Who This Is For Perfect for content curators, researchers, developers, and community managers who want to build a structured database of valuable Reddit content without manual data entry. If you're…