by Robert Breen
Pull recent Instagram post media for any username, fetch the image binaries, and run automated visual analysis with OpenAI โ all orchestrated inside n8n. This workflow uses a Google Sheet to supply target usernames, calls Apifyโs Instagram Profile Scraper to fetch recent posts, downloads the images, and passes them to an OpenAI vision-capable model for structured analysis. Results can then be logged, stored, or routed onward depending on your use case. ๐งโ๐ป Whoโs it for Social media managers analyzing competitor or brand posts Marketing teams tracking visual trends and campaign content Researchers collecting structured insights from Instagram images โ๏ธ How it works Google Sheets โ Supplies Instagram usernames (one per row). Apify Scraper โ Fetches latest posts (images and metadata). HTTP Request โ Downloads each image binary. OpenAI Vision Model โ Analyzes visuals and outputs structured summaries. Filter & Split Nodes โ Ensure only the right rows and posts are processed. ๐ Setup Instructions 1) Connect Google Sheets (OAuth2) Go to n8n โ Credentials โ New โ Google Sheets (OAuth2) Sign in with your Google account and grant access In the Get Google Sheet node, select your spreadsheet + worksheet (must contain a User column with Instagram usernames) 2) Connect Apify (HTTP Query Auth) Get your Apify API token at Apify Console โ Integrations/API In n8n โ Credentials โ New โ HTTP Query Auth, add a query param token=<YOUR_APIFY_TOKEN> In the Scrape Details node, select that credential and use the provided URL: 3) Connect OpenAI (API Key) Create an API key at OpenAI Platform In n8n โ Credentials โ New โ OpenAI API, paste your key In the OpenAI Chat Model node, select your credential and choose a vision-capable model (gpt-4o-mini, gpt-4o, or gpt-5 if available) ๐ ๏ธ How to customize Change the Google Sheet schema (e.g., add campaign tags or notes). Adjust the OpenAI system prompt to refine what details are extracted (e.g., brand logos, colors, objects). Route results to Slack, Notion, or Airtable instead of storing only in Sheets. Apply filters (hashtags, captions, or timeframe) directly in the Apify scraper config. ๐ Requirements n8n (Cloud or self-hosted) Google Sheets account Apify account + API token OpenAI API key with a funded account ๐ฌ Contact Need help customizing this (e.g., filtering by campaign, sending reports by email, or formatting your PDF)? ๐ง rbreen@ynteractive.com ๐ Robert Breen ๐ ynteractive.com
by Snehasish Konger
Target audience Solo creators, PMs, and content teams who queue LinkedIn ideas in Google Sheets and want them posted on a fixed schedule with AI-generated copy. How it works The workflow runs on a schedule (Mon/Wed/Fri at 09:30). It pulls the first Google Sheet row with Status = Pending, generates a LinkedIn-ready post from Post title using an OpenAI prompt, publishes to your LinkedIn profile, then updates the same row to Done and writes the final post back to the sheet. Prerequisites (use your own credentials) Google Sheets (OAuth2)** with access to the target sheet LinkedIn OAuth2* tied to the account that should post โ set the *person** field to your profileโs URN in the LinkedIn node OpenAI API key** for the Chat Model node Store secrets in n8n Credentials. Never hard-code keys in nodes. Google Sheet structure (exact columns) Minimum required columns id โ unique integer/string used to update the same row later Status โ allowed values: Pending or Done Post title โ short prompt/topic for the AI model Recommended columns Output post โ where the workflow writes the final text (use this header, or keep your existing Column 5) Hashtags (optional) โ comma-separated list (the prompt can append these) Image URL (optional) โ public URL; add an extra LinkedIn โCreate Postโ input if you post with media later Notes (optional) โ extra hints for tone, audience, or CTA Example header row id | Status | Post title | Hashtags | Image URL | Output post | Notes Example rows (inputs โ outputs) 1 | Pending | Why I moved from Zapier to n8n | #automation,#nocode | | | Focus on cost + flexibility 2 | Done | 5 lessons from building a rules engine | #product,#backend | | This is the final posted text... | Resulting Output post (for row 1 after publish) I switched from Zapier to n8n for three reasons: control, flexibility, and cost. Hereโs what changed in my stack and what Iโd repeat if I had to do it again. #automation #nocode > If your sheet already has a column named Column 5, either rename it to Output post and update the mapping in the final Google Sheets Update node, or keep Column 5 as is and leave the node mapping untouched. Step-by-step Schedule Trigger Runs on Mon/Wed/Fri at 09:30. Fetch pending rows (Google Sheets โ Get Rows) Reads the sheet and filters rows where Status = Pending. Limit Keeps only the first pending row so one post goes out per run. Writing the post (Agent + OpenAI Chat Model + Structured Output Parser) Uses Post title (and optional Notes/Hashtags) as input. The agent returns JSON with a post field. Model set to gpt-4o-mini by default. Create a post (LinkedIn) Publishes {{$json.output.post}} to the configured person (your profile URN). Update the sheet (Google Sheets โ Update) Matches by id, sets Status = Done, and writes the generated text into Output post (or your existing output column). Customization Schedule** โ change days/time in the Schedule node. Consider your n8n server timezone. Posts per run* โ remove or raise the *Limit** to post more than one item. Style and tone** โ edit the Agentโs system prompt. Add rules for line breaks, hashtags, or a closing CTA. Hashtags handling** โ parse the Hashtags column in the prompt so the model appends them cleanly. Media posts** โ add a branch that attaches Image URL (requires LinkedIn media upload endpoints). Company Page* โ switch the *person* field to an *organization** URN tied to your LinkedIn app scope. Troubleshooting No post created** Check the If/Limit path: is there any row with Status = Pending? Confirm the sheet ID and tab name in the Google Sheets nodes. Sheet not updating** The Update node must receive the original id. If you changed field names, remap them. Make sure id values are unique. LinkedIn errors (403/401/404)** Refresh LinkedIn OAuth2 in Credentials. The person/organization URN is wrong or missing. Copy the exact URN from the LinkedIn node helper. App lacks required permissions for posting. Rate limit (429) or model errors** Add a short Wait before retries. Switch to a lighter model or simplify the prompt. Post too long or broken formatting** LinkedIn hard limit is \~3,000 characters. Add a truncation step in Code or instruct the prompt to cap length. Replace double line breaks in the LinkedIn node if you see odd spacing. Timezone mismatch** The Schedule node uses the n8n instance timezone. Adjust or move to a Cron with explicit TZ if needed. Need to post at a different cadence, or push two posts per day? Tweak the Schedule and Limit nodes and youโre set.
by raas
๐ต AI Spotify Playlist Generator (Telegram โ Spotify) instantly create a curated Spotify playlist based on a single song recommendation sent via Telegram. This workflow uses an AI Agent to generate similar tracks, creates a new playlist, sends you the link immediately, and then populates the playlist in the background. โจ Features Instant Feedback: Creates the Spotify playlist and sends the URL back to your Telegram chat immediately, before the AI finishes processing. AI Curation: Uses an AI Agent (via OpenRouter) to act as a "Greatest DJ," generating 25 songs similar to your input. Smart Searching: Automatically searches Spotify for the generated tracks. Error Handling: Includes logic to skip tracks that cannot be found on Spotify. Rate Limiting: Includes a wait loop to ensure Spotify API rate limits are respected during population. ๐ ๏ธ Prerequisites To use this workflow, you need: n8n: An active instance of n8n. Spotify Developer Account: You need a Client ID and Client Secret to authenticate the Spotify node. Telegram Bot: A bot token created via @BotFather. OpenRouter Account: An API key for OpenRouter to access the LLM (Language Model). Note: You can easily swap the OpenRouter node for an OpenAI or Anthropic node if preferred. ๐ How it Works Trigger: You send a message to your Telegram Bot (e.g., "Daft Punk - One More Time"). Create Playlist: The workflow immediately creates a new empty playlist on your Spotify account named with your username and the prompt. Reply: The bot replies to you with the link to the new playlist. AI Generation: The prompt is sent to an AI Agent which generates a JSON list of ~25 similar tracks and artists. Processing: The workflow splits the list into individual items. It loops through every item. It searches Spotify for the specific Track + Artist. If found, it adds the track to the playlist. It waits 1 second between adds to prevent API errors. โ๏ธ Setup Instructions Credentials: Set up your Telegram API credentials in the Trigger and Send Message nodes. Set up your Spotify OAuth2 credentials in the Create, Search, and Add Item nodes. Set up your OpenRouter API credentials in the Chat Model node. Model Selection: The template is configured to use openai/gpt-5-nano via OpenRouter. If this model is unavailable to you, simply open the OpenRouter Chat Model node and change the model to openai/gpt-4o or meta-llama/llama-3-70b-instruct. Activate: Save the workflow and click Activate. Open your Telegram bot and send it a song name! ๐ฆ Dependencies n8n-nodes-base.telegramTrigger @n8n/n8n-nodes-langchain.agent n8n-nodes-base.spotify n8n-nodes-base.splitOut n8n-nodes-base.splitInBatches
by Robert Breen
Web-Form Auto-Responder: Instant Email + SMS Follow-Up ๐ Description Embed a simple web form on your site and let this workflow: Collect a visitorโs name, email, phone, and question Generate a professional email and a friendly SMS using GPT-4o-mini Delay briefly (1 min by default) to simulate human writing time Send the AI-crafted email via Microsoft Outlook Send the AI-crafted text via Twilio Perfect for solo consultants or small teams who want rapid, personalized responses without manual typing. โ๏ธ Setup Instructions Import the workflow n8n โ Workflows โ Import from File (or Paste JSON) โ Save Add credentials | Service | Where to get credentials | Node(s) to update | |---------|-------------------------|-------------------| | OpenAI | <https://platform.openai.com> โ create API key | OpenAI Chat Model | | Microsoft Outlook | Azure/M365 account with email-send permissions | Send email to the submitter | | Twilio | <https://console.twilio.com> โ Account SID, Auth Token | Send text to the submitter | Embed the form on your website Open Form to be embedded on website Click โEmbedโ โ copy the iframe code โ paste into your contact page Set your Twilio โFromโ number In Send text to the submitter, change phone to your verified Twilio number Adjust wait times (optional) Wait some time to write the email response (default 1 min) Wait some time to write the text response (default 1 min) Customize the AI prompt (optional) Edit the AI Agent system message to tweak tone, questions asked, or signature Test the flow Open the form URL (generated by the Form node) Submit a test entry โ after ~1 min you should receive both an email and an SMS Activate Toggle Active so the form handles real submissions 24/7 ๐งฉ Customization Ideas Pipe form data into Pipedrive, HubSpot, or Airtable for lead tracking Trigger a Slack/Teams alert to notify your team of hot questions Add a calendar link in the email so visitors can book a call instantly Use a language-detection node to reply in the visitorโs native language Contact Email:** rbreen@ynteractive.com Website:** https://ynteractive.com YouTube:** https://www.youtube.com/@ynteractivetraining LinkedIn:** https://www.linkedin.com/in/robertbreen
by Yar Malik (Asfandyar)
Whoโs it for This template is for anyone who wants to manage tasks, deadlines, and updates directly from WhatsApp. Itโs especially useful for teams, freelancers, and small businesses that track their work in Google Sheets and want quick AI-powered assistance without opening spreadsheets. How it works / What it does This workflow turns WhatsApp into your personal task manager. When a user sends a message, the AI agent (powered by OpenAI) interprets the request, retrieves or updates task information from Google Sheets, and sends a concise response back via WhatsApp. The workflow can highlight overdue tasks, upcoming deadlines, and provide actionable suggestions. How to set up Connect your WhatsApp API account in n8n. Add your OpenAI credentials. Link your Google Sheets document where tasks are stored. Deploy the workflow and test by sending a message to your WhatsApp number. Requirements WhatsApp Business API account connected to n8n OpenAI account for AI responses Google Sheets with task data How to customize the workflow Adjust the AI prompt to change tone or instructions. Modify the Google Sheets fields (Task, Status, Due Date, Notes) to match your structure. Add conditions or filters to customize which tasks get highlighted.
by Robert Breen
Let your team create, track, and manage project tasks through natural conversation. This workflow uses an AI Project Manager Agent that chats with users, gathers the task details it needs, and automatically adds them to a Google Sheet. โ What this template does Lets you chat naturally with an AI to add new project tasks Automatically detects if the user wants to create or update an item (updates coming soon) Collects Task, Description, and Status fields โ allows โdonโt knowโ responses Appends new entries directly into your connected Google Sheets Provides real-time confirmation when the task is added > Trigger: n8n Chat Trigger > Integrations: OpenAI GPT-4.1-mini + Google Sheets (OAuth2) ๐ง How it works The Chat Trigger starts a chat with the user. The AI Project Manager Agent asks guiding questions to gather the task name, description, and status. When all fields are complete (all Info = Yes), the data is passed to the Google Sheets node. The task is automatically added to your project tracker sheet. The AI confirms completion in chat. โ๏ธ Setup instructions 1. Connect OpenAI Go to OpenAI Platform โ copy your API key. In n8n, create New Credentials โ OpenAI API and paste your key. Ensure your account has active billing under OpenAI Billing. 2. Connect Google Sheets (OAuth2) In n8n โ Credentials โ New โ Google Sheets (OAuth2) Sign in with your Google account and grant access. Select your spreadsheet and tab (e.g., โTasksโ) when prompted. Example sheet: https://docs.google.com/spreadsheets/d/1pbK-B-Q9p8fVjxJIsjEVrAfRgqEPCeYw8rZojZPAb84/edit 3. Test your chat Click Execute Workflow, then start chatting: > โAdd a task for reviewing the project report tomorrow.โ The agent will ask questions if needed, then add the record to your sheet. ๐งฉ Customization ideas Add a Date Added or Assigned To column to the Google Sheet Integrate with Slack or Outlook to message assigned users Extend the agent to support task updates and deletes Replace Google Sheets with Airtable or Notion if preferred ๐ช Requirements n8n version โฅ 1.100 OpenAI API key Google Sheets account ๐ฌ Contact Need help customizing this (e.g., adding deadlines, linking to Notion, or Slack notifications)? ๐ง robert@ynteractive.com ๐ Robert Breen ๐ ynteractive.com
by Yaron Been
Creative Design Agency Simulation with OpenAI O3 and GPT-4.1-mini Multi-Agent Team This n8n workflow simulates a full-service creative agency powered by AI. At the center is a Creative Director Agent (O3 model) who takes client requests, plans the creative direction, and delegates work to a specialized design team. Each specialist runs on GPT-4.1-mini, keeping execution fast and cost-efficient. ๐ข Section 1 โ Entry & Strategic Leadership Nodes: ๐ฌ When chat message received โ Entry point, listens for design briefs. ๐จ Creative Director Agent (O3) โ The โagency headโ who interprets requirements and decides which specialists to involve. ๐ก Think Tool โ Helps the Director brainstorm, evaluate alternatives, and refine direction. ๐ง OpenAI Chat Model Director (O3) โ Strategic reasoning engine for the Director. โ Benefit for beginners: Think of this as the project managerโs desk โ you submit a design request, and the Director figures out how to make it happen. โ๏ธ Section 2 โ Core Creative Specialists Nodes: ๐ผ๏ธ Graphic Designer โ Logos, visual identity, print, packaging. ๐ฑ UI/UX Designer โ Wireframes, prototypes, interaction design. ๐ฏ Brand Strategist โ Market positioning, brand guidelines, competitive research. ๐ Creative Copywriter โ Taglines, messaging, campaign copy. Each agent is powered by GPT-4.1-mini. โ Benefit for beginners: This section is your creative studio team โ they craft visuals, design user experiences, and write compelling words. ๐ Section 3 โ Extended Design & Motion Team Nodes: ๐ฌ Motion Graphics Designer โ Animations, promo videos, explainer graphics. ๐ Web Designer โ Websites, responsive layouts, accessibility improvements. ๐๏ธ OpenAI Chat Model Agents (GPT-4.1-mini) โ Back each specialist with creative power. โ Benefit for beginners: This section brings motion and web into the mix, ensuring your creative package isnโt static โ it moves, animates, and lives online. ๐ Summary Table | Section | Key Roles | Model | Purpose | Beginner Benefit | | ------------------- | --------------------------------- | ------------ | --------------------- | ------------------------------------- | | ๐ข Entry & Strategy | Chat Trigger, Director, Think | O3 | Leadership & planning | Turns briefs into action plans | | โ๏ธ Core Creatives | Graphic, UI/UX, Brand, Copywriter | GPT-4.1-mini | Design & content | Produces visuals, UX, and words | | ๐ Extended Team | Motion Graphics, Web | GPT-4.1-mini | Motion & web design | Animates, builds, and scales projects | ๐ Why This Workflow Rocks Complete agency in a box** โ Strategy + Design + Motion + Web + Copy Smart leadership** โ Director (O3) only used for high-level thinking Cost-effective execution** โ GPT-4.1-mini runs most tasks Parallel creativity** โ Specialists work simultaneously Scalable** โ Adaptable to any design or branding request ๐ Example: Send a message like โDesign a brand identity for a sustainable clothing startupโ. Within minutes, your AI agency produces: A logo & color scheme ๐จ A UX prototype ๐ฑ A brand positioning doc ๐ฏ Animated ad ideas ๐ฌ Website mockups ๐ A tagline & ad copy โ๏ธ
by Mattis
Stay informed about the latest n8n updates automatically! This workflow monitors the n8n GitHub repository for new pull requests, filters updates from today, generates an AI-powered summary, and sends notifications to your Telegram channel. Who's it for n8n users who want to stay up-to-date with platform changes Development teams tracking n8n updates Anyone managing n8n workflows who needs to know about breaking changes or new features How it works Daily scheduled check at 10 AM for new pull requests Fetches latest PR from n8n GitHub repository Filters to only process today's updates Extracts the pull request summary AI generates a clear, technical summary in English Sends notification to your Telegram channel
by Zakwan
Creating high-quality, SEO-friendly blog posts consistently can be time-consuming. This template helps content creators, bloggers, SEO specialists, and agencies fully automate their blogging workflow. By combining AI content generation (GPT), Google Sheets for keyword management, and WordPress for direct publishing, this workflow saves hours of manual work and ensures professional results. โก Use Cases Automate content creation for niche blogs. Generate SEO-optimized articles from keyword lists. Keep a consistent publishing schedule without manual effort. Scale content production for agencies or affiliate sites. โ Pre-requirements Before using this template, you will need: Google Sheets API credentials (for managing topics & keywords). AI API key (e.g., OpenAI, LM Studio, Ollama, or any connected model). WordPress credentials with API access. Basic understanding of n8n workflow editor. ๐ง Step-by-Step Setup Connect Google Sheets: Add your API credentials.- Use the sheet to store keywords, titles, and categories. Integrate AI Model (GPT or others): Insert your API key into the AI node. Customize the SEO writing prompt for Rank Math 90+ score. Content Processing: The workflow will fetch one keyword at a time. AI will generate a 1200โ1500+ word SEO blog post. Output is cleaned into proper HTML. Publish to WordPress: Configure the WordPress node with your site credentials. Automatically post as Draft or Published.
by Kean
Text-to-Image Generator with OpenAI What It Is This is an automated text-to-image generation system that converts simple subject descriptions into AI-generated photos using OpenAI's image generation technology. Setup The system works through a streamlined workflow: You input a subject or brief description into a designated note field The system automatically expands your simple subject into a detailed, comprehensive prompt This enhanced prompt is sent to OpenAI's image generator Once the image is created, it is automatically saved to your Google Drive for easy access and storage You receive a notification in Slack to view it
by Robert Breen
This workflow allows you to search your Outlook mailbox with natural language. You type what youโre looking for (e.g., โinvoice from last weekโ), and the workflow: Uses OpenAI to generate a search query. Searches Outlook emails and ranks them by relevance. Outputs results in a simple table with score + link to each email. ๐ The number of results can be changed (default: 5). โ๏ธ Setup Instructions 1๏ธโฃ Set Up OpenAI Connection Go to OpenAI Platform Navigate to OpenAI Billing Add funds to your billing account Copy your API key into the OpenAI credentials in n8n 2๏ธโฃ Set Up Outlook Connection In n8n โ Credentials โ New โ Microsoft Outlook OAuth2 API Log in with your Outlook account & approve access Attach this credential to the Search Outlook node in the workflow (Optional) Change the limit parameter in the node if you want more/less than 5 results ๐ฌ Contact Information Need help customizing this workflow or building similar automations? ๐ง robert@ynteractive.com ๐ Robert Breen ๐ ynteractive.com
by inderjeet Bhambra
AI Security Pipeline - Prompt Injection Defense System using GPT-4O Protect your AI workflows from prompt injection attacks, XSS attempts, and malicious content with this multi-layer security sanitization system. > Important: The n8n workflow template uploader did not allow me to upload the complete system prompt for the Input Validation & Pattern Detection. Copy the complete System Prompt from here What it does This workflow acts as a security shield for AI-powered automations, preventing indirect prompt injection and other threats. It processes content through a multi-layered defense pipeline that detects malicious patterns, sanitizes markdown, validates URLs, and provides comprehensive security assessments. How it works Receives content via webhook endpoint Detects threats including prompt injections, XSS attempts, and data URI attacks Sanitizes markdown by removing HTML, dangerous protocols, and suspicious links Validates URLs blocking suspicious IP addresses, domains, and URL shorteners Returns security report with risk assessment and sanitized content Setup Import and activate the workflow Use the generated webhook URL: /webhook/security-sanitize Send POST requests with JSON: {"content": "your_text", "source": "identifier"} Use cases Secure AI chatbots and LLM integrations Process user-generated content before AI processing Protect RAG systems from data poisoning Sanitize external webhook payloads Ensure compliance with security standards Perfect for any organization using AI that needs to prevent prompt manipulation, data exfiltration, and injection attacks while maintaining audit trails for compliance.