Analyze competitor visual content across Instagram and TikTok with GPT-4o Vision
Who Is This For
Marketing teams, social media managers, and brand strategists who want to understand competitor visual strategies across multiple platforms. Perfect for agencies managing multiple client accounts or brands looking to benchmark their visual content.
What This Template Does
This workflow automates competitive visual intelligence gathering across Instagram and TikTok using AI-powered image analysis:
- Collects recent posts from your account and up to 3 competitors via a simple form interface
- Routes content to appropriate Apify scrapers based on selected platforms
- Filters and processes image content from scraped posts
- Analyzes each image using GPT-4o Vision to extract color palettes, composition styles, mood/emotion, and text design elements
- Generates a comprehensive competitive analysis report with actionable recommendations
- Logs all analysis results to Google Sheets for historical tracking
Requirements
- Apify account with API access (for Instagram and TikTok scraping)
- OpenAI API key with GPT-4o access
- Google Sheets connected for logging results
How to Set Up
- Configure Apify credentials: Connect your Apify account in the credential settings
- Add OpenAI API key: Enter your API key in the "Workflow Configuration" node (replace
YOUR_OPENAI_API_KEY) - Set up Google Sheets:
- Create a new spreadsheet with columns:
timestamp,own_account,competitors,platforms,posts_analyzed,summary - Update the "Log Results to Google Sheets" node with your document ID
- Create a new spreadsheet with columns:
- Activate the workflow and access the form via the provided webhook URL
How to Customize
- Adjust analysis depth: Modify the
postsCountvariable to analyze more or fewer posts per account - Customize AI prompts: Edit the prompt in "Analyze Images with GPT-4o Vision" to extract different visual attributes
- Add more platforms: Extend the Platform Router to include additional social networks
- Change report format: Modify the prompt in "Generate Competitive Analysis Report" for different output structures
Analyze Competitor Visual Content Across Instagram and TikTok with GPT-4o Vision
This n8n workflow automates the process of collecting and analyzing competitor visual content from social media platforms (specifically Instagram and TikTok, although the current implementation focuses on a generic "Social Media" input) using GPT-4o Vision. It allows you to input social media post URLs, analyze their visual content, and store the insights in a Google Sheet.
What it does
This workflow simplifies the process of competitor visual content analysis by:
- Triggering on Form Submission: It starts when a user submits a form containing social media post URLs.
- Editing Fields: It prepares the input data for further processing, likely extracting and standardizing the URLs.
- Conditional Processing: It uses a
Switchnode to route items based on a condition, though the specific condition is not defined in the provided JSON. This could be used to differentiate between Instagram and TikTok URLs, or other criteria. - Code Execution (Placeholder): It includes a
Codenode, which is currently empty. This node is intended to contain custom JavaScript logic, likely for making API calls to GPT-4o Vision to analyze the images from the provided URLs and extract visual insights. - Filtering Results: It filters the processed items based on a condition, ensuring only relevant data proceeds. The specific filter condition is not defined.
- Aggregating Data: It combines multiple items into a single collection, useful for batch processing or preparing data for a single output.
- Storing Data in Google Sheets: Finally, it writes the analyzed visual content data into a specified Google Sheet.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running n8n instance.
- Google Sheets Account: A Google Sheets account and a configured n8n credential for Google Sheets to store the analysis results.
- OpenAI API Key (Implied): Although not explicitly configured in the provided JSON, the workflow's purpose of "analyzing competitor visual content with GPT-4o Vision" implies the need for an OpenAI API key and a corresponding n8n credential for OpenAI. This would be used within the
Codenode. - Social Media Access (Implied): Access to the social media platforms (Instagram, TikTok) to obtain the post URLs.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Google Sheets Credential:
- Locate the "Google Sheets" node.
- Configure your Google Sheets credential, ensuring it has write access to the target spreadsheet.
- Specify the "Spreadsheet ID" and "Sheet Name" where the analyzed data will be stored.
- Configure Form Trigger:
- Locate the "On form submission" node.
- Activate the workflow and copy the webhook URL. This URL will be used to submit your social media post URLs.
- Implement GPT-4o Vision Logic:
- Locate the "Code" node.
- Add custom JavaScript code to:
- Extract image URLs from the social media post URLs provided in the input.
- Make API calls to GPT-4o Vision (e.g., using
n8n.require('openai')or a direct HTTP request) to analyze the images. - Parse the GPT-4o Vision response and extract relevant visual insights (e.g., objects detected, themes, colors, sentiment).
- Format the extracted insights into a structure suitable for the subsequent Google Sheets node.
- Ensure you have an OpenAI credential configured in n8n for this node to use.
- Define Switch and Filter Logic:
- Locate the "Switch" node and define the condition(s) for routing items.
- Locate the "Filter" node and define the condition(s) for filtering items.
- Test the Workflow:
- Manually send a form submission to the "On form submission" webhook URL with sample social media post URLs.
- Verify that the data is processed correctly and written to your Google Sheet.
Related Templates
Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets
This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.