← All N8N workflows
AI & researchAggregateChain LLMCodeCompressionConvert To File

My workflow

Configured with Aggregate, Chain LLM, Compression, Convert To File, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
CodeSplit Topics into ItemsCodeIntegrationSearch PostsRedditRoutingUpvotes RequirementFilteringIfTransformSet Reddit PostsEdit FieldsCodeRemove DuplicatesCodeRoutingLoop Over ItemsLoop Over ItemsIntegrationGet CommentsRedditCodeExtract Top CommentsCodeCodeFormat CommentsCodeTransformSet for LoopEdit FieldsWeb / APIGet News ContentHTTP RequestTransformSet Final ReportEdit FieldsTransformConvert to FileConvert To FileTransformCompress filesCompressionCodeMerge Binary FilesCodeFiles / mediaGoogle Drive6Google DriveFiles / mediaGoogle Drive7Google DriveWeb / APISend files toMattermost3HTTP RequestTransformAggregateAggregateTriggerSchedule TriggerSchedule TriggerAI & modelsAnthropic Chat ModelAnthropic Chat ModelAI & modelsAnthropic Chat Model1Anthropic Chat ModelCodeKeep LastCodeAI & modelsAnthropic Chat Model2Anthropic Chat ModelAI & modelsComments AnalysisChain LLMAI & modelsNews AnalysisChain LLMAI & modelsStories ReportChain LLMTransformSet DataEdit Fields

Node categories in this workflow

  • Code
  • Integration
  • Routing
  • Transform
  • Web / API
  • Files / media
  • Trigger
  • AI & models

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Split Topics into ItemsCodeCodeSee node parameters
Search PostsIntegrationRedditsearch
Upvotes Requirement FilteringRoutingIfSee node parameters
Set Reddit PostsTransformEdit FieldsSee node parameters
Remove DuplicatesCodeCodeSee node parameters
Loop Over ItemsRoutingLoop Over ItemsSee node parameters
Get CommentsIntegrationRedditpostComment / getAll
Extract Top CommentsCodeCodeSee node parameters
Format CommentsCodeCodeSee node parameters
Set for LoopTransformEdit FieldsSee node parameters
Get News ContentWeb / APIHTTP RequestSee node parameters
Set Final ReportTransformEdit FieldsSee node parameters
Convert to FileTransformConvert To FiletoText
Compress filesTransformCompressioncompress
Merge Binary FilesCodeCodeSee node parameters
Google Drive6Files / mediaGoogle DriveSee node parameters
Google Drive7Files / mediaGoogle Driveshare
Send files to Mattermost3Web / APIHTTP RequestPOST
AggregateTransformAggregateSee node parameters
Schedule TriggerTriggerSchedule TriggerSee node parameters
Anthropic Chat ModelAI & modelsAnthropic Chat ModelSee node parameters
Anthropic Chat Model1AI & modelsAnthropic Chat ModelSee node parameters
Keep LastCodeCodeSee node parameters
Anthropic Chat Model2AI & modelsAnthropic Chat ModelSee node parameters
Comments AnalysisAI & modelsChain LLMSee node parameters
News AnalysisAI & modelsChain LLMSee node parameters
Stories ReportAI & modelsChain LLMSee node parameters
Set DataTransformEdit FieldsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

None declared. HTTP requests and Code nodes may still need configuration.

Workflow notes

Automatic Weekly Digital PR Stories Suggestions

Automatic Weekly Digital PR Stories Suggestions

A weekly automated system that identifies trending news on Reddit, evaluates public sentiment through comment analysis, extracts key information from source articles, and generates strategic angles for potential digital PR campaigns. This workflow delivers curated, sentiment-analyzed news opportunities based on current social media trends. The final comprehensive report is automatically uploaded to Google Drive for storage and simultaneously shared with team members via a dedicated Mattermost channel for immediate collaboration.

Set up instructions:

  1. Add a new credential "Reddit OAuth2 API" by following this guide. Assign your Reddit OAuth2 account to the Reddit nodes.
  2. Add a new credential "Anthropic Account" by following this [guide] (https://docs.n8n.io/integrations/builtin/credentials/anthropic/). Assign your Anthropic account to the nodes "Anthropic Chat Model".
  3. Add a new credential "Google Drive OAuth2 API" by following this guide. Assign your Google Drive OAuth2 account to the node "Gmail Drive" nodes.
  4. Set your interested topics (one per line) and Jina API key in the "Set Data" node. You can obtain your Jina API key here.
  5. Update your Mattermost information (Mattermost instance URL, Webhook ID and Channel) in the Mattermost node. You can follow this guide.
  6. You can adjust the cron if needed. It currently run every Monday at 6am.
My workflow

My workflow

Purpose and structure

This folder contains the My workflow workflow. Its executable nodes use aggregate, chainLlm, code, compression, convertToFile, googleDrive, httpRequest, if, lmChatAnthropic, reddit, scheduleTrigger, set, splitInBatches. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Schedule Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/1875_Code_Schedule_Automate_Scheduled.json MIT; preserve source notices.

More in AI & research