{
  "name": "Social Media Content Generation Posting Agent n8n",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -1504,
        1536
      ],
      "id": "f91b8dc6-90f0-4e2d-8eef-fe67813f3f5e",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "person": "MRJZ0yiNi4",
        "text": "={{ $json.Content }}",
        "shareMediaCategory": "IMAGE",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.linkedIn",
      "typeVersion": 1,
      "position": [
        -176,
        2240
      ],
      "id": "3127450a-5b94-4ed7-8b97-1295e776320c",
      "name": "Create a post",
      "credentials": {
        "linkedInOAuth2Api": {
          "id": "kITS2XhzWcdTew33",
          "name": "LinkedIn account"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -1520,
        1984
      ],
      "id": "52f6e30a-7236-47a4-93fc-05dcdbbd88da",
      "name": "Schedule Trigger1"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        -1072,
        1984
      ],
      "id": "61800e6d-af38-493b-ab7e-a5851aa3fcce",
      "name": "Loop Over Items"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "=gpt-4o-mini",
          "mode": "id"
        },
        "messages": {
          "values": [
            {
              "content": "=Topic: {{ $json.Topic }}\nImage Short Description: {{ $json['Image short desc'] }}"
            },
            {
              "content": "=You are a creative social media content + Img Prompt generator.\nFrom the given Topic + Img Desc, generate unique content prompts and image prompts for three platforms: LinkedIn and Twitter.\n\nRules:\n1. LinkedIn → professional, informative, and slightly formal tone\n2. instagram → Visual, trendy, lifestyle-driven tone (focus on aesthetics, storytelling, emojis, hashtags, and relatability).\n3. Twitter → concise, witty, engaging\n\nFor each platform, also create a unique detailed image prompt with related social media platform for an AI image generator that matches the platform’s style.\n\nYou’ve restricted no emojis, no symbols (important for clean automation).\n\nReturn as JSON in this format:\n{\n \"linkedin\": {\n  \"content_prompt\": \"...\",\n  \"image_prompt\": \"...\"\n },\n \"twitter\": {\n  \"content_prompt\": \"...\",\n  \"image_prompt\": \"...\"\n }\n \"instagram\": {\n  \"content_prompt\": \"...\",\n  \"image_prompt\": \"...\"\n }\n}",
              "role": "system"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        -1056,
        1536
      ],
      "id": "5cacf3c3-d12e-4b64-894d-2e59b3fed942",
      "name": "Prompt Generate",
      "credentials": {
        "openAiApi": {
          "id": "zHTJ5AI7kBmTnuvv",
          "name": "InfyOm"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -1520,
        2704
      ],
      "id": "d7b67e23-fbc0-481e-abbe-3870a527522a",
      "name": "Schedule Trigger2"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $('Loop').item.json.Platform }}",
                    "rightValue": "LinkedIn",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "64b18a07-42d7-4828-aedf-8aa16faee561"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "LinkedIn"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "ac0e4c1e-7c1a-4882-a811-26c42eb8afd4",
                    "leftValue": "={{ $('Loop').item.json.Platform }}",
                    "rightValue": "Twitter",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Twitter"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "d4b3f0dd-e108-479b-b85f-ceabba119881",
                    "leftValue": "={{ $('Loop').item.json.Platform }}",
                    "rightValue": "Instagram",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "instragram"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        -176,
        1536
      ],
      "id": "4526399f-c9d4-48d2-8139-00a8c3dccc33",
      "name": "Check Platform"
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "LinkedIn Content ": "={{ $json.choices[0].message.content.LinkedIn.content }}",
            "LinkedIn images url": "={{ $('Image Generate').item.json.output[0].url }}",
            "Id": "={{$('Loop').item.json.id}}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Topic",
              "displayName": "Topic",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Image short desc",
              "displayName": "Image short desc",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images prompt",
              "displayName": "LinkedIn images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "displayName": "LinkedIn Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content Prompt",
              "displayName": "Instagram Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images prompt",
              "displayName": "Instagram images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images prompt",
              "displayName": "Twitter images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content Prompt",
              "displayName": "Twitter Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content ",
              "displayName": "LinkedIn Content ",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "displayName": "Instagram Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content",
              "displayName": "Twitter Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images url",
              "displayName": "Instagram images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images url",
              "displayName": "LinkedIn images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "displayName": "Twitter images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Prompt Status",
              "displayName": "Prompt Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Posting Status",
              "displayName": "Posting Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Posted Date",
              "displayName": "Posted Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Linkedin Post URL",
              "displayName": "Linkedin Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Post URL",
              "displayName": "Twitter Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Post URL",
              "displayName": "Instagram Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        272,
        1632
      ],
      "id": "03cfc86b-f6b9-401a-8532-031779201438",
      "name": "Append Likedin Data",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Id": "={{$('Loop').item.json.id}}",
            "Twitter Content": "={{ $json.choices[0].message.content.Twitter.content }}",
            "Prompt Status": "=Complete",
            "Posting Status": "Pending for Approval",
            "Twitter images url": "={{ $('Image Generate').item.json.output[0].url }}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Topic",
              "displayName": "Topic",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Image short desc",
              "displayName": "Image short desc",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images prompt",
              "displayName": "LinkedIn images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "displayName": "LinkedIn Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content Prompt",
              "displayName": "Instagram Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images prompt",
              "displayName": "Instagram images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images prompt",
              "displayName": "Twitter images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content Prompt",
              "displayName": "Twitter Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content ",
              "displayName": "LinkedIn Content ",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content",
              "displayName": "Instagram Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content",
              "displayName": "Twitter Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "displayName": "Instagram images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images url",
              "displayName": "LinkedIn images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images url",
              "displayName": "Twitter images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Prompt Status",
              "displayName": "Prompt Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "displayName": "Posting Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Posted Date",
              "displayName": "Posted Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Linkedin Post URL",
              "displayName": "Linkedin Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Post URL",
              "displayName": "Twitter Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Post URL",
              "displayName": "Instagram Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        272,
        1824
      ],
      "id": "ba412ffc-6a14-4aeb-abbc-b16135803e13",
      "name": "Append Twitter Data",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        -624,
        1984
      ],
      "id": "233155e2-597d-4b68-8c21-39bff935ad5c",
      "name": "Loop"
    },
    {
      "parameters": {
        "options": {
          "reset": false
        }
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        -848,
        2704
      ],
      "id": "05636017-f00a-4cad-8a2f-518989fa0a0c",
      "name": "Loop Over Items2"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.Platform }}",
                    "rightValue": "LinkedIn",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "cbf67090-0ec8-4839-99dc-ec536969a431"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "LinkedIn"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "a9241171-9902-439e-8418-cb16ffded1d2",
                    "leftValue": "={{ $json.Platform }}",
                    "rightValue": "Twitter",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Twitter"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "bb2d4d5a-bac9-4d83-92a6-2b27456a00c1",
                    "leftValue": "={{ $json.Platform }}",
                    "rightValue": "Instagram",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Instagram"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        -624,
        2320
      ],
      "id": "95db8343-3727-4c97-8c62-9dab5cccecbd",
      "name": "Switch According Platform"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.thehive.ai/api/v3/black-forest-labs/flux-schnell",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "authorization",
              "value": "Bearer api_key"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n \"input\": {\n  \"prompt\": \"{{ $json[\"Image Prompt\"] }}\",\n  \"image_size\": {\n   \"width\": 1024,\n   \"height\": 1024\n  },\n  \"num_inference_steps\": 15,\n  \"num_images\": 1,\n  \"seed\": 67,\n  \"output_format\": \"jpeg\",\n  \"output_quality\": 90\n }\n}",
        "options": {
          "redirect": {
            "redirect": {}
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -400,
        1552
      ],
      "id": "382dd94b-11d5-4381-8ec9-1f4b513fbd4b",
      "name": "Image Generate"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "=gpt-4o-mini",
          "mode": "id"
        },
        "messages": {
          "values": [
            {
              "content": "=content_prompt:{{$('Loop').item.json['Twitter content']}}"
            },
            {
              "content": "=You are a creative social media content generator.\nFrom the given content_prompt, generate unique content for this platform:{{$('Loop').item.json.Platform}}\nRules:\n\n{{$('Loop').item.json.Platform}}→ professional, informative, and slightly formal tone, concise, witty, engaging (280 characters or less))\n\nReturn as JSON in this format:\n{\n \"{{$('Loop').item.json.Platform}}\": {\n  \"content\": \"...\"\n }\n}",
              "role": "system"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        48,
        1552
      ],
      "id": "e2840885-e41c-423e-91ca-4b5028d1af77",
      "name": "Content for Twitter",
      "credentials": {
        "openAiApi": {
          "id": "zHTJ5AI7kBmTnuvv",
          "name": "InfyOm"
        }
      }
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "=gpt-4o-mini",
          "mode": "id"
        },
        "messages": {
          "values": [
            {
              "content": "=content_prompt: {{ $('Loop').first().json['Likedin content']}}"
            },
            {
              "content": "=You are a creative social media content generator.\nFrom the given content_prompt, generate unique content for this platform:{{ $('Loop').first().json.Platform}}\nRules:\n\n{{ $('Loop').first().json.Platform}}→ professional, informative, and slightly formal tone, concise, witty, engaging (280 characters or less))\n\nReturn as JSON in this format:\n{\n \"{{ $('Loop').first().json.Platform}}\": {\n  \"content\": \"...\"\n }\n}",
              "role": "system"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        48,
        1360
      ],
      "id": "6ca83d7d-68cb-476e-8524-4e7e86e4559a",
      "name": "Content For Likedin",
      "credentials": {
        "openAiApi": {
          "id": "zHTJ5AI7kBmTnuvv",
          "name": "InfyOm"
        }
      }
    },
    {
      "parameters": {
        "text": "={{$('Loop Over Items2').item.json.Content}}",
        "additionalFields": {
          "attachments": "={{ $json.media_id_string }}"
        }
      },
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 2,
      "position": [
        48,
        2432
      ],
      "id": "6970d35a-af89-45bb-b143-775409112afe",
      "name": "Create Tweet",
      "credentials": {
        "twitterOAuth2Api": {
          "id": "wIL6PeIKWumG2aw9",
          "name": "X account"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Id": "={{$('Loop Over Items2').item.json.id}}",
            "Linkedin Post URL": "=https://www.linkedin.com/feed/update/{{ $json.urn }}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Topic",
              "displayName": "Topic",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Image short desc",
              "displayName": "Image short desc",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images prompt",
              "displayName": "LinkedIn images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "displayName": "LinkedIn Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content Prompt",
              "displayName": "Instagram Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images prompt",
              "displayName": "Instagram images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images prompt",
              "displayName": "Twitter images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content Prompt",
              "displayName": "Twitter Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content ",
              "displayName": "LinkedIn Content ",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content",
              "displayName": "Instagram Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content",
              "displayName": "Twitter Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images url",
              "displayName": "Instagram images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images url",
              "displayName": "LinkedIn images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images url",
              "displayName": "Twitter images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Prompt Status",
              "displayName": "Prompt Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Posting Status",
              "displayName": "Posting Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Posted Date",
              "displayName": "Posted Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Linkedin Post URL",
              "displayName": "Linkedin Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Twitter Post URL",
              "displayName": "Twitter Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Post URL",
              "displayName": "Instagram Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        48,
        2240
      ],
      "id": "20f22235-80ca-432a-95ae-1bd7022dd705",
      "name": "Append Linkedin Post Url",
      "alwaysOutputData": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Id": "={{$('Loop Over Items2').item.json.id}}",
            "Twitter Post URL": "=https://x.com/InfyomSure71227/status/{{ $json.id }}",
            "Posting Status": "Post Success",
            "Posted Date": "={{ $now.toFormat(\"yyyy-LL-dd HH:mm:ss\") }}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Topic",
              "displayName": "Topic",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Image short desc",
              "displayName": "Image short desc",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images prompt",
              "displayName": "LinkedIn images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "displayName": "LinkedIn Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content Prompt",
              "displayName": "Instagram Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images prompt",
              "displayName": "Instagram images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images prompt",
              "displayName": "Twitter images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content Prompt",
              "displayName": "Twitter Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content ",
              "displayName": "LinkedIn Content ",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content",
              "displayName": "Instagram Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content",
              "displayName": "Twitter Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images url",
              "displayName": "Instagram images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images url",
              "displayName": "LinkedIn images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images url",
              "displayName": "Twitter images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Prompt Status",
              "displayName": "Prompt Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Posting Status",
              "displayName": "Posting Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Posted Date",
              "displayName": "Posted Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Linkedin Post URL",
              "displayName": "Linkedin Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Post URL",
              "displayName": "Twitter Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Instagram Post URL",
              "displayName": "Instagram Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        272,
        2432
      ],
      "id": "ba08fd05-150b-41c3-87ee-e2ad61f227cc",
      "name": "Append Twitter Post Url",
      "alwaysOutputData": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "url": "={{ $json.Image }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -400,
        2432
      ],
      "id": "3b430562-0b15-4b8c-8067-4f2b97f8e34a",
      "name": "Download Image"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://upload.twitter.com/1.1/media/upload.json",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "twitterOAuth1Api",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "media",
              "inputDataFieldName": "data"
            }
          ]
        },
        "options": {
          "response": {
            "response": {
              "responseFormat": "json"
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -176,
        2432
      ],
      "id": "b1d81c5a-e75e-41a2-ab91-eabc7809f94b",
      "name": "Upload Image",
      "credentials": {
        "twitterOAuth2Api": {
          "id": "ujcsKU4d5GG5PkXv",
          "name": "X account"
        },
        "httpBearerAuth": {
          "id": "RCvYepO78G90Aj56",
          "name": "Twitter Bearer"
        },
        "twitterOAuth1Api": {
          "id": "jOqlZ6MfxJBKQHsA",
          "name": "X OAuth account"
        }
      }
    },
    {
      "parameters": {
        "url": "={{ $json.Image }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -400,
        2240
      ],
      "id": "83c5eadd-dce9-4ded-a021-7b512f823d74",
      "name": "Download Img"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "Posting Status",
              "lookupValue": "Approved"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -1296,
        2704
      ],
      "id": "4715233c-fc3f-4276-8d25-ea0842328a36",
      "name": "Get Post Data",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "Prompt Status",
              "lookupValue": "Approved"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -1296,
        1984
      ],
      "id": "cebb8d45-6169-439d-9226-32d3d539c662",
      "name": "Get Content + Image Prompt",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "LinkedIn images prompt": "={{ $json.choices[0].message.content.linkedin.image_prompt }}",
            "Twitter images prompt": "={{ $json.choices[0].message.content.twitter.image_prompt }}",
            "Prompt Status": "Pending for Approval",
            "Id": "={{ $('Get Topic + Img Desc').item.json.Id }}",
            "LinkedIn Content Prompt": "={{ $json.choices[0].message.content.linkedin.content_prompt }}",
            "Twitter Content Prompt": "={{ $json.choices[0].message.content.twitter.content_prompt }}",
            "Instagram Content Prompt": "={{ $json.choices[0].message.content.instagram.content_prompt }}",
            "Instagram images prompt": "={{ $json.choices[0].message.content.instagram.image_prompt }}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Topic",
              "displayName": "Topic",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Image short desc",
              "displayName": "Image short desc",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images prompt",
              "displayName": "LinkedIn images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "displayName": "LinkedIn Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Instagram Content Prompt",
              "displayName": "Instagram Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Instagram images prompt",
              "displayName": "Instagram images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Twitter images prompt",
              "displayName": "Twitter images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "displayName": "Twitter Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "LinkedIn Content ",
              "displayName": "LinkedIn Content ",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content",
              "displayName": "Instagram Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content",
              "displayName": "Twitter Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images url",
              "displayName": "Instagram images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images url",
              "displayName": "LinkedIn images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images url",
              "displayName": "Twitter images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Prompt Status",
              "displayName": "Prompt Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "displayName": "Posting Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Posted Date",
              "displayName": "Posted Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Linkedin Post URL",
              "displayName": "Linkedin Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Post URL",
              "displayName": "Twitter Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Post URL",
              "displayName": "Instagram Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -832,
        1536
      ],
      "id": "1d26b648-c953-496b-aab3-62a1cd10c711",
      "name": "Append Content + Img Prompt",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "Prompt Status",
              "lookupValue": "New Post"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -1280,
        1536
      ],
      "id": "a1352f06-5880-4fb6-aec6-edebcefe9106",
      "name": "Get Topic + Img Desc",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "=gpt-4o-mini",
          "mode": "id"
        },
        "messages": {
          "values": [
            {
              "content": "=content_prompt:{{$('Loop').item.json['instagram content']}}"
            },
            {
              "content": "=You are a creative social media content generator.\nFrom the given content_prompt, generate unique content for this platform:{{$('Loop').item.json.Platform}}\nRules:\n\n{{$('Loop').item.json.Platform}}→ professional, informative, and slightly formal tone, concise, witty, engaging (280 characters or less))\n\nReturn as JSON in this format:\n{\n \"{{$('Loop').item.json.Platform}}\": {\n  \"content\": \"...\"\n }\n}",
              "role": "system"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        48,
        1744
      ],
      "id": "fd658b0a-b529-41af-b359-3afb8c042dba",
      "name": "Content for Instagram",
      "credentials": {
        "openAiApi": {
          "id": "zHTJ5AI7kBmTnuvv",
          "name": "InfyOm"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Id": "={{$('Loop').item.json.id}}",
            "Prompt Status": "=Complete",
            "Posting Status": "Pending for Approval",
            "Instagram Content": "={{ $json.choices[0].message.content.Instagram.content }}",
            "Instagram images url": "={{ $('Image Generate').item.json.output[0].url }}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Topic",
              "displayName": "Topic",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Image short desc",
              "displayName": "Image short desc",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images prompt",
              "displayName": "LinkedIn images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "displayName": "LinkedIn Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content Prompt",
              "displayName": "Instagram Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images prompt",
              "displayName": "Instagram images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images prompt",
              "displayName": "Twitter images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content Prompt",
              "displayName": "Twitter Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content ",
              "displayName": "LinkedIn Content ",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content",
              "displayName": "Instagram Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Twitter Content",
              "displayName": "Twitter Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images url",
              "displayName": "Instagram images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "LinkedIn images url",
              "displayName": "LinkedIn images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images url",
              "displayName": "Twitter images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Prompt Status",
              "displayName": "Prompt Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "displayName": "Posting Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Posted Date",
              "displayName": "Posted Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Linkedin Post URL",
              "displayName": "Linkedin Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Post URL",
              "displayName": "Twitter Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Post URL",
              "displayName": "Instagram Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        272,
        2016
      ],
      "id": "5c070c6c-257d-4c4a-a5fe-f29bc3c713a6",
      "name": "Append instagram Data",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "imageUrl",
              "value": "={{$('Loop Over Items2').item}}"
            },
            {
              "name": "captionText",
              "value": "={{ $json.Content }}"
            },
            {
              "name": "Node",
              "value": "App ID"
            }
          ]
        },
        "options": {}
      },
      "name": "Set Image & Caption",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        -400,
        2624
      ],
      "id": "c0c2f702-6c46-4264-af46-261d01b0ea57"
    },
    {
      "parameters": {
        "httpRequestMethod": "POST",
        "graphApiVersion": "v23.0",
        "node": "={{ $json.Node }}",
        "edge": "media",
        "options": {
          "queryParameters": {
            "parameter": [
              {
                "name": "image_url",
                "value": "={{ $json.Image }}"
              },
              {
                "name": "caption",
                "value": "={{ $json.captionText }}"
              }
            ]
          }
        }
      },
      "type": "n8n-nodes-base.facebookGraphApi",
      "typeVersion": 1,
      "position": [
        -176,
        2624
      ],
      "id": "31322606-43cd-453c-ac9f-c1153ef5c4b8",
      "name": "Creating Container ID",
      "credentials": {
        "facebookGraphApi": {
          "id": "z6Urbk9VAwiutKNp",
          "name": "Facebook Graph account 2"
        }
      }
    },
    {
      "parameters": {
        "httpRequestMethod": "POST",
        "graphApiVersion": "v22.0",
        "node": "={{ $('Set Image & Caption').item.json.Node }}",
        "edge": "media_publish",
        "options": {
          "queryParameters": {
            "parameter": [
              {
                "name": "creation_id",
                "value": "={{ $json.id }}"
              },
              {
                "name": "image_url",
                "value": "={{ $('Set Image & Caption').item.json.imageUrl }}"
              },
              {
                "name": "caption",
                "value": "={{ $('Set Image & Caption').item.json.captionText }}"
              }
            ]
          }
        }
      },
      "type": "n8n-nodes-base.facebookGraphApi",
      "typeVersion": 1,
      "position": [
        48,
        2624
      ],
      "id": "24227a98-9bc7-4a16-849e-e214f1ddf5f0",
      "name": "Facebook Graph API",
      "credentials": {
        "facebookGraphApi": {
          "id": "z6Urbk9VAwiutKNp",
          "name": "Facebook Graph account 2"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "mode": "list",
          "cachedResultName": "Auto social media post",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": 424701331,
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Id": "={{$('Loop Over Items2').item.json.id}}",
            "Posting Status": "Post Success",
            "Posted Date": "={{ $now.toFormat(\"yyyy-LL-dd HH:mm:ss\") }}",
            "Instagram Post URL": "={{ $json.body.permalink }}"
          },
          "matchingColumns": [
            "Id"
          ],
          "schema": [
            {
              "id": "Id",
              "displayName": "Id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Topic",
              "displayName": "Topic",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Image short desc",
              "displayName": "Image short desc",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images prompt",
              "displayName": "LinkedIn images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "displayName": "LinkedIn Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content Prompt",
              "displayName": "Instagram Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images prompt",
              "displayName": "Instagram images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images prompt",
              "displayName": "Twitter images prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content Prompt",
              "displayName": "Twitter Content Prompt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn Content ",
              "displayName": "LinkedIn Content ",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Content",
              "displayName": "Instagram Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Content",
              "displayName": "Twitter Content",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram images url",
              "displayName": "Instagram images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LinkedIn images url",
              "displayName": "LinkedIn images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter images url",
              "displayName": "Twitter images url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Prompt Status",
              "displayName": "Prompt Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Posting Status",
              "displayName": "Posting Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Posted Date",
              "displayName": "Posted Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Linkedin Post URL",
              "displayName": "Linkedin Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Twitter Post URL",
              "displayName": "Twitter Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Instagram Post URL",
              "displayName": "Instagram Post URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        496,
        2800
      ],
      "id": "6aeefb9e-4400-4105-b2bc-bf14ee5da199",
      "name": "Append instagram Post Url",
      "alwaysOutputData": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WdaCQmtoNquNSoAA",
          "name": "Google Sheets"
        }
      }
    },
    {
      "parameters": {
        "url": "=https://graph.facebook.com/v18.0/{{ $json.id }}",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "fields",
              "value": "permalink"
            },
            {
              "name": "access_token",
              "value": "access_token"
            }
          ]
        },
        "options": {
          "response": {
            "response": {
              "fullResponse": true
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        272,
        2624
      ],
      "id": "85a2c754-9590-4013-b09a-009a8310ab18",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "jsCode": "const result = [];\nconst row = $json;\n\nfor (const key in row) {\n  const match = key.match(/(.*?) images prompt/i);\n  if (match) {\n    const platform = match[1].trim(); // e.g. \"LinkedIn\", \"Twitter\", \"Instagram\"\n\n    // Find the actual matching key (case-insensitive, trims spaces)\n    const actualKey = Object.keys(row).find(\n      k => k.toLowerCase().trim() === `${platform.toLowerCase()} images prompt`\n    );\n\n    result.push({\n      row_number: row.row_number,\n      id: $input.first().json.Id,\n      Topic: row.Topic,\n      Platform: platform,\n      \"Image Prompt\": actualKey ? row[actualKey] : \"\",\n      \"Twitter content\": $input.first().json[\"Twitter Content Prompt\"],\n      \"Likedin content\": $input.first().json[\"LinkedIn Content Prompt\"],\n      \"Instagram content\": $input.first().json[\"Instagram Content Prompt\"],\n      \"Image URL\": row[`${platform} images url`] || \"\",\n      \"Prompt Status\": row[\"Prompt Status\"],\n      \"Posting Status\": row[\"Posting Status\"],\n      \"Posted Date\": row[\"Posted Date\"] || \"\"\n    });\n  }\n}\n\nreturn result;\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -848,
        1984
      ],
      "id": "5e780074-ebf1-47fd-9cf6-21ae5332e7ae",
      "name": "Split Items"
    },
    {
      "parameters": {
        "jsCode": "const row = $json;\nconst platforms = [];\n\n// Loop through all keys in the object\nfor (const key in row) {\n  const match = key.match(/(.*?) images prompt/i);\n  if (match) {\n    const platform = match[1].trim(); \n\n    const entry = {\n      Platform: platform,\n      row_number: row.row_number,\n      id: $input.first().json.Id,\n      Topic: row.Topic,\n      Content:\"\",\n      Image:\"\"\n    };\n\n    if (platform.toLowerCase() === \"linkedin\") {\n      entry[\"Content\"] = $input.first().json[\"LinkedIn Content \"];\n      entry[\"Image\"]   = $input.first().json[\"LinkedIn images url\"];\n    } else if (platform.toLowerCase() === \"twitter\") {\n      entry[\"Content\"] = $input.first().json[\"Twitter Content\"];\n      entry[\"Image\"]   = $input.first().json[\"Twitter images url\"];\n    }else if (platform.toLowerCase() === \"instagram\") {\n      entry[\"Content\"] = $input.first().json[\"Instagram Content\"];\n      entry[\"Image\"]   = $input.first().json[\"Instagram images url\"];\n    }\n    platforms.push(entry);\n  }\n}\nreturn platforms;"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -1072,
        2704
      ],
      "id": "bf623f89-335a-41ce-824c-ff3c03a26861",
      "name": "Split Data"
    },
    {
      "parameters": {
        "content": "## Sample Shhet\nhttps://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=sharing",
        "height": 128,
        "width": 416
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        1984
      ],
      "typeVersion": 1,
      "id": "ac879229-1f55-4915-a947-5d81d8743997",
      "name": "Sticky Note"
    }
  ],
  "pinData": {},
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Topic + Img Desc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Get Content + Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Split Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Generate": {
      "main": [
        [
          {
            "node": "Append Content + Img Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger2": {
      "main": [
        [
          {
            "node": "Get Post Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post": {
      "main": [
        [
          {
            "node": "Append Linkedin Post Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Platform": {
      "main": [
        [
          {
            "node": "Content For Likedin",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Content for Twitter",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Content for Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Likedin Data": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Twitter Data": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop": {
      "main": [
        [],
        [
          {
            "node": "Image Generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items2": {
      "main": [
        [],
        [
          {
            "node": "Switch According Platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch According Platform": {
      "main": [
        [
          {
            "node": "Download Img",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Image & Caption",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Generate": {
      "main": [
        [
          {
            "node": "Check Platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content for Twitter": {
      "main": [
        [
          {
            "node": "Append Twitter Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content For Likedin": {
      "main": [
        [
          {
            "node": "Append Likedin Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Tweet": {
      "main": [
        [
          {
            "node": "Append Twitter Post Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Linkedin Post Url": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Twitter Post Url": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Create Tweet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Img": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Post Data": {
      "main": [
        [
          {
            "node": "Split Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Content + Image Prompt": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Topic + Img Desc": {
      "main": [
        [
          {
            "node": "Prompt Generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content for Instagram": {
      "main": [
        [
          {
            "node": "Append instagram Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append instagram Data": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Image & Caption": {
      "main": [
        [
          {
            "node": "Creating Container ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creating Container ID": {
      "main": [
        [
          {
            "node": "Facebook Graph API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Graph API": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append instagram Post Url": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Append instagram Post Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Items": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Data": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2a9aeaf3-384b-4db2-a4d5-f05387fed2cb",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "9272721148ea09184b6bbb7ce6219dab088562dd450e2df8280d57c2e34c7d84"
  },
  "id": "VieInB5zoHhja0Lt",
  "tags": []
}