{
  "openruna_format": "flow-graph-v1",
  "title": "✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition",
  "slug": "automated-social-media-content-publishing-factory-system-prompt-composition",
  "source_filename": "1342_Linkedin_Telegram_Automate_Webhook.json",
  "nodes": [
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "X-Twiter",
      "name": "X-Twiter",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Instagram",
      "name": "Instagram",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "When Executed by Another Workflow",
      "name": "When Executed by Another Workflow",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Facebook",
      "name": "Facebook",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "LinkedIn",
      "name": "LinkedIn",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Short",
      "name": "Short",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "YouTube Short",
      "name": "YouTube Short",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "pollinations.ai1",
      "name": "pollinations.ai1",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Save Image to imgbb.com",
      "name": "Save Image to imgbb.com",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Gmail",
      "name": "Gmail",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Social Media Schema",
      "name": "Social Media Schema",
      "integration": "googleDocs",
      "kind": "action"
    },
    {
      "id": "Social Media System Prompt",
      "name": "Social Media System Prompt",
      "integration": "googleDocs",
      "kind": "action"
    },
    {
      "id": "gpt-40-mini",
      "name": "gpt-40-mini",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Instagram Image",
      "name": "Instagram Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "X Post",
      "name": "X Post",
      "integration": "twitter",
      "kind": "action"
    },
    {
      "id": "Instragram Post",
      "name": "Instragram Post",
      "integration": "facebookGraphApi",
      "kind": "action"
    },
    {
      "id": "Facebook Post",
      "name": "Facebook Post",
      "integration": "facebookGraphApi",
      "kind": "action"
    },
    {
      "id": "LinkedIn Post",
      "name": "LinkedIn Post",
      "integration": "linkedIn",
      "kind": "action"
    },
    {
      "id": "Gmail User for Approval",
      "name": "Gmail User for Approval",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Get Social Post Image",
      "name": "Get Social Post Image",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "gpt-40-mini1",
      "name": "gpt-40-mini1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "gpt-4o-mini",
      "name": "gpt-4o-mini",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Schema",
      "name": "Schema",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "System Prompt",
      "name": "System Prompt",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Parse Schema",
      "name": "Parse Schema",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Parse System Prompt",
      "name": "Parse System Prompt",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Compose Prompt & Schema",
      "name": "Compose Prompt & Schema",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Social Media Content Creator",
      "name": "Social Media Content Creator",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Merge Prompts and Schema",
      "name": "Merge Prompts and Schema",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Social Content",
      "name": "Social Content",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Save Image to Google Drive",
      "name": "Save Image to Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Save Social Post to Google Drive",
      "name": "Save Social Post to Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Google Drive Image Meta",
      "name": "Google Drive Image Meta",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Social Post JSON",
      "name": "Social Post JSON",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Respond with Google Drive Id",
      "name": "Respond with Google Drive Id",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Telegram Success Message (Optional)",
      "name": "Telegram Success Message (Optional)",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Telegram Error Message (Optional)",
      "name": "Telegram Error Message (Optional)",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Social Media Publishing Router",
      "name": "Social Media Publishing Router",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Prepare Email Contents",
      "name": "Prepare Email Contents",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Is Approved?",
      "name": "Is Approved?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "File Id",
      "name": "File Id",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Social Post from Google Drive",
      "name": "Get Social Post from Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Extract as JSON",
      "name": "Extract as JSON",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Merge Image and Post Contents",
      "name": "Merge Image and Post Contents",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Implement Threads Here",
      "name": "Implement Threads Here",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Implement YouTube Shorts Here",
      "name": "Implement YouTube Shorts Here",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "X Response",
      "name": "X Response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Instagram Response",
      "name": "Instagram Response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Facebook Response",
      "name": "Facebook Response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "LinkedIn Response",
      "name": "LinkedIn Response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "🤖Social Media Router Agent",
      "name": "🤖Social Media Router Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "SerpAPI",
      "name": "SerpAPI",
      "integration": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "kind": "action"
    },
    {
      "id": "Prepare Social Media Email Contents",
      "name": "Prepare Social Media Email Contents",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "gpt-4o",
      "name": "gpt-4o",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "Prepare Social Media Email Contents"
    },
    {
      "from": "Merge",
      "to": "Google Drive Image Meta"
    },
    {
      "from": "Schema",
      "to": "Parse Schema"
    },
    {
      "from": "X Post",
      "to": "X Response"
    },
    {
      "from": "File Id",
      "to": "Get Social Post from Google Drive"
    },
    {
      "from": "Is Approved?",
      "to": "Get Social Post Image"
    },
    {
      "from": "Parse Schema",
      "to": "Merge Prompts and Schema"
    },
    {
      "from": "Facebook Post",
      "to": "Facebook Response"
    },
    {
      "from": "LinkedIn Post",
      "to": "LinkedIn Response"
    },
    {
      "from": "System Prompt",
      "to": "Parse System Prompt"
    },
    {
      "from": "Social Content",
      "to": "pollinations.ai1"
    },
    {
      "from": "Extract as JSON",
      "to": "Merge Image and Post Contents"
    },
    {
      "from": "Extract as JSON",
      "to": "Prepare Email Contents"
    },
    {
      "from": "Instagram Image",
      "to": "Instragram Post"
    },
    {
      "from": "Instragram Post",
      "to": "Instagram Response"
    },
    {
      "from": "Social Post JSON",
      "to": "Save Social Post to Google Drive"
    },
    {
      "from": "pollinations.ai1",
      "to": "Telegram Success Message (Optional)"
    },
    {
      "from": "pollinations.ai1",
      "to": "Save Image to imgbb.com"
    },
    {
      "from": "pollinations.ai1",
      "to": "Save Image to Google Drive"
    },
    {
      "from": "pollinations.ai1",
      "to": "Merge"
    },
    {
      "from": "pollinations.ai1",
      "to": "Telegram Error Message (Optional)"
    },
    {
      "from": "Parse System Prompt",
      "to": "Merge Prompts and Schema"
    },
    {
      "from": "Social Media Schema",
      "to": "Schema"
    },
    {
      "from": "Get Social Post Image",
      "to": "Merge Image and Post Contents"
    },
    {
      "from": "Prepare Email Contents",
      "to": "Gmail User for Approval"
    },
    {
      "from": "Compose Prompt & Schema",
      "to": "Social Media Content Creator"
    },
    {
      "from": "Gmail User for Approval",
      "to": "Is Approved?"
    },
    {
      "from": "Google Drive Image Meta",
      "to": "Social Post JSON"
    },
    {
      "from": "Save Image to imgbb.com",
      "to": "Merge"
    },
    {
      "from": "Merge Prompts and Schema",
      "to": "Compose Prompt & Schema"
    },
    {
      "from": "Save Image to Google Drive",
      "to": "Merge"
    },
    {
      "from": "Social Media System Prompt",
      "to": "System Prompt"
    },
    {
      "from": "When chat message received",
      "to": "🤖Social Media Router Agent"
    },
    {
      "from": "Social Media Content Creator",
      "to": "Social Content"
    },
    {
      "from": "Merge Image and Post Contents",
      "to": "Social Media Publishing Router"
    },
    {
      "from": "🤖Social Media Router Agent",
      "to": "File Id"
    },
    {
      "from": "Social Media Publishing Router",
      "to": "X Post"
    },
    {
      "from": "Social Media Publishing Router",
      "to": "Instagram Image"
    },
    {
      "from": "Social Media Publishing Router",
      "to": "Facebook Post"
    },
    {
      "from": "Social Media Publishing Router",
      "to": "LinkedIn Post"
    },
    {
      "from": "Social Media Publishing Router",
      "to": "Implement Threads Here"
    },
    {
      "from": "Social Media Publishing Router",
      "to": "Implement YouTube Shorts Here"
    },
    {
      "from": "Save Social Post to Google Drive",
      "to": "Respond with Google Drive Id"
    },
    {
      "from": "Get Social Post from Google Drive",
      "to": "Extract as JSON"
    },
    {
      "from": "When Executed by Another Workflow",
      "to": "Social Media System Prompt"
    },
    {
      "from": "When Executed by Another Workflow",
      "to": "Social Media Schema"
    },
    {
      "from": "When Executed by Another Workflow",
      "to": "Merge Prompts and Schema"
    },
    {
      "from": "Prepare Social Media Email Contents",
      "to": "Gmail"
    }
  ]
}