Marketing
Copy Trending Insta Posts w/ RapidAPI | Scrape top Hashtag Posts -> Analyze -> Create new Content
This n8n workflow automates AI-powered Instagram content creation. It scrapes trending image posts by hashtag, uses OpenAI to analyze images and generate captions, and Replicate/Flux to create new visuals. The workflow then publishes this unique, AI-generated content to an…
Built · ~10.5 hours saved per week
Automated Instagram Content Creation and Posting
Overview This workflow automates a sophisticated content creation pipeline for Instagram. It starts by identifying top-trending image posts for specific hashtags, uses a multi-step AI process to analyze and recreate unique new content inspired by them, and then publishes the final result to an Instagram Business Account. The entire process includes status monitoring with notifications sent via Telegram, creating a fully autonomous social media content engine.
Technologies Used - n8n: The automation platform coordinating the entire workflow. - RapidAPI (Instagram Scraper): Used to scrape and discover top-performing posts from Instagram based on specified hashtags. - OpenAI (GPT-4o-mini): Provides the core AI intelligence for analyzing images and generating text. - Replicate (Flux Schnell model): An AI image generation platform used to create new, unique visuals based on text prompts. - Facebook Graph API: The official API for interacting with Instagram Business Accounts, used here to upload and publish the generated content. - Telegram: A messaging app used for sending real-time status notifications about the workflow's execution (success or failure).
AI Integration This workflow uses a powerful, three-stage AI process to transform inspiration into original content:
1. AI Image Analysis (Vision): The workflow first feeds the image of a trending post to OpenAI's GPT-4o-mini model. It prompts the AI to act as a scene descriptor, generating a detailed text description of the object in the image, focusing on its physical attributes while ignoring the background. This deconstructs the visual essence of the trending content. 2. AI Caption Generation (LLM): The descriptive text generated in the first step is then passed to a second OpenAI node. This time, the AI is prompted to act as a social media manager, transforming the description into a short, engaging Instagram caption complete with relevant, strategic hashtags. 3. AI Image Generation (Text-to-Image): The descriptive text from the first AI step is used to construct a highly detailed prompt for the Flux Schnell model via Replicate.
Tags: Marketing, Web Scraping, Content Management, Data Transformation, Content Creation, AI Automation
Integrations: Telegram, Schedule, Code, HTTP, OpenAI