Marketing & Content

Instagram Posts from Trending Topics

Find trending Instagram posts for a hashtag, create a new image and caption from the idea, and publish to your business account.

The Problem

Keeping an Instagram account active means constantly finding ideas and producing images. Small teams cannot keep up.

How This Template Solves It

A design studio tracks hashtags in its niche. The workflow scrapes top posts, skips ideas already used, describes the image, writes a caption, generates a new image, publishes it to Instagram and sends a Telegram message when it is live.

How It Works

  1. 1Fetches top posts for your hashtags through a RapidAPI Instagram scraper.
  2. 2Keeps image posts and checks a Postgres table so the same idea is not reused.
  3. 3OpenAI describes the image and writes a caption.
  4. 4Generates a new image through Replicate.
  5. 5Publishes to Instagram through the Facebook Graph API and notifies you on Telegram.

What You Need

  • An Instagram business account connected to the Facebook Graph API
  • A RapidAPI key
  • A Replicate token
  • A Postgres database with the table from the author's notes
  • An OpenAI API key
  • A Telegram bot

What Stays Under Your Control

  • Add a review step if you do not want posts to publish automatically.

Watch Out For

  • Recreating other creators' work can raise copyright issues. Use trends for inspiration, not copies.
  • The example hashtags come from the author's niche. Change them to yours.

Adapted from a community workflow template. Before publishing we removed credentials, account and file IDs, email addresses and sample data. The original author's setup notes are kept inside the workflow file.

More Marketing & Content Templates

Marketing & Content

Create and Schedule Branded LinkedIn Posts

Research topics with Perplexity, write LinkedIn posts in your voice, generate a branded image and publish on a schedule.

Starts on: Schedule

Anthropic ClaudeGoogle DriveGoogle Sheets+1 more