⬡ Hub
Skip to content

1_social_media_scheduler

1. AI-Powered Social Media Content Scheduler

Description

This n8n workflow automatically generates and posts content to your social media channels (e.g., Twitter/X) on a recurring schedule. It fetches inspiration from an RSS feed, uses a Large Language Model (LLM) to generate an engaging post, and then publishes it.

Architecture

graph TD
    A[Schedule Trigger] --> B{RSS Feed};
    B --> C{AI Agent LLM};
    C --> D[Post to Social Media];

Setup

  1. Import Workflow: Import the workflow.json file into your n8n instance.
  2. Configure Trigger: In the "Run Daily" node, set the time and frequency for your posts.
  3. Set RSS Feed: In the "Fetch RSS Feed" node, paste the URL of the RSS feed you want to use for content ideas.
  4. Configure LLM:
    • In the "Generate Post Content" node, replace the placeholder URL with the API endpoint of your chosen LLM.
    • Under "Authentication," select "Header Auth."
    • Create a new credential for "Generic Auth Header":
      • Header Name: Authorization
      • Header Value: Bearer {{ YOUR_LLM_API_KEY }} (replace with your actual key).
    • Update the JSON body of the request to match the API specification of your LLM. The current template is a generic example.
  5. Configure Social Media:
    • In the "Post to Twitter" node, create or select your Twitter/X credentials.
    • Customize the "Text" field if needed. It is pre-filled with the output from the LLM node.

Execution

  • This workflow is triggered by a schedule. Once activated, it will run automatically at the configured time.
  • You can also run it manually from the n8n editor by clicking the "Execute Workflow" button.

Files and Subdirectories