Back to Catalog

Ai-powered social media content generator & publisher

Amjid AliAmjid Ali
119575 views
2/3/2026
Official Page

AI-Powered Social Media Content Generator & Publisher πŸš€

This AI-driven n8n workflow automates social media content creation and publishing across LinkedIn, Instagram, Facebook, and Twitter (X). It generates engaging, platform-optimized posts using Google Gemini AI, based on user inputs such as a post title, keywords, and an uploaded image. The workflow ensures seamless content generation and publishing, making it a perfect tool for marketers, business owners, influencers, and content creators.


🌟 Features & Benefits

βœ… AI-Generated Social Media Posts – Uses Google Gemini AI to create high-quality, optimized content.
βœ… Multi-Platform Support – Automatically generates posts for LinkedIn, Instagram, Facebook, and Twitter (X).
βœ… Hashtag & SEO Optimization – Includes trending hashtags to enhance visibility and engagement.
βœ… Image Upload & Processing – Allows image uploads for Instagram and Facebook using imgbb and Facebook Graph API.
βœ… Automated Publishing – Posts are automatically published on all selected platforms.
βœ… Custom Call-to-Action – Each platform's post is optimized with CTAs for better engagement.
βœ… User-Friendly Form Submission – Easy-to-use form where users can enter post titles, keywords, links, and images.
βœ… Performance Tracking – Provides confirmation and tracking links for published posts.


πŸ“Œ How It Works

1️⃣ User Submission Form

  • Fill out the form with Post Title, Keywords, and an Optional Link.
  • Upload an image for Instagram & Facebook posts.

2️⃣ AI Content Generation

  • Google Gemini AI generates optimized content for each platform.
  • The AI ensures professional, engaging, and audience-specific content.

3️⃣ Content Review

  • Users review and approve the AI-generated content before publishing.

4️⃣ Automated Publishing

  • Posts are automatically published on LinkedIn, Facebook, Instagram, and Twitter (X).
  • Uses Facebook Graph API, LinkedIn API, Twitter API, and Instagram API.

5️⃣ Post Confirmation & Tracking

  • Get links to track published posts on each platform.

πŸ› οΈ Prerequisites

Before using this workflow, ensure you have:

  • βœ… n8n Instance (Cloud or Self-Hosted)
  • βœ… Social Media API Credentials (Facebook, Instagram, LinkedIn, Twitter API)
  • βœ… Google Gemini AI API Key
  • βœ… imgbb API Key (for image hosting)

Get N8n My Affiliate Link Buy My Book:
Mastering n8n on Amazon

Full Courses & Tutorials:
http://lms.syncbricks.com

πŸ“Ί YouTube Video Tutorial πŸŽ₯

Watch the step-by-step tutorial on how to set up and use this n8n workflow template:

πŸ”— YouTube Tutorial - AI-Powered Social Media Posting in n8n


🎯 Use Cases

πŸ“Œ Marketing Agencies – Automate client content scheduling.
πŸ“Œ Businesses & Brands – Maintain a consistent brand presence on social media.
πŸ“Œ Content Creators & Influencers – Generate high-quality posts quickly.
πŸ“Œ E-commerce & Startups – Promote products and services effortlessly.
πŸ“Œ Corporate & Enterprise Teams – Streamline internal and external communications.


Important

Start with n8n

Learn n8n with Amjid

Get n8n Book

πŸ‘¨β€πŸ’» Creator Information

πŸ‘€ Developed by: Amjid Ali
🌐 Website: SyncBricks
πŸ“§ Email: info@syncbricks.com
πŸ’Ό LinkedIn: Amjid Ali
πŸ“Ί YouTube: SyncBricks


πŸ’‘ Support & Contributions

If you find this workflow helpful, consider supporting my work:

πŸ‘‰ Donate via PayPal

For full courses on ** AI Automation**, visit:

πŸ“š SyncBricks LMS

πŸ“š AI and Auotmation Course

πŸ‘‰ Get Started with N8N

AI-Powered Social Media Content Generator and Publisher

This n8n workflow automates the generation and multi-platform publishing of social media content using AI. It simplifies the process of creating engaging posts for various platforms based on a user-provided topic.

What it does

This workflow streamlines your social media content creation and distribution:

  1. Triggers on Form Submission: It starts when a user submits a form, providing a topic for the social media post.
  2. Generates Social Media Content with AI: An AI Agent, powered by Google Gemini, takes the provided topic and generates a social media post.
  3. Parses AI Output: The AI's output is then parsed to extract structured content, likely including the post text, hashtags, and potentially platform-specific variations.
  4. Prepares Content for Publishing: The extracted content is formatted and prepared for distribution, potentially adding or modifying fields.
  5. Publishes to Facebook: The generated content is posted to a Facebook page using the Facebook Graph API.
  6. Publishes to X (formerly Twitter): The content is also posted to X (Twitter).
  7. Publishes to LinkedIn: Finally, the content is posted to LinkedIn.
  8. Aggregates Results: The results from all publishing actions are merged together.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running instance of n8n.
  • Google Gemini API Key: For the AI Agent to generate content.
  • Facebook Page: A Facebook page to which the workflow will post.
  • Facebook Graph API Credentials: Configured in n8n for your Facebook page.
  • X (formerly Twitter) Account: An X account for publishing.
  • X (Twitter) API Credentials: Configured in n8n for your X account.
  • LinkedIn Account/Page: A LinkedIn profile or company page for publishing.
  • LinkedIn API Credentials: Configured in n8n for your LinkedIn account.

Setup/Usage

  1. Import the Workflow: Download the provided JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Set up your Google Gemini Chat Model credentials.
    • Configure your Facebook Graph API credentials, ensuring they have the necessary permissions to post to your page.
    • Configure your X (Twitter) API credentials.
    • Configure your LinkedIn credentials.
  3. Activate the Workflow: Toggle the workflow to "Active" in n8n.
  4. Access the Form Trigger: The "On form submission" node will provide a webhook URL. You can use this URL to trigger the workflow by submitting data (e.g., a JSON payload with a topic field).
  5. Test the Workflow: Run the workflow manually with a test topic to ensure it generates and publishes content correctly to all configured social media platforms.

Related Templates

Create & publish affiliate product videos with Sora-2, GPT & YouTube

πŸš€ Affiliate AI-Powered Video Funnel Fully Automated Product Video Creation & Publishing Turn your affiliate links or product catalog into a 24/7 AI video marketing machine. This n8n workflow auto-creates human-presenter promo videos using AI and publishes them directly to YouTube with SEO β€” completely hands-free. βœ… --- 🎯 What This Automation Does πŸ”„ Fetches product or affiliate data from Google Sheets / Airtable / Database πŸŽ™οΈ Generates human-presenter video prompts (Sora-style) using AI Agents 🎬 Renders promotional videos automatically via AI video generation ⏳ Polls render completion & handles errors safely πŸ“€ Uploads videos to YouTube (draft, unlisted, or public) 🧠 Auto-generates SEO metadata (titles, descriptions, tags, hashtags) βœ… Human approval flow before public publishing πŸ“ Updates catalog status to prevent duplicates ⏱️ Runs daily, weekly, or per request via form or trigger This workflow eliminates all repetitive editing, uploading, and SEO work β€” your channel grows while you sleep. πŸ˜΄πŸ“ˆ --- πŸ§‘β€πŸ« Step-by-Step Video Tutorial πŸŽ₯ Complete Implementation Demo πŸ‘‰ https://youtu.be/pOxcVbYdr0w πŸ“Œ Covers full setup, rendering, approval, publishing, and automation scheduling. --- 🌐 Useful Links πŸ› οΈ n8n Hosting / Setup Support: https://syncbricks.com πŸ“š YouTube Data API Docs: https://developers.google.com/youtube/v3 πŸ€– Kai / AI Render Service: (any Sora-style provider you choose)* 🧠 AI Prompt Docs (OpenAI etc.): https://platform.openai.com/docs/api-reference --- πŸ›  Prerequisites βœ… n8n (Self-Hosted or Cloud) βœ… AI Agent inside n8n configured βœ… YouTube API credentials βœ… Product/Affiliate data source: Google Sheets OR Airtable OR Database βœ… AI Video Rendering: Sora-style provider API πŸ“ Recommended product fields: > Title, Summary, Brand, Landing Page, Affiliate Link (if using monetization) --- πŸ“‹ How This Workflow Works β€” Step by Step 1️⃣ Product Input & Filtering Fetch unpublished product/item Skip rows marked β€œPublished” or with error codes Ideal for drip publishing content every day 2️⃣ AI Promo Script + Presenter Prompt Converts product benefits β†’ human script Adds overlays + camera movement + style cues Presenter looks professional, friendly & trusted 3️⃣ AI Video Rendering Send prompt, wait for result Retry & timeout safety built-in 4️⃣ YouTube Upload Uploads automatically as Unlisted βœ… Sends Human-In-The-Loop (HITL) approval After approval β†’ Public Publish 5️⃣ SEO Enhancement Generates tags, hashtags & optimized titles Inserts affiliate link into description Updates video via YouTube API 6️⃣ Mark As Published Saves record in sheet/db Avoids duplicate publishing --- πŸ’° Affiliate / Monetization Features πŸ›’ Add PartnerStack / Amazon Associates links πŸ”— Auto-insert affiliate URLs per product 🧩 Optional dynamic UTM tracking πŸ“ˆ Ready for performance dashboards (CTR, views) You create zero videos, yet grow daily affiliate revenue. πŸ”₯ --- πŸ’‘ Advanced Customizations | Idea | Benefit | | ------------------------------- | ------------------------------- | | Multi-platform publishing | Expand reach beyond YouTube | | Multi-language voice & captions | Increase global audience | | Category-based styles | Better storytelling per product | | Bulk overnight generation | Boost weekly content output | | Analytics integration | Track growth & ROI easily | --- ⚠️ Troubleshooting | Issue | Fix | | ----------------- | ------------------------------ | | No video returned | Check AI render provider quota | | Upload fails | Verify YouTube OAuth scopes | | Duplicate uploads | Confirm Published tag update | | Video quality | Adjust prompt style profile | --- πŸ™Œ Why This Template You can scale affiliate & product-based video content without editing tools, creators, or extra headcount: βœ… Saves hours per video βœ… Builds traffic and trust automatically βœ… Generates recurring affiliate income βœ… Turns your product list into a money-making content engine --- πŸš€ Get Started in Minutes Import the workflow β†’ Connect APIs β†’ Approve β†’ Publish β†’ Earn πŸ’Έ πŸ‘‰ More AI + n8n Workflows & Support https://syncbricks.com πŸ‘‰ Subscribe for Tutorials https://youtube.com/@syncbricks πŸ‘‰ Connect with the creator (Amjid Ali) https://linkedin.com/in/amjidali --- πŸ”– Knowledge Base Tags aivideoautomation, affiliatemarketing, youtubeapi, handsfreeautomation, ecommercevideomarketing, n8naiagents, socialvideoautomation, productvideogenerator, workflowautomation, marketing_scaling

Amjid AliBy Amjid Ali
292

PartnerStack/Impact β†’ WooCommerce product creation with GPT-4 & AI images

πŸš€ PartnerStack/Impact β†’ WooCommerce (AI-Powered Product Automation) Turn affiliate programs into fully published WooCommerce productsβ€”on autopilot. This n8n template pulls offers from PartnerStack/Impact (or your own links), generates SEO copy and images with AI, and publishes External products to WordPress/WooCommerceβ€”hands-free. --- 🎯 What This Automation Does ⏰ Runs on a schedule (e.g., daily at 10:00 or every 3 days) πŸ“„ Reads rows from Google Sheets (your affiliate product registry) πŸ”— Inserts your affiliate link (PartnerStack/Impact/CJ or manual) 🌐 Fetches product/landing page and parses key details πŸ€– Uses AI to create product title, short & long HTML description πŸ–ΌοΈ Creates a product image from an AI image prompt πŸ—‚οΈ Uploads media to WordPress, sets alt/title/caption πŸ›’ Creates a WooCommerce External product via REST API 🏷️ Applies category by ID and sets the featured image βœ… Marks the row as published to avoid duplicates 🧯 Graceful error handling (failed fetches are flagged & skipped next run) πŸ›’ Output of Wordpress Website Product: [](https://brenttechnologies.com/) --- πŸ§‘β€πŸ« Step-by-Step Video Tutorial πŸŽ₯ Watch the implementation tutorial: [](https://youtu.be/Pifwn32vlQk) πŸ“Œ Live demo: schedule, sheet β†’ product, AI copy/image, REST publish. --- 🌐 Useful Links πŸ”— Start with n8n (Cloud or Self-hosted): πŸ‘‰ https://n8n.io | Guide: https://syncbricks.com/self-hosting-n8n-on-ubuntu-24-04-a-step-by-step-guide/ 🧠 OpenAI API (text + image): πŸ‘‰ https://platform.openai.com/docs 🀝 PartnerStack: πŸ‘‰ https://partnerstack.com πŸ“„ Google Sheets API: πŸ‘‰ https://developers.google.com/sheets/api --- πŸ›  Prerequisites βœ… n8n (self-hosted or Cloud) βœ… WordPress + WooCommerce with REST API enabled βœ… WordPress Application Password / API credential with media & products scope βœ… OpenAI (or your preferred AI) API key βœ… Google Sheet with minimum columns: AdvertiserIdandCompaignID (unique key) AdvertiserUrl (merchant/product URL) TrackingLink (your affiliate URL) Brand partner_status (e.g., β€œActive”) product_published (Yes/blank) error (Yes/blank) --- πŸ“‹ Step-by-Step Implementation 1️⃣ Scheduling & Intake Add a Schedule Trigger (daily, every 3 days, or your cadence). Google Sheets β†’ Read: pull rows from your β€œimpact/partnerstack” tab. Filter rows: partnerstatus = Active AND productpublished != Yes AND error != Yes. Limit to 1 per run (safe scaling). Increase later if needed. 2️⃣ Product Discovery & Parsing HTTP Request the AdvertiserUrl to fetch the landing/product page. Parse title/meta/summary; continue on error and flag failures (so runs don’t break). 3️⃣ AI Content Generation Agent 1 – Basics: Product Name, Short Description, Category ID mapping (match your Woo categories). Agent 2 – Long Form: SEO-ready HTML description (H2/H3, bullets, features, benefits, target users, technical highlights). Agent 3 – Image Prompt: Generate a clean product-hero prompt; then AI Image generation. 4️⃣ Media Handling Upload media to WordPress (/wp/v2/media) with title/alt/caption and proper content-type. Capture the media ID for the next step. 5️⃣ WooCommerce Product Creation Create product via POST /wc/v3/products with: type: "external" name, short_description, description external_url: TrackingLink button_text: "Sign Up" (or β€œBuy Now” / β€œGet It Now”) status: "publish" (or β€œdraft” if you want manual review) Attach featured image with the uploaded media ID. Set categories by ID (ensure your mapping is correct). 6️⃣ Post-Publish Updates Update the Google Sheet row using the unique key (AdvertiserIdandCompaignID): product_published = Yes Clear/reset any transient error flags. 7️⃣ Error Handling & Idempotency If fetch fails (e.g., Cloudflare/Turnstile), mark error = Yes and skip that row next run. Filter excludes error = Yes and already-published rowsβ€”no accidental duplicates. --- πŸ’° Optional Monetization & Distribution Blog & Social: Add branches to generate a blog article, LinkedIn/Twitter posts from the same product data. Video: Create a short promo video (Sora/Gen-AI) and auto-schedule to TikTok/YouTube/Instagram. Email: Trigger a campaign (e.g., Brevo/Mailchimp) for new products added this week. --- πŸ’‘ Advanced Customizations Draft workflow: publish products as draft for human QA. Category Mapper: expand the category ID table to fit your Woo taxonomy. Image sizing: add an optional resize/optimize node before upload. Batching: remove the Limit node to publish multiple products per run (respect rate limits). Per-brand theming: vary prompts (tone/structure) based on Brand column. --- 🧰 Troubleshooting | Issue | Fix | | ----------------------------- | ---------------------------------------------------------------------------------------- | | WordPress 401/403 | Re-create Application Password; ensure correct base URL & permalinks | | Image upload fails | Check content-type & binary upload settings; verify max upload size on server | | Product lacks image/category | Confirm media ID capture & category ID mapping | | Duplicate items | Ensure product_published is set to Yes after success; keep Limit node during testing | | Fetch errors on merchant site | Keep β€œcontinue on error”; route to set error = Yes, then review manually | --- πŸ™Œ Why Use This Template ⏱️ Saves hours of manual listing work πŸ“ˆ SEO-consistent product pages every time 🧠 AI-quality copy & images with your tone πŸ”— Affiliate link everywhere, fully tracked πŸ› οΈ Extensible to blog, social, video, and email --- πŸš€ Get Started Now Import the template β†’ Connect credentials β†’ Point to your Sheet β†’ Run once β†’ Enable schedule. Need help or a DFY build? SyncBricks can implement and customize this for your stack. πŸ‘‰ Amjid Ali β€” https://linkedin.com/in/amjidali 🌐 Website β€” https://amjidali.com | https://syncbricks.com.au ▢️ YouTube β€” https://youtube.com/@syncbricks --- Knowledge Base: woocommerce-rest, partnerstack, impact, affiliate-automation, openai, n8n, google-sheets, content-generation, image-generation, wordpress-api, creator-hub

Amjid AliBy Amjid Ali
101

AI-driven lead management and inquiry automation with ERPNext & n8n

Overview This workflow template automates lead management and customer inquiry processing by integrating ERPNext, AI agents, and email notifications. It streamlines the process of capturing leads, analyzing inquiries, and generating actionable responses. The workflow uses ERPNext to capture inquiries, analyzes them with AI, and notifies the appropriate team or individual, all while maintaining a professional approach. --- What This Template Does ERPNext Webhook Integration: Captures leads and inquiries through ERPNext webhooks. Triggers the workflow when a new lead is created. AI-Powered Inquiry Analysis: Uses AI to extract key details from lead notes (e.g., customer name, organization, inquiry summary). Classifies inquiries as valid or invalid based on relevance to products, services, or solutions. Contact Assignment: Matches inquiries to the appropriate contact(s) using a Google Sheets database or ERPNext contact information. Handles multiple contacts if required. Email Notifications: Generates professional email notifications for valid inquiries. Sends emails to the appropriate contact(s) with inquiry details and action steps. Invalid Lead Handling: Identifies invalid inquiries (e.g., unrelated to products or services) and flags them for follow-up or dismissal. Custom Email Formatting: Converts plain text into professionally formatted HTML emails. Ensures that communication is clear, concise, and visually appealing. --- How It Works Step 1: Capture Lead Data Webhook in ERPNext: Create a webhook in ERPNext for the "Lead" DocType. Set the trigger to on_insert to capture new leads in real-time. Lead Details: The workflow fetches lead details, including notes, contact information, and the source of the lead. Step 2: Validate and Analyze Inquiry AI Agent for Analysis: An AI agent analyzes the lead notes to extract key details and classify the inquiry as valid or invalid. The analysis includes checking the relevance of the inquiry to products, services, or solutions offered by the company. Invalid Leads: If the inquiry is invalid, the workflow flags it and stops further processing. Step 3: Assign Contact(s) Google Sheets Integration: Uses a Google Sheets database to map products, services, or solutions to responsible contacts. Ensures that inquiries are directed to the right person or team. Multiple Contacts: Handles cases where multiple contacts are responsible for a particular product or service. Step 4: Generate and Send Email Notifications AI-Generated Emails: The workflow generates a professional email summarizing the inquiry. Emails include details like customer name, organization, inquiry summary, and action steps. Custom HTML Formatting: Emails are converted to HTML for a polished and professional appearance. Send Notifications: Sends email notifications through Microsoft Outlook or another configured email client. Optionally, notifies via WhatsApp or SMS for urgent inquiries. Step 5: Post-Inquiry Actions ERPNext Record Updates: Updates the lead record in ERPNext with relevant details, including inquiry status and contact information. --- Setup Instructions Prerequisites ERPNext: A configured ERPNext instance with lead data and a webhook for the "Lead" DocType. Google Sheets: A sheet mapping products, services, or solutions to responsible contacts. AI Integration: Credentials for OpenAI or other supported AI platforms. Email Client: Credentials for Microsoft Outlook or another email client. --- Step-by-Step Setup ERPNext Configuration: Create a webhook for the "Lead" DocType in ERPNext. Test the webhook with sample data to ensure proper integration. Workflow Import: Import the workflow template into n8n. Configure nodes with your API credentials for ERPNext, Google Sheets, and AI tools. Google Sheets Integration: Prepare a Google Sheet with columns for product, service, or solution and the responsible contact(s). Link the sheet to the workflow. AI Agent Configuration: Customize the AI agent’s prompts to align with your business’s products and services. Adjust criteria for valid and invalid inquiries as needed. Email Setup: Configure the email client node with your email service credentials. Customize the email template for your organization. Testing: Run the workflow with sample leads to validate the entire process. Check email notifications, contact assignments, and record updates in ERPNext. --- Dos and Don’ts Dos: Test Thoroughly: Test the workflow with various scenarios before deploying in production. Secure Credentials: Keep API and email credentials secure to avoid unauthorized access. Customize Prompts: Tailor AI prompts to match your business needs and language style. Use Professional Email Templates: Ensure emails are clear and well-formatted. Don’ts: Skip Validation: Always validate inquiry data to avoid sending irrelevant notifications. Overload the Workflow: Avoid adding unnecessary nodes that can slow down processing. Ignore Errors: Monitor logs and address errors promptly for a smooth workflow. --- Resources GET n8n Now N8N COURSE n8n Book YouTube Tutorial: Watch the full step-by-step tutorial on setting up this workflow: SyncBricks YouTube Channel Courses and Training: Learn more about ERPNext and AI automation through my comprehensive courses: SyncBricks LMS Support and Contact: Email: amjid@amjidali.com Website: SyncBricks LinkedIn: Amjid Ali

Amjid AliBy Amjid Ali
6266