Skip to main content

Score content virality with OpenAI, Google Sheets and Slack

Workflow preview

Workflow preview
100%
Score content virality with OpenAI, Google Sheets and Slack preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow accepts content submissions via webhook or a weekday schedule, pulls historical performance from Google Sheets, fetches trend and audience signals via HTTP APIs, uses O...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.filter, n8n-nodes-base.httprequest, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Score content virality with OpenAI, Google Sheets and Slack
Workflow name
Score content virality with OpenAI, Google Sheets and Slack

Quick Overview

This workflow accepts content submissions via webhook or a weekday schedule, pulls historical performance from Google Sheets, fetches trend and audience signals via HTTP APIs, uses OpenAI to predict a 0–100 virality score with recommendations, then notifies the team in Slack or email and logs results back to Google Sheets.

How it works

  1. Receives new content either from a POST webhook request or on a weekday 9am cron schedule.
  2. Normalizes the incoming fields and validates that required content is present and meets basic quality checks.
  3. Pulls historical post performance from Google Sheets and retrieves current trending-topic data from SerpAPI Google Trends plus audience behavior signals from an external analytics API.
  4. Merges the collected signals and sends them to OpenAI (GPT-4.1-mini) to generate a structured virality assessment and predicted engagement range.
  5. Parses the AI response, enforces score-tier thresholds (HIGH/MODERATE/LOW), and enriches the result with timestamps and IDs.
  6. Sends a Slack webhook notification for HIGH and MODERATE scores or sends a SendGrid email alert with revision guidance for LOW scores.
  7. Appends the full scoring record to a Google Sheets log and, for webhook submissions, returns the score payload in the webhook response.

Setup

  1. Add OpenAI API credentials for the LangChain agent chat model.
  2. Replace the Google Sheets URLs with your spreadsheet ID and a valid Google Sheets API key (or adapt to OAuth) for both the historical read and log append requests.
  3. Add and configure your trend and analytics data sources by setting the SerpAPI key and the analytics API base URL and bearer token.
  4. Create a Slack incoming webhook and replace YOUR_SLACK_WEBHOOK_PATH in both Slack notification requests.
  5. Configure SendGrid by adding an Authorization header/API key (not included in the request) and updating the from/to email addresses in the email request body.
  6. If using the webhook trigger, copy the production webhook URL and send content payloads containing at least title/body and platform fields.

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 - Sticky Note - Overview

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

Block 2 - Sticky Note - Phase 1

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

Block 3 - Sticky Note - Phase 2

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

Block 4 - Sticky Note - Phase 3

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

Block 5 - Sticky Note - Phase 4

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

Block 6 - Webhook - Content Submitted

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1.1

Block 7 - Schedule - Daily Content Queue

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

Block 8 - Normalize Content Input

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

Block 9 - Python - Validate Content Input

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

Block 10 - Filter - Valid Content Only

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 11 - Load Platform Config

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

Block 12 - Fetch Historical Performance Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Fetch Trending Topics & Signals

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Fetch Audience Behavior Signals

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Python - Merge & Normalize Signals

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

Block 16 - Wait - Rate Limit Buffer

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

Block 17 - AI - Virality Score & Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.6

Block 18 - OpenAI Chat Model

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

Block 19 - JS - Parse & Enrich Score

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

Block 20 - Slack - Notify High Virality

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Slack - Notify Moderate Virality

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - Email - Low Virality Revision Alert

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 23 - Log to Google Sheets

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 24 - Webhook Response - Return Score

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Score content virality with OpenAI, Google Sheets and Slack
Complexity advanced
Nodes 25
Categories Market Research, AI Summarization
Author Oneclick AI Squad
Published 10 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16234/16234.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 Score content virality with OpenAI, Google Sheets and Slack do?

Quick Overview This workflow accepts content submissions via webhook or a weekday schedule, pulls historical performance from Google Sheets, fetches trend and audience signals via HTTP APIs, uses O...

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.