My workflow
Configured with Aggregate, Chain LLM, Compression, Convert To File, and additional nodes. Review the connections and setup before adapting this template.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| Split Topics into Items | Code | Code | See node parameters |
| Search Posts | Integration | search | |
| Upvotes Requirement Filtering | Routing | If | See node parameters |
| Set Reddit Posts | Transform | Edit Fields | See node parameters |
| Remove Duplicates | Code | Code | See node parameters |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| Get Comments | Integration | postComment / getAll | |
| Extract Top Comments | Code | Code | See node parameters |
| Format Comments | Code | Code | See node parameters |
| Set for Loop | Transform | Edit Fields | See node parameters |
| Get News Content | Web / API | HTTP Request | See node parameters |
| Set Final Report | Transform | Edit Fields | See node parameters |
| Convert to File | Transform | Convert To File | toText |
| Compress files | Transform | Compression | compress |
| Merge Binary Files | Code | Code | See node parameters |
| Google Drive6 | Files / media | Google Drive | See node parameters |
| Google Drive7 | Files / media | Google Drive | share |
| Send files to Mattermost3 | Web / API | HTTP Request | POST |
| Aggregate | Transform | Aggregate | See node parameters |
| Schedule Trigger | Trigger | Schedule Trigger | See node parameters |
| Anthropic Chat Model | AI & models | Anthropic Chat Model | See node parameters |
| Anthropic Chat Model1 | AI & models | Anthropic Chat Model | See node parameters |
| Keep Last | Code | Code | See node parameters |
| Anthropic Chat Model2 | AI & models | Anthropic Chat Model | See node parameters |
| Comments Analysis | AI & models | Chain LLM | See node parameters |
| News Analysis | AI & models | Chain LLM | See node parameters |
| Stories Report | AI & models | Chain LLM | See node parameters |
| Set Data | Transform | Edit Fields | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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:
- Add a new credential "Reddit OAuth2 API" by following this guide. Assign your Reddit OAuth2 account to the Reddit nodes.
- 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".
- Add a new credential "Google Drive OAuth2 API" by following this guide. Assign your Google Drive OAuth2 account to the node "Gmail Drive" nodes.
- Set your interested topics (one per line) and Jina API key in the "Set Data" node. You can obtain your Jina API key here.
- Update your Mattermost information (Mattermost instance URL, Webhook ID and Channel) in the Mattermost node. You can follow this guide.
- 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.