Reddit SEO Agent

Looks for the most relevant communities for your brand to engage in, then finds the top active posts to contribute to based on your published blog content, where competitors are mentioned, or where relevant discussions are happening.
Complexity (to Build):
Med
Complexity (to Run):
Low
Human Input:
Low
Copy-paste each agent
Use This Template
Reddit SEO Agent

What you need to run this agent

  • Google Sheet: Reddit Mastersheet (Duplicate this sheet)
  • Google Sheet: Blog URL Directory (view instructions below)
  • Relay.app account (Click here to create one) with these apps connected:
    • Reddit
    • Slack
    • Google Workspace
    • Your internal documentation tool (ex: Notion)

Ways to make this Agent better

  1. Connecting your Google Search Console, Ahrefs, SEMrush, etc. to tell the agent which keywords you’re already ranking for and which ones you want to start ranking for.
  2. (LLMs love this) Connecting product data feeds to see if you could include proprietary insights in your comments (example: providing real CRO data to a conversion rate optimization thread).

Steps and instructions

Notion-Style Callout
💡 Need something more complex and customized to your flow & tools? Let's talk (15 min).

Step 1: Creating the Blog URL Directory (Google Sheet)

We want an up-to-date list of blog URLs for AI to be able to reference your content when making post recommendations

1. Open a Blank Google Sheet

  • Go to Google Sheets → Blank spreadsheet.

2. Find your site map URL

  • Option A: Try /robots.txt
    • https://gokickflip.com/robots.txt
    • Sometimes this file lists the sitemap.
  • Option B: Try to guess sitemap pathsSome alternate possibilities:
    • https://gokickflip.com/sitemap.xml
    • https://gokickflip.com/sitemap_index.xml
    • https://gokickflip.com/blog-sitemap.xml
    • https://gokickflip.com/blog/sitemap.xml
  • Option C: Search the source HTML for “sitemap”
    • Look at the HTML <head> of the homepage; sometimes there’s a <link rel="sitemap" …> or canonical reference.
    • Use your browser’s “Find in page” feature for “sitemap”.

3. Open Apps Script

In your Google Sheet:

  • Go to Extensions → Apps Script
  • Delete any placeholder code.

3. Paste This Script (Replace [PASTE YOUR SITEMAP URL] in the code)

function getYourBlogUrls() {
 var sitemapUrl = "[PASTE YOUR SITEMAP URL]";
 var response = UrlFetchApp.fetch(sitemapUrl, {muteHttpExceptions: true});
 var xml = XmlService.parse(response.getContentText());
 var root = xml.getRootElement();
 var ns = XmlService.getNamespace("<http://www.sitemaps.org/schemas/sitemap/0.9>");
 var urls = root.getChildren("url", ns);

 var result = [];
 urls.forEach(function(entry) {
   var loc = entry.getChild("loc", ns).getText();
   if (loc.indexOf("/blog/") > -1) {  // only blog URLs
     result.push([loc]);
   }
 });

 return result.length ? result : [["No /blog/ URLs found"]];
}

3. Save and Run

  • Click the Save icon (name the project anything, e.g. [Your Company] Sitemap).
  • Go back to your Sheet.
  • In A1, enter:

=getYourBlogUrls()

The script will fetch the sitemap, parse it, and fill the sheet with all blog URLs.

4. Authorize the Script (First Time Only)

  • The first time you run it, you’ll get a Google permission pop-up.
  • Click Review Permissions → Allow.

Step 2: Reddit Mastersheet

  1. Duplicate the Reddit Mastersheet (link here)
  2. Add business context to the “Company Info” tab to help the agent know more about your business
  3. (Optional) Modify the prompts below to call new information you've added to the "Company Info" tab.

Step 3: Recreate the agent in your Relay.app workspace

Community Finder

What it does: Finds the most relevant active communities to contribute to for your company, based on where your customers are most likely to engage.

💡 Adjust the “Fetch Company Info” step to connect to the correct internal documentation solution (Notion docs, Google docs, Smartsuite database, whatever you’re using!).

You can also delete this step if you added enough context in the Company Info tab of your Reddit Mastersheet.

Prompt:

I need your help finding the most relevant Reddit communities and subreddits (/r) to follow and contribute to for $0 (website found at $1) in the last few weeks or months. To make your picks, base your research on two main things: 1. Is the content of the Reddit community aligned/relevant with the company's positioning, market, product, etc. Especially of the ideal customer profile. We want to add value to Reddit threads where our customers are spending their time and consuming content. You can find information about those in the Notion page attached. 2. Is the community active? (Volume, engagement, trending, etc.).
Return the top 10.

❗ To call the google sheet dynamically instead of having “$0”, open the Relay assistant and paste ⤵️

Replace all instances of "$0" with a placeholder that dynamically calls the text value of the Company field.
Replace all instances of "$1" with a placeholder that dynamically calls the text value of the URL field.

Post Finder (Weekly Starter)

What it does: Every week, it will trigger a run of Top Reddit Posts for every relevant community in the Reddit Mastersheet.

Top Reddit Posts Based on Content

What it does: Finds the most relevant posts or threads to contribute to based on the actual content and what you posted on your company blog.

Prompt:

Conduct a thorough search of the Reddit posts attached. Based on your assessment of what $0 ($1) does, its product(s), online content, and more, help me make a list of the most relevant recent Reddit posts to contribute to in each of those communities this week. What I mean by contributing is to add insightful comments, some data, start a conversation, ask a question, or share something that people reading the post will find valuable. The intention is to increase $0's visibility on Reddit, and consequently on LLM queries (Reddit is the #1 source of reference data by LLMs).
Also, read through $0's blog (URLs to every published blog can be found in the spreadsheet attached) to use the company's current content to make your comment proposal. Pick one blog that is most relevant to reference in your proposed comment.
I want you to output:
  • The subreddit (i.e. r/SaaS)
  • The post title
  • The post URL
  • The main reason you found for commenting and adding value (refer to the post Guidelines in the most recent Top Communities Sheet [attached as context]).
  • The proposed comment if you had to write it yourself (no em dashes, cheesy or salesy language. Try to emulate a human response).
  • URL of the most relevant blog to reference from the blog spreadsheet
Give me your top 3 posts to contribute to. Focus on relevancy, reach potential, and ability to contribute value.

❗ To call the google sheet dynamically instead of having “$0”, open the Relay assistant and paste ⤵️

Replace all instances of "$0" with a placeholder that dynamically calls the text value of the Company field.
Replace all instances of "$1" with a placeholder that dynamically calls the text value of the URL field.

❗  If you added more guidelines and information in the Company Info tab of the Reddit Mastersheet, you can always add them as context in the prompt ($2 = reference to the 3rd column, $3 to the fourth, etc.)

Top Reddit Posts Based on Brand Mentions

What it does: Finds posts where your brand or competitors are mentioned, or posts where your competitors’ employees have engaged.

Prompt:

Search Reddit for posts where either our company <div>Company</div> (<div>URL</div>), or competitors like <div>Competitors</div> (and other relevant competitors that aren't in this list) are mentioned, OR where someone from a competitor’s team has commented.Your task:Return 5–10 of the most relevant, non-archived posts (only active threads).For each post, give:The subreddit + title (linked),A 1-sentence reason why our team should engage (e.g. demand, competitor mention, misinformation, buying signal).A 1-sentence suggestion for how we should contribute that is helpful and not overly promotional (e.g. share benchmarking data, implementation tips, decision frameworks).Focus on threads where our comment could add unique insight (not just “thanks”).Keep the output structured as a table with columns: #, Thread & Link,Why Engage, Suggested Contribution.Exclude threads that are archived or closed for comments.Goal: Produce a prioritized list of threads our team could meaningfully join this week to add value and build credibility.