AutomationFlowsSocial Media › Content Publishing - Blog to Social

Content Publishing - Blog to Social

Content Publishing - Blog to Social. Uses filesWatcher, readFile, httpRequest, twitter. Manual trigger; 8 nodes.

Manual trigger★★★☆☆ complexity8 nodesFiles WatcherRead FileHTTP RequestTwitterFacebookEmail SendMongoDB
Social Media Trigger: Manual Nodes: 8 Complexity: ★★★☆☆ Added:

This workflow follows the Emailsend → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Content Publishing - Blog to Social",
  "nodes": [
    {
      "parameters": {
        "triggerOn": "specificFolder",
        "folderToWatch": "blog-posts",
        "event": "fileAdded"
      },
      "id": "file-watcher",
      "name": "Watch for New Blog Posts",
      "type": "n8n-nodes-base.filesWatcher",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "operation": "read",
        "filePath": "={{$json[\"path\"]}}"
      },
      "id": "read-blog-post",
      "name": "Read Blog Post",
      "type": "n8n-nodes-base.readFile",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.openai.com/v1/chat/completions",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "openAiApi",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={\"model\": \"gpt-4\", \"messages\": [{\"role\": \"system\", \"content\": \"Generate SEO meta description (155 chars) for this blog post.\"}, {\"role\": \"user\", \"content\": \"{{$json[\"data\"]}}\"}]}"
      },
      "id": "generate-meta-description",
      "name": "Generate SEO Meta Description",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        650,
        200
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.openai.com/v1/chat/completions",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "openAiApi",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={\"model\": \"gpt-4\", \"messages\": [{\"role\": \"system\", \"content\": \"Create 3 social media snippets (Twitter, Instagram, LinkedIn) from this blog post. Keep each under character limits.\"}, {\"role\": \"user\", \"content\": \"{{$json[\"data\"]}}\"}]}"
      },
      "id": "generate-social-snippets",
      "name": "Generate Social Media Snippets",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "operation": "create",
        "resource": "tweet",
        "text": "={{$json[\"twitter_snippet\"]}}",
        "additionalFields": {
          "url": "={{$json[\"blog_url\"]}}"
        }
      },
      "id": "post-to-twitter",
      "name": "Post to Twitter",
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 2,
      "position": [
        850,
        200
      ]
    },
    {
      "parameters": {
        "operation": "create",
        "resource": "post",
        "pageId": "rohimaya-page-id",
        "message": "={{$json[\"facebook_snippet\"]}}",
        "additionalFields": {
          "link": "={{$json[\"blog_url\"]}}"
        }
      },
      "id": "post-to-facebook",
      "name": "Post to Facebook",
      "type": "n8n-nodes-base.facebook",
      "typeVersion": 1,
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "operation": "sendTemplate",
        "fromEmail": "blog@rohimayapublishing.com",
        "toEmail": "={{$json[\"subscriber_email\"]}}",
        "template": "new-blog-post",
        "templateVariables": {
          "post_title": "={{$json[\"title\"]}}",
          "post_excerpt": "={{$json[\"excerpt\"]}}",
          "post_url": "={{$json[\"blog_url\"]}}"
        }
      },
      "id": "email-subscribers",
      "name": "Email Subscribers",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2,
      "position": [
        850,
        400
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "collection": "rss-feed",
        "document": {
          "title": "={{$json[\"title\"]}}",
          "description": "={{$json[\"meta_description\"]}}",
          "link": "={{$json[\"blog_url\"]}}",
          "pubDate": "={{$now}}",
          "author": "={{$json[\"author\"]}}"
        }
      },
      "id": "update-rss-feed",
      "name": "Update RSS Feed",
      "type": "n8n-nodes-base.mongodb",
      "typeVersion": 1,
      "position": [
        850,
        500
      ]
    }
  ],
  "connections": {
    "Watch for New Blog Posts": {
      "main": [
        [
          {
            "node": "Read Blog Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Blog Post": {
      "main": [
        [
          {
            "node": "Generate SEO Meta Description",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Social Media Snippets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Social Media Snippets": {
      "main": [
        [
          {
            "node": "Post to Twitter",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post to Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email Subscribers",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update RSS Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {},
  "versionId": "1",
  "tags": [
    "content",
    "blog",
    "social-media"
  ]
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Content Publishing - Blog to Social. Uses filesWatcher, readFile, httpRequest, twitter. Manual trigger; 8 nodes.

Source: https://github.com/HPagade/rohimaya-publishing-website/blob/6c48414f8c89927c74fa7fa7d5c6893653aa5f34/n8n-workflows/content-publishing.json — original creator credit. Request a take-down →

More Social Media workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Social Media

This workflow monitors brand mentions across multiple platforms (Twitter/X, Reddit, News) and automatically detects reputation crises based on sentiment analysis and trend detection. Multi-platform mo

Twitter, Reddit, HTTP Request +3
Social Media

Book Publishing Automation - Rohimaya. Uses emailSend, httpRequest, twitter, supabase. Webhook trigger; 7 nodes.

Email Send, HTTP Request, Twitter +1
Social Media

WordPress to Social Media Auto-Post. Uses twitter, facebook, httpRequest. Webhook trigger; 6 nodes.

Twitter, Facebook, HTTP Request
Social Media

• RSS feed monitors your blog for new posts automatically • Extracts and cleans full article content from the blog post • AI Chain (GPT-4o) transforms content into 5 platform-optimized formats (Linked

RSS Feed Read, HTTP Request, Chain Llm +6
Social Media

Automatically discovers trending topics in your niche and generates ready-to-use content ideas with AI. Twitter/X trending topics and hashtags Reddit hot posts from niche subreddits Google Trends dail

HTTP Request, Email Send, Slack +1