Automation library · Content

Spot social media trends and generate post ideas with Claude

Started by another system calling it, and works across Google Sheets. It hands the judgement calls to Claude. 16 steps, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Claude

16 stepsMedium: a working afternoon
0Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 2Model 2Logic 8Service 4

The steps in the order they run, from what starts it.

  1. 1Receive Trend RequestWebhookStarts it
  2. 2Claude AI ModelLm Chat AnthropicModel
  3. 3Validate Config & Build ParametersCodeLogic
  4. 4Generate Content Ideas with Claude AIAgentModel
  5. 5Fetch Twitter Trending TopicsHttp RequestService
  6. 6Fetch Reddit Hot TopicsHttp RequestService
  7. 7Fetch Google TrendsHttp RequestService
  8. 8Parse Claude ResponseCodeLogic
  9. 9Merge All Trend SourcesMergeLogic
  10. 10Wait Before Timing AnalysisWaitLogic
  11. 11Wait for Trend AggregationWaitLogic
  12. 12Calculate Optimal Posting TimesCodeLogic
  13. 13Parse & Filter Trending TopicsCodeLogic
  14. 14Log Ideas to Google SheetsGoogle SheetsService
  15. 15Format Final ResponseCodeLogic
  16. 16Send Response to WebhookRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
16, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
Claude

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, and a key for Claude. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 16 steps before you point it at anything that matters.