Back to Catalog

✨🩷Automated social media content publishing factory + system prompt composition

Joseph LePageJoseph LePage
71532 views
2/3/2026
Official Page

Social Media Content Publishing Factory for Streamlined Content Creation Across Platforms

Who is this for?

This workflow is designed for content creators, social media managers, and marketing teams who need to efficiently create and publish content across multiple social media platforms. It's perfect for businesses looking to maintain a consistent presence across X (Twitter), Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts without spending hours crafting platform-specific content manually.

What problem is this workflow solving?

Creating tailored content for different social media platforms is time-consuming and requires understanding each platform's unique requirements and audience expectations. This workflow solves the challenge of:

  • Maintaining consistent messaging across platforms while respecting platform-specific formats
  • Generating optimized content that follows best practices for each platform
  • Creating accompanying visuals without graphic design skills
  • Streamlining the approval process before publishing
  • Reducing the time spent on repetitive content creation tasks

What this workflow does

This automated content factory takes your content idea and transforms it into platform-optimized posts for all major social media channels. The workflow:

  1. Accepts your content idea or topic through a chat interface
  2. Leverages AI to generate tailored content for each platform (X/Twitter, Instagram, Facebook, LinkedIn, Threads, YouTube Shorts)
  3. Creates appropriate images using AI image generation
  4. Sends content for approval via email before publishing
  5. Publishes approved content to selected platforms
  6. Maintains chat memory to improve future content generation

Setup

  1. Connect your social media platform credentials (X/Twitter, Instagram, Facebook, LinkedIn)
  2. Set up your email account for the approval process
  3. Configure your OpenAI API key for AI content generation
  4. Update the image generation service credentials (Pollinations.ai is used by default)
  5. Customize the system prompts and schemas in the Google Docs nodes with your brand voice and content requirements

How to customize this workflow to your needs

  • Modify the system prompts in the Google Docs nodes to match your brand voice and content strategy
  • Adjust the social media schemas to include specific fields relevant to your content
  • Update the approval process to include additional stakeholders if needed
  • Add or remove social media platforms based on your marketing strategy
  • Customize the image generation prompts to better match your visual branding
  • Integrate with your existing content calendar or CRM systems

This workflow eliminates the need to manually craft different versions of the same content for each platform, saving hours of work while ensuring your social media presence remains consistent and optimized for maximum engagement.

n8n Automated Social Media Content Publishing Factory - System Prompt Composition

This n8n workflow acts as an automated factory for generating and publishing social media content. It leverages AI agents to compose system prompts, which can then be used to create diverse content for various platforms. The workflow focuses on the initial prompt composition phase, allowing for human review and conditional routing before content generation and publishing.

Description

This workflow streamlines the process of creating system prompts for AI-driven content generation. It allows for dynamic prompt creation, human-in-the-loop review via Telegram, and conditional routing to different content generation or publishing paths based on the prompt's approval status. This enables a flexible and controlled content creation pipeline.

What it does

  1. Triggers on Chat Message: The workflow starts when a chat message is received, likely initiating the prompt generation process.
  2. Composes System Prompt with AI Agent: An AI Agent is used to generate a system prompt, potentially leveraging a simple memory and a Google Search tool (SerpAPI) for context.
  3. Sends Prompt for Human Review via Telegram: The generated system prompt is sent to a Telegram chat for human review and approval.
  4. Waits for Human Decision: The workflow pauses, waiting for a "yes" or "no" response from the human reviewer in Telegram.
  5. Conditional Routing based on Approval:
    • If Approved (Yes): The workflow proceeds to a "No Operation" node, indicating that the approved prompt is ready for further processing (e.g., content generation, publishing).
    • If Rejected (No): The workflow also proceeds to a "No Operation" node, implying that the rejected prompt might be discarded or sent back for revision.
  6. Merges Paths: Both the approved and rejected paths merge into a single "Merge" node, allowing the workflow to continue or end gracefully.
  7. Optional Content Generation/Publishing (Not Fully Implemented in this JSON): While the JSON shows nodes for Facebook Graph API, X (formerly Twitter), Gmail, LinkedIn, Google Drive, and Google Docs, these are currently isolated and not directly connected to the main prompt composition flow. They represent potential subsequent steps for content publishing or storage once a prompt is approved and content is generated.
  8. Internal Workflow Calls: The workflow includes an "Execute Workflow Trigger" node, suggesting it might be part of a larger, modular system where this workflow composes prompts for other workflows to consume.

Prerequisites/Requirements

  • n8n Instance: A running n8n instance.
  • Telegram Account & Bot: For sending and receiving approval messages.
  • OpenAI API Key: For the OpenAI Chat Model used by the AI Agent.
  • SerpAPI Key: For the SerpAPI (Google Search) tool used by the AI Agent to gather information.
  • Google Drive/Docs Credentials (Optional): If you plan to expand the workflow to store or retrieve content from Google services.
  • Facebook Graph API Credentials (Optional): If you plan to expand the workflow to publish to Facebook.
  • X (formerly Twitter) Credentials (Optional): If you plan to expand the workflow to publish to X.
  • Gmail Credentials (Optional): If you plan to expand the workflow to send emails.
  • LinkedIn Credentials (Optional): If you plan to expand the workflow to publish to LinkedIn.

Setup/Usage

  1. Import the workflow: Download the JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Set up your Telegram Bot credentials.
    • Configure your OpenAI API Key for the "OpenAI Chat Model" node.
    • Set up your SerpAPI Key for the "SerpAPI (Google Search)" node.
    • (Optional) Configure credentials for Google Drive, Google Docs, Facebook Graph API, X, Gmail, and LinkedIn if you intend to extend the workflow for publishing or storage.
  3. Activate the Workflow: Enable the workflow in your n8n instance.
  4. Initiate with a Chat Message: Send a chat message to your configured Telegram bot to trigger the workflow and begin the prompt composition process.
  5. Review in Telegram: Monitor your Telegram chat for the generated system prompt and respond with "yes" or "no" for approval.
  6. Extend the Workflow: Connect the "No Operation, do nothing" nodes (after the "If" node) to your desired content generation and publishing nodes (e.g., Facebook, X, Google Docs) to complete your social media content factory.

Related Templates

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

Daniel NkenchoBy Daniel Nkencho
601

AI-powered code review with linting, red-marked corrections in Google Sheets & Slack

Advanced Code Review Automation (AI + Lint + Slack) Who’s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting β€” all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0–10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow β€” reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why it’s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n β€” combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.

higashiyama By higashiyama
90

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.

gotoHumanBy gotoHuman
353