Ai-powered social media content generator & publisher
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
π 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:
- Triggers on Form Submission: It starts when a user submits a form, providing a topic for the social media post.
- Generates Social Media Content with AI: An AI Agent, powered by Google Gemini, takes the provided topic and generates a social media post.
- 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.
- Prepares Content for Publishing: The extracted content is formatted and prepared for distribution, potentially adding or modifying fields.
- Publishes to Facebook: The generated content is posted to a Facebook page using the Facebook Graph API.
- Publishes to X (formerly Twitter): The content is also posted to X (Twitter).
- Publishes to LinkedIn: Finally, the content is posted to LinkedIn.
- 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
- Import the Workflow: Download the provided JSON and import it into your n8n instance.
- 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.
- Activate the Workflow: Toggle the workflow to "Active" in n8n.
- 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
topicfield). - 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
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
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