Skip to main content

Documentation Index

Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Reddit block retrieves posts and comments from Reddit threads. Use it to gather user opinions, analyze discussions, research topics, or collect real user feedback for content creation and market research.

Configuration

Operation

Select the Reddit operation to perform.
OperationDescription
Get comments from postRetrieve the post details and all comments from a Reddit thread
Find postSearch for Reddit posts by keyword across all subreddits

Find Post Configuration

Use these settings when the operation is set to “Find post”.

Search Term

Enter the keyword or phrase to search for on Reddit. This field supports placeholders for dynamic values. Examples:
  • Static search: best CRM software
  • From previous step: {{step_1.output.topic}}
  • Combined: {{input.product}} reviews

Max Posts

Set the maximum number of posts to retrieve from search results.
  • Minimum: 1 post
  • Maximum: 100 posts
  • Default: 10 posts
Start with a lower number when testing. Increase as needed for comprehensive research.

Search Sort

Choose how search results are sorted.
Sort OptionDescription
RelevanceMost relevant to your search term (default)
HotCurrently trending posts
TopHighest upvoted posts
NewMost recently posted

Search Time

Filter posts by time range.
Time OptionDescription
WeekPosts from the last 7 days (default)
MonthPosts from the last 30 days
YearPosts from the last 12 months
AllPosts from all time

Find Post Output

The Find Post operation returns an array of post objects.

Output Structure

[
  {
    "title": "Best CRM software for small business in 2024?",
    "body": "Looking for recommendations for a CRM that works well for...",
    "authorName": "business_owner_123",
    "communityName": "r/smallbusiness",
    "upVotes": 234,
    "commentsCount": 89,
    "postUrl": "https://www.reddit.com/r/smallbusiness/comments/abc123/...",
    "createdAt": "2024-01-15T10:30:00Z",
    "dataType": "post"
  },
  {
    "title": "CRM comparison: HubSpot vs Salesforce vs Pipedrive",
    "body": "I've tested all three and here's my breakdown...",
    "authorName": "tech_reviewer",
    "communityName": "r/sales",
    "upVotes": 456,
    "commentsCount": 124,
    "postUrl": "https://www.reddit.com/r/sales/comments/def456/...",
    "createdAt": "2024-01-10T14:20:00Z",
    "dataType": "post"
  }
]

Find Post Output Fields

FieldDescription
titlePost title
bodyPost content/body text
authorNameUsername of the post author
communityNameSubreddit where the post was made
upVotesNumber of upvotes on the post
commentsCountNumber of comments on the post
postUrlDirect URL to the Reddit post
createdAtWhen the post was created
dataTypeAlways “post” for search results

Accessing Find Post Data

Get first post:
{{step_n.output[0]}}
Get first post title:
{{step_n.output[0].title}}
Get first post URL (to use with Get Comments):
{{step_n.output[0].postUrl}}
Loop through all posts:
{% for post in step_n.output %}
  Title: {{ post.title }}
  Subreddit: {{ post.communityName }}
  Upvotes: {{ post.upVotes }}
{% endfor %}

Get Comments from Post Configuration

Use these settings when the operation is set to “Get comments from post”.

Reddit Post URL

Enter the URL of the Reddit post to scrape. This field supports placeholders for dynamic URLs. Examples:
  • Direct URL: https://www.reddit.com/r/SEO/comments/abc123/how_to_improve_rankings/
  • From previous step: {{step_1.output.reddit_url}}
  • From loop: {{current.url}}
Use the full Reddit post URL. Short links (redd.it) and mobile URLs (m.reddit.com) are also supported.

Max Comments

Set the maximum number of comments to retrieve from the thread.
  • Minimum: 1 comment
  • Maximum: 1000 comments
  • Default: 100 comments
Start with a lower number when testing. Large threads with many comments take longer to process.

Sort Comments

Choose how comments are sorted before retrieval.
Sort OptionDescription
NoneDefault Reddit ordering
BestReddit’s “best” algorithm (confidence-based)
TopHighest upvoted comments first
NewMost recent comments first
ControversialMost debated comments first
OldOldest comments first
Q&AQuestion and answer format

Get Comments from Post Output

The Get Comments operation returns an array containing the post and its comments.

Output Structure

[
  {
    "id": "post_id",
    "title": "How to improve SEO rankings in 2024?",
    "body": "I've been struggling with my website rankings...",
    "dataType": "post",
    "createdAt": "2024-01-15T10:30:00Z"
  },
  {
    "id": "comment_1",
    "parentId": "post_id",
    "body": "Focus on quality content and user experience...",
    "commentUpVotes": 156,
    "dataType": "comment",
    "commentCreatedAt": "2024-01-15T11:45:00Z"
  },
  {
    "id": "comment_2",
    "parentId": "post_id",
    "body": "Technical SEO is often overlooked. Make sure...",
    "commentUpVotes": 89,
    "dataType": "comment",
    "commentCreatedAt": "2024-01-15T12:00:00Z"
  }
]

Output Fields

FieldDescription
idUnique identifier for the post or comment
titlePost title (posts only)
bodyText content of the post or comment
parentIdID of parent post or comment (for replies)
commentUpVotesNumber of upvotes (comments only)
dataTypeEither “post” or “comment”
createdAtWhen the post was created
commentCreatedAtWhen the comment was created

Accessing Output Data

Get the post (first item):
{{step_n.output[0]}}
Get post title:
{{step_n.output[0].title}}
Get all comments (skip the post):
{% for item in step_n.output %}
  {% if item.dataType == "comment" %}
    {{ item.body }}
  {% endif %}
{% endfor %}
Get total item count:
{{step_n.output | size}}

Best Practices

Find Post

  • Use “Relevance” sort for targeted keyword research
  • Use “Top” sort with “All” time to find evergreen content
  • Use “New” sort with “Week” time for trending discussions
  • Start with 10-20 posts, increase if you need broader coverage
  • Combine with Loop + Get Comments to deep-dive into top posts

Get Comments from Post

  • Use “Top” sort to get the most valuable comments first
  • Set a reasonable max comments limit to reduce processing time
  • Filter comments by upvotes in subsequent steps for quality insights
  • Use “New” sort for recent feedback on trending topics
  • Check parentId to understand comment threading structure

General

  • Combine with LLM block to summarize or analyze discussions
  • Store results in Google Sheets for tracking over time

Common Use Cases

Use CaseOperationConfiguration Tips
Topic discoveryFind PostSearch your keyword, sort by Top, time: Month
Product researchFind Post + Get CommentsFind posts mentioning your product, then get comments
Competitor analysisFind PostSearch competitor name, analyze sentiment
Content ideasFind PostSearch industry topics, extract popular questions
FAQ generationGet CommentsCollect common questions from support threads
Market researchFind PostSearch industry terms, filter by upvotes
Pain point discoveryFind Post + Get CommentsFind complaint threads, analyze comments
Trend monitoringFind PostSearch keyword, sort: New, time: Week

Example Workflow: Sentiment Analysis

Analyze user sentiment about a topic:
  1. Reddit Block:
    • URL: Reddit post about your product/topic
    • Max Comments: 200
    • Sort: Top
  2. LLM Block:
    Analyze these Reddit comments and provide:
    1. Overall sentiment (positive/negative/neutral)
    2. Top 3 positive themes
    3. Top 3 concerns or complaints
    4. Key feature requests
    
    Comments:
    {{step_1.output}}
    
  3. Google Sheets Block: Store analysis results

Example Workflow: FAQ Generation

Generate FAQ content from Reddit discussions:
  1. Google Sheets Block: Read list of relevant Reddit URLs
  2. Loop Block: Process each URL
  3. Reddit Block:
    • URL: {{current.url}}
    • Max Comments: 100
    • Sort: Top
  4. LLM Block:
    Extract the top 5 questions and best answers from this Reddit thread.
    Format as Q&A pairs.
    
    Thread content:
    {{step_3.output}}
    
  5. Google Sheets Block: Append extracted Q&As

Example Workflow: Topic Research with Find Post

Discover and analyze Reddit discussions on any topic:
  1. Reddit Block (Find Post):
    • Operation: Find Post
    • Search Term: {{input.topic}}
    • Max Posts: 20
    • Sort: Top
    • Time: Month
  2. LLM Block:
    Analyze these Reddit posts about "{{input.topic}}":
    
    1. What are the top 5 questions people are asking?
    2. What are the most common pain points?
    3. What solutions are being recommended?
    4. What trends or patterns do you see?
    
    Posts:
    {{step_1.output}}
    
  3. Google Sheets Block: Store research findings

Example Workflow: Deep Dive Research

Combine Find Post and Get Comments for comprehensive research:
  1. Reddit Block (Find Post):
    • Operation: Find Post
    • Search Term: best {{input.product_category}}
    • Max Posts: 5
    • Sort: Top
    • Time: All
  2. Loop Block: Process each post
  3. Reddit Block (Get Comments):
    • Operation: Get Comments from Post
    • URL: {{current.postUrl}}
    • Max Comments: 100
    • Sort: Top
  4. LLM Block:
    Summarize this Reddit discussion:
    - Main recommendations
    - Pros and cons mentioned
    - Key insights
    
    {{step_3.output}}
    
  5. Google Sheets Block: Append summaries

Troubleshooting

Find Post Issues

IssueCauseSolution
No posts foundSearch term too specificTry broader keywords or different phrasing
Irrelevant resultsGeneric search termAdd more specific keywords or context
Few results returnedRestrictive time filterExpand time range (Week → Month → All)
Slow responseHigh max postsReduce max posts count

Get Comments Issues

IssueCauseSolution
No data returnedInvalid URLVerify the Reddit post URL is correct and public
Missing commentsPrivate subredditBlock can only access public subreddits
TimeoutVery large threadReduce max comments
Empty bodyDeleted contentPost or comments may have been removed
Slow responseHigh max commentsReduce max comments for faster processing

What’s Next

Now that you understand the Reddit block: