Skip to main content

Turn Reddit posts into content ideas with Telegram, Apify, GPT and Sheets

Workflow preview

Workflow preview
100%
Turn Reddit posts into content ideas with Telegram, Apify, GPT and Sheets preview
Open on n8n.io

1. Workflow Overview

Reddit Content Saver Pipeline A Telegram triggered n8n workflow that scrapes Reddit posts, analyzes them with AI, and saves structured content ideas to Google Sheets. Overview Send a Reddit po...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@apify/n8n-nodes-apify.apify, n8n-nodes-base.code, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.set, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Vishnu Prasad.

Original n8n.io source

1.1 Workflow description

Title
Turn Reddit posts into content ideas with Telegram, Apify, GPT and Sheets
Workflow name
Turn Reddit posts into content ideas with Telegram, Apify, GPT and Sheets

Reddit Content Saver Pipeline

> A Telegram-triggered n8n workflow that scrapes Reddit posts, analyzes them with AI, and saves structured content ideas to Google Sheets.


Overview

Send a Reddit post URL to a Telegram bot. The pipeline scrapes the post and comments, runs AI analysis for content insights, deduplicates against previously processed links, and logs everything to Google Sheets — all automatically.


Workflow Diagram

Telegram Trigger
 └─► Typing Indicator
 └─► Get Sheets Log (dedup source)
 └─► Dedup Check
 ├─► [DUPLICATE] Notify user → stop
 └─► [NEW] Apify Reddit Scrape
 └─► Extract Content
 ├─► [NO CONTENT] Notify user → stop
 └─► [HAS CONTENT] AI Analysis
 └─► Save to Sheets
 └─► Success Reply

Step-by-Step Breakdown

1. Telegram Trigger

Listens for incoming messages on the Reddit Bot Telegram account. The message is expected to contain a Reddit post URL.

2. Typing Indicator

Immediately sends a typing indicator back to the user so they know the bot received the message.

3. Get row(s) in sheet

Fetches all previously processed Reddit URLs from the Google Sheets pipeline log. This is the source of truth for duplicate detection.

Template: https://docs.google.com/spreadsheets/d/1Q0F7Th6cdiqYKJIPwx_G0td59QkRMjNJMxpU3xOVGMU/edit?usp=sharing

4. Dedup Check (Code Node)

Extracts the Reddit URL from the Telegram message using regex, then normalizes both the incoming URL and all stored URLs (strips www., lowercases, removes trailing slashes) before comparing. Sets an is_duplicate flag.

5. Duplicate Branch (If Node)

Condition Action
Duplicate detected Sends Telegram message with original submission date and summary → stops
New link Continues to Apify scraping

6. Reddit Scrape (Apify — Reddit Scraper Lite)

Runs the trudax/reddit-scraper-lite actor against the Reddit URL. Scrapes the post and up to top 10 comments using a residential proxy.

7. Get Dataset Items

Retrieves the results from the completed Apify actor run.

8. Extract & Clean Data (Code Node)

Restructures the raw Apify output — extracts post_title, post_body, and comment_summary_text into a flat object for downstream use.

9. Content Validation (If Node)

Checks whether the scraped post has at least a title, body, or comment text.

Condition Action
Has content Continues to AI analysis
No content Sends "No Content Found" Telegram reply → stops

10. AI: Analyze Content (LangChain + OpenAI)

Passes the post and comments to an OpenAI GPT model. Analyzes the content for ideas, themes, and insights. A Structured Output Parser enforces a consistent JSON response shape.

11. Edit Fields

Maps the AI output into a clean, flat structure ready for Google Sheets ingestion.

12. Save to Google Sheets

Appends a new row to the pipeline log with post metadata, AI analysis results, and the source URL.

13. Success Confirmation

Sends a Telegram message confirming the post has been saved, with a link to the Google Sheet.


Platforms & APIs

Platform Role
Telegram User input (send Reddit URL) and all bot replies
Apifyreddit-scraper-lite Scrapes Reddit post content and comments via residential proxy
OpenAI GPT (via n8n LangChain) AI content analysis and structured output generation
Google Sheets Persistent storage for processed posts and duplicate-detection log
n8n Workflow orchestration

Error States

Scenario Bot Response
URL was previously submitted "You shared this link previously on [date] — [title/summary] — check GSheets [link]"
Scraped post returned no usable content "No Reddit link found. Send me a Reddit post URL and I will analyze it for content ideas."

Credentials Required

Credential Used By
Telegram Bot Token Trigger + all reply nodes
Apify API Key Reddit Scraper actor
OpenAI API Key AI analysis node
Google Sheets OAuth Read (dedup) + Write (save)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Run an Actor

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 2 - Get dataset items

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 3 - Code in JavaScript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 5 - AI: Analyze Content

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.9

Block 6 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 7 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 8 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Save: Append to Pipeline1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 10 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 11 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Reply: Success Confirmation1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 14 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 15 - Send a text message1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 16 - Code in JavaScript1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Reply: Empty Post Content

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 18 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Note: Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Note: Dedup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Note: Scraping

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Note: Validate

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Note: AI Analysis

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Note: Save & Notify

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Turn Reddit posts into content ideas with Telegram, Apify, GPT and Sheets
Complexity advanced
Nodes 24
Categories Market Research, AI Summarization
Author Vishnu Prasad
Published 29 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14430/14430.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Turn Reddit posts into content ideas with Telegram, Apify, GPT and Sheets do?

Reddit Content Saver Pipeline A Telegram triggered n8n workflow that scrapes Reddit posts, analyzes them with AI, and saves structured content ideas to Google Sheets. Overview Send a Reddit po...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.