📊 Cross-platform brand monitoring & analysis with AnySite API and GPT

205 views · 📊 Market Research & Insights

💡 Pro Tip — For competitive intelligence, ScraperNode can automate the data collection — Yelp reviews, Glassdoor company data, and Crunchbase profiles all return structured JSON you can feed straight into this workflow.

View All Scrapers

Description

Screenshot 20251031 at 11.45.25.png

Overview

This n8n workflow automates brand monitoring across social media platforms (Reddit, LinkedIn, X, and Instagram) using the AnySite API.
It searches posts mentioning your defined keywords, stores results in n8n Data Tables, analyzes engagement and sentiment, and generates a detailed AI-powered social media report automatically sent to your email.


Key Features


How It Works

Triggers

The workflow runs:

Data Collection Process

  1. Keyword Loading:
    Reads all keywords from the Data Table “Brand Monitoring Words”

  2. Social Media Search:
    For each keyword, the workflow calls the AnySite API endpoints:

    • api/reddit/search/posts
    • api/linkedin/search/posts
    • api/twitter/search/posts (X)
    • api/instagram/search/posts
  3. Deduplication:
    Before saving, checks if a post already exists in the “Brand Monitoring Posts” table.

  4. Data Storage:
    Inserts new posts into the Data Table with fields like type, title, url, vote_count, comment_count, etc.

  5. Comments Enrichment:
    For Reddit and LinkedIn, retrieves and formats comments into JSON strings, then updates the record.

  6. AI Analysis & Report Generation:
    The AI Agent (OpenAI GPT model) aggregates posts, analyzes sentiment, engagement, risks, and generates a structured HTML email report.

  7. Email Sending:
    Sends the final report via Gmail using your connected account.


Setup Instructions

Requirements


Installation Steps

  1. Import the workflow
    Import the provided file:
    Social Media Monitoring.json

  2. Configure credentials

    • AnySite API: Add access-token header with your API key
    • OpenAI: Add your OpenAI API key in the “OpenAI Chat Model” node
    • Gmail: Connect your Gmail account (OAuth2) in the “Send a message in Gmail” node
  3. Create required Data Tables


1️⃣ Brand Monitoring Words

FieldTypeDescription
wordstringKeyword or brand name to monitor

> Each row represents a single keyword to be tracked.


2️⃣ Brand Monitoring Posts

FieldTypeDescription
typestringPlatform type (e.g., reddit, linkedin, x, instagram)
titlestringPost title or headline
urlstringDirect link to post
created_atstringPost creation date/time
subreddit_idstring(Reddit only) subreddit ID
subreddit_aliasstring(Reddit only) subreddit alias
subreddit_urlstring(Reddit only) subreddit URL
subreddit_descriptionstring(Reddit only) subreddit description
comment_countnumberNumber of comments
vote_countnumberVotes, likes, or reactions count
subreddit_member_countnumber(Reddit only) member count
post_idstringUnique post identifier
textstringPost body text
commentsstringSerialized comments (JSON string)
wordstringMatched keyword that triggered capture

AI Reporting Logic


Customization Options


Troubleshooting

IssueSolution
No posts foundCheck AnySite API key and keyword relevance
Duplicate postsVerify Data Table deduplication setup
Report not sentConfirm Gmail OAuth2 connection
AI Agent errorEnsure OpenAI API key and model selection are correct

Best Practices


Author Notes

Created for automated cross-platform brand reputation monitoring, enabling real-time insights into how your brand is discussed online.

🔗 Nodes Used

HTTP Request, Schedule Trigger, AI Agent, OpenAI Chat Model, Data table

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup