AI Viral Tweet Automation — Google Trends + Claude (n8n Workflow)

Built this to keep an X account active without writing every post by hand. The workflow picks up what’s trending and turns it into an original tweet.

How it works:

  1. Every hour it pulls trending topics from Google Trends for your country
  2. Every 6 hours it checks a second, global market
  3. Claude writes an original tweet about the trend
  4. The tweet is posted to your X account
  5. No strong trend? It falls back to a theme you choose (tech, travel, fitness…)

Running cost is low: Claude costs fractions of a cent per tweet, and X’s pay-per-use API is about $0.015 per post. Ships with a step-by-step guide from creating the X developer account to going live.

Full details and other workflows are on my profile. Curious how others handle trend filtering, so suggestions are welcome.