{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "e0e618ec-652b-4d76-b7d0-a39f4670f5f9",
      "name": "Create a post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        -704,
        1296
      ],
      "parameters": {
        "text": "={{ $json.Content }}",
        "person": "MRJZ0yiNi4",
        "additionalFields": {},
        "shareMediaCategory": "IMAGE"
      },
      "credentials": {
        "linkedInOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1a9d3c33-0a3e-43d3-a71e-cd926b888d3a",
      "name": "Schedule Trigger1",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2288,
        672
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "0f1bc202-5675-404c-a32e-7d15bba8ecd9",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1840,
        672
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "1f94fa52-6424-46a7-8d80-24df37163f3b",
      "name": "Prompt Generate",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -1824,
        112
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "id",
          "value": "=gpt-4o-mini"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=Topic: {{ $json.Topic }}\nImage Short Description: {{ $json['Image short desc'] }}"
            },
            {
              "role": "system",
              "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 \u2192 professional, informative, and slightly formal tone\n2. instagram \u2192 Visual, trendy, lifestyle-driven tone (focus on aesthetics, storytelling, emojis, hashtags, and relatability).\n3. Twitter \u2192 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\u2019s style.\n\nYou\u2019ve 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}"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "90868eba-b865-4ba0-8f48-8bf11138d8fd",
      "name": "Schedule Trigger2",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2112,
        1488
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "17c24d7f-e14c-4a08-aab6-415bab48b9da",
      "name": "Check Platform",
      "type": "n8n-nodes-base.switch",
      "position": [
        -832,
        672
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "LinkedIn",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "64b18a07-42d7-4828-aedf-8aa16faee561",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Loop').item.json.Platform }}",
                    "rightValue": "LinkedIn"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Twitter",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "ac0e4c1e-7c1a-4882-a811-26c42eb8afd4",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Loop').item.json.Platform }}",
                    "rightValue": "Twitter"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "instragram",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "d4b3f0dd-e108-479b-b85f-ceabba119881",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $('Loop').item.json.Platform }}",
                    "rightValue": "Instagram"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "5412442a-b571-4e46-9eb7-c90b0acac472",
      "name": "Append Likedin Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -352,
        528
      ],
      "parameters": {
        "columns": {
          "value": {
            "Id": "={{$('Loop').item.json.id}}",
            "LinkedIn Content ": "={{ $json.choices[0].message.content.LinkedIn.content }}",
            "LinkedIn images url": "={{ $('Image Generate').item.json.output[0].url }}"
          },
          "schema": [
            {
              "id": "Id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Id",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Topic",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Topic",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image short desc",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Image short desc",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content ",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "LinkedIn Content ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images url",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "LinkedIn images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Prompt Status",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Prompt Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posting Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Linkedin Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Linkedin Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "b347c3b9-3f41-4765-8871-4cddaa2d786c",
      "name": "Append Twitter Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -352,
        720
      ],
      "parameters": {
        "columns": {
          "value": {
            "Id": "={{$('Loop').item.json.id}}",
            "Prompt Status": "=Complete",
            "Posting Status": "Pending for Approval",
            "Twitter Content": "={{ $json.choices[0].message.content.Twitter.content }}",
            "Twitter images url": "={{ $('Image Generate').item.json.output[0].url }}"
          },
          "schema": [
            {
              "id": "Id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Id",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Topic",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Topic",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image short desc",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Image short desc",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content ",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Twitter Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Twitter images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Prompt Status",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Prompt Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Posting Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Linkedin Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Linkedin Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "48a67af2-0d22-4485-a7aa-6e62cb1db558",
      "name": "Loop",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1392,
        672
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "773db076-0fda-4008-9fce-fe2384ccc6f8",
      "name": "Loop Over Items2",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1440,
        1488
      ],
      "parameters": {
        "options": {
          "reset": false
        }
      },
      "typeVersion": 3
    },
    {
      "id": "8f2e899d-d264-48af-b008-0095ceaae1d6",
      "name": "Switch According Platform",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1184,
        1472
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "LinkedIn",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "cbf67090-0ec8-4839-99dc-ec536969a431",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Platform }}",
                    "rightValue": "LinkedIn"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Twitter",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "a9241171-9902-439e-8418-cb16ffded1d2",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Platform }}",
                    "rightValue": "Twitter"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Instagram",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "bb2d4d5a-bac9-4d83-92a6-2b27456a00c1",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.Platform }}",
                    "rightValue": "Instagram"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "ca645618-5a5a-4961-9d03-62dbf7b91cb9",
      "name": "Image Generate",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1120,
        688
      ],
      "parameters": {
        "url": "https://api.thehive.ai/api/v3/black-forest-labs/flux-schnell",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "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}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "authorization",
              "value": "Bearer YOUR_TOKEN_HERE"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5510f230-33ee-447d-b794-cc73a001febe",
      "name": "Content for Twitter",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -608,
        720
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "id",
          "value": "=gpt-4o-mini"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=content_prompt:{{$('Loop').item.json['Twitter content']}}"
            },
            {
              "role": "system",
              "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}}\u2192 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}"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "beb943c6-247d-4d5e-828a-b8d16070af16",
      "name": "Content For Likedin",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -608,
        528
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "id",
          "value": "=gpt-4o-mini"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=content_prompt: {{ $('Loop').first().json['Likedin content']}}"
            },
            {
              "role": "system",
              "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}}\u2192 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}"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "69d744b2-c963-4bc4-90be-ad5424b46f0d",
      "name": "Create Tweet",
      "type": "n8n-nodes-base.twitter",
      "position": [
        -480,
        1488
      ],
      "parameters": {
        "text": "={{$('Loop Over Items2').item.json.Content}}",
        "additionalFields": {
          "attachments": "={{ $json.media_id_string }}"
        }
      },
      "credentials": {
        "twitterOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "fa26d4be-83a2-4a6f-a232-b3f8b5fe4c44",
      "name": "Append Linkedin Post Url",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -480,
        1296
      ],
      "parameters": {
        "columns": {
          "value": {
            "Id": "={{$('Loop Over Items2').item.json.id}}",
            "Linkedin Post URL": "=https://www.linkedin.com/feed/update/{{ $json.urn }}"
          },
          "schema": [
            {
              "id": "Id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Id",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Topic",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Topic",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image short desc",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Image short desc",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content ",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Prompt Status",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Prompt Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posting Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Linkedin Post URL",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Linkedin Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7,
      "alwaysOutputData": true
    },
    {
      "id": "7ffcefe7-04cf-4eca-a1aa-5907f4d786c6",
      "name": "Append Twitter Post Url",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -256,
        1488
      ],
      "parameters": {
        "columns": {
          "value": {
            "Id": "={{$('Loop Over Items2').item.json.id}}",
            "Posted Date": "={{ $now.toFormat(\"yyyy-LL-dd HH:mm:ss\") }}",
            "Posting Status": "Post Success",
            "Twitter Post URL": "=https://x.com/InfyomSure71227/status/{{ $json.id }}"
          },
          "schema": [
            {
              "id": "Id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Id",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Topic",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Topic",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image short desc",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Image short desc",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content ",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Prompt Status",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Prompt Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Posting Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Linkedin Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Linkedin Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Post URL",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Twitter Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7,
      "alwaysOutputData": true
    },
    {
      "id": "73934675-ea80-4cdd-ba8f-843e9adbbfc6",
      "name": "Download Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -928,
        1488
      ],
      "parameters": {
        "url": "={{ $json.Image }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "00a3dbbc-e5e1-4888-9b29-8b35e082f2dc",
      "name": "Upload Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -704,
        1488
      ],
      "parameters": {
        "url": "https://upload.twitter.com/1.1/media/upload.json",
        "method": "POST",
        "options": {
          "response": {
            "response": {
              "responseFormat": "json"
            }
          }
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "media",
              "parameterType": "formBinaryData",
              "inputDataFieldName": "data"
            }
          ]
        },
        "nodeCredentialType": "twitterOAuth1Api"
      },
      "credentials": {
        "twitterOAuth1Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0b0871a7-a950-4498-8b7a-221250ba90a1",
      "name": "Download Img",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -928,
        1296
      ],
      "parameters": {
        "url": "={{ $json.Image }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "abd4ec4b-876a-4096-8df6-f1260ab5f9e0",
      "name": "Get Post Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1888,
        1488
      ],
      "parameters": {
        "options": {},
        "filtersUI": {
          "values": [
            {
              "lookupValue": "Approved",
              "lookupColumn": "Posting Status"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "2c2bf7b8-a38e-4c71-9699-95e091df02a6",
      "name": "Get Content + Image Prompt",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -2064,
        672
      ],
      "parameters": {
        "options": {},
        "filtersUI": {
          "values": [
            {
              "lookupValue": "Approved",
              "lookupColumn": "Prompt Status"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "26463d6e-486a-43c2-af68-4da29a3b27cd",
      "name": "Append Content + Img Prompt",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1616,
        112
      ],
      "parameters": {
        "columns": {
          "value": {
            "Id": "={{ $('Get Topic + Img Desc').item.json.Id }}",
            "Prompt Status": "Pending for Approval",
            "Twitter images prompt": "={{ $json.choices[0].message.content.twitter.image_prompt }}",
            "LinkedIn images prompt": "={{ $json.choices[0].message.content.linkedin.image_prompt }}",
            "Twitter Content Prompt": "={{ $json.choices[0].message.content.twitter.content_prompt }}",
            "Instagram images prompt": "={{ $json.choices[0].message.content.instagram.image_prompt }}",
            "LinkedIn Content Prompt": "={{ $json.choices[0].message.content.linkedin.content_prompt }}",
            "Instagram Content Prompt": "={{ $json.choices[0].message.content.instagram.content_prompt }}"
          },
          "schema": [
            {
              "id": "Id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Id",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Topic",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Topic",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image short desc",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Image short desc",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images prompt",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "LinkedIn images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "LinkedIn Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content Prompt",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Instagram Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images prompt",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Instagram images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images prompt",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Twitter images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Twitter Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content ",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Prompt Status",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Prompt Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posting Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Linkedin Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Linkedin Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "f590260e-43bb-47c3-9c0e-88126649dcf2",
      "name": "Get Topic + Img Desc",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -2064,
        112
      ],
      "parameters": {
        "options": {},
        "filtersUI": {
          "values": [
            {
              "lookupValue": "New Post",
              "lookupColumn": "Prompt Status"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "87deed3d-4ec9-415a-9e77-440748cd6139",
      "name": "Content for Instagram",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -608,
        912
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "id",
          "value": "=gpt-4o-mini"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=content_prompt:{{$('Loop').item.json['instagram content']}}"
            },
            {
              "role": "system",
              "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}}\u2192 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}"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "fb9e2450-b30d-45f8-8b71-a4db99bd9aa0",
      "name": "Append instagram Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -352,
        912
      ],
      "parameters": {
        "columns": {
          "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 }}"
          },
          "schema": [
            {
              "id": "Id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Id",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Topic",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Topic",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image short desc",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Image short desc",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content ",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Instagram Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Instagram images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Prompt Status",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Prompt Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Posting Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Linkedin Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Linkedin Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "4c8b600a-4c84-4d24-a747-700da0174869",
      "name": "Set Image & Caption",
      "type": "n8n-nodes-base.set",
      "position": [
        -928,
        1680
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "imageUrl",
              "value": "={{$('Loop Over Items2').item}}"
            },
            {
              "name": "captionText",
              "value": "={{ $json.Content }}"
            },
            {
              "name": "Node",
              "value": "App ID"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "b5ce7424-4f98-4e27-82d1-d993f61852af",
      "name": "Creating Container ID",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -704,
        1680
      ],
      "parameters": {
        "edge": "media",
        "node": "={{ $json.Node }}",
        "options": {
          "queryParameters": {
            "parameter": [
              {
                "name": "image_url",
                "value": "={{ $json.Image }}"
              },
              {
                "name": "caption",
                "value": "={{ $json.captionText }}"
              }
            ]
          }
        },
        "graphApiVersion": "v23.0",
        "httpRequestMethod": "POST"
      },
      "credentials": {
        "facebookGraphApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "dc64ce6e-ecfb-4560-aafe-ca9cd0e29a06",
      "name": "Facebook Graph API",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -480,
        1680
      ],
      "parameters": {
        "edge": "media_publish",
        "node": "={{ $('Set Image & Caption').item.json.Node }}",
        "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 }}"
              }
            ]
          }
        },
        "graphApiVersion": "v22.0",
        "httpRequestMethod": "POST"
      },
      "credentials": {
        "facebookGraphApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6226318e-f0ec-48c6-89d5-f10af5888140",
      "name": "Append instagram Post Url",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -48,
        1680
      ],
      "parameters": {
        "columns": {
          "value": {
            "Id": "={{$('Loop Over Items2').item.json.id}}",
            "Posted Date": "={{ $now.toFormat(\"yyyy-LL-dd HH:mm:ss\") }}",
            "Posting Status": "Post Success",
            "Instagram Post URL": "={{ $json.body.permalink }}"
          },
          "schema": [
            {
              "id": "Id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Id",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Topic",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Topic",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Image short desc",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Image short desc",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content Prompt",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content Prompt",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn Content ",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn Content ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Content",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Content",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Instagram images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "LinkedIn images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter images url",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter images url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Prompt Status",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Prompt Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posting Status",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Posting Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Posted Date",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Posted Date",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Linkedin Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Linkedin Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Twitter Post URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Twitter Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Instagram Post URL",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Instagram Post URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 424701331,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit#gid=424701331",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=drivesdk",
          "cachedResultName": "Auto social media post"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7,
      "alwaysOutputData": true
    },
    {
      "id": "d310d250-7e9f-4b7f-bed4-b4e5aa256b03",
      "name": "Split Items",
      "type": "n8n-nodes-base.code",
      "position": [
        -1616,
        672
      ],
      "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"
      },
      "typeVersion": 2
    },
    {
      "id": "5e661a6e-16c7-49ae-84b8-5a5cc7bf202a",
      "name": "Split Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -1664,
        1488
      ],
      "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;"
      },
      "typeVersion": 2
    },
    {
      "id": "d4adee8a-005d-47d1-89ab-38fb1bd65d58",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2816,
        -16
      ],
      "parameters": {
        "width": 464,
        "height": 368,
        "content": "## \ud83d\udcd6 How It Works\n\n**1. Topic Input** \u2192 Add topics to Google Sheets (status: \"New Post\")\n**2. Prompt Generation** \u2192 AI creates platform-specific prompts\n**3. First Approval** \u2192 Review/approve prompts in sheet\n**4. Content Generation** \u2192 AI generates final text + images\n**5. Second Approval** \u2192 Review/approve final content\n**6. Auto-Publishing** \u2192 Posts published to all platforms\n**7. Tracking** \u2192 Post URLs logged in sheet\n\n## Setup Requirements:\n\u2713 Google Sheets with proper columns\n\u2713 OpenAI API credentials\n\u2713 LinkedIn, Twitter/X, Instagram API access\n\u2713 thehive.ai API token for image generation"
      },
      "typeVersion": 1
    },
    {
      "id": "88b46c90-573a-48d4-96a2-826eb6c35d8d",
      "name": "Collect Instagram Post URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -256,
        1680
      ],
      "parameters": {
        "url": "=https://graph.facebook.com/v18.0/{{ $json.id }}",
        "options": {
          "response": {
            "response": {
              "fullResponse": true
            }
          }
        },
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "fields",
              "value": "permalink"
            },
            {
              "name": "access_token",
              "value": "access_token"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "e360d641-2187-4675-85a6-482b79bd094c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2336,
        -16
      ],
      "parameters": {
        "color": 7,
        "width": 960,
        "height": 368,
        "content": "## Prompt generation\n- Collect topic and image description, and generate prompt."
      },
      "typeVersion": 1
    },
    {
      "id": "9335b708-b6a6-4f45-82cb-f0c437006731",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2288,
        112
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "dc6c0fcc-e6ce-4ce1-b6ed-8a13ac960d87",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2816,
        368
      ],
      "parameters": {
        "color": 6,
        "width": 468,
        "height": 128,
        "content": "## \ud83d\udcca Sample Google Sheet\n\n**Link:** https://docs.google.com/spreadsheets/d/1cuWmMoNP-6TR20KjtPuiBmXf6yCK8KYvem-Tz1uGMMc/edit?usp=sharing\n"
      },
      "typeVersion": 1
    },
    {
      "id": "d1c0d0fd-38b7-4dec-9fc9-e2188b68b206",
      "name": "\ud83c\udfa8 SECTION 2: Content & Image Generation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2336,
        368
      ],
      "parameters": {
        "color": 7,
        "width": 872,
        "height": 480,
        "content": "## \ud83c\udfa8 SECTION 2: Content & Image Generation\n\n**Trigger:** Schedule Trigger1 (every 5 min)\n**Input:** Google Sheets - rows with status \"Approved\"\n**Process:**\n1. Loop through approved prompts\n2. Split by platform (LinkedIn, Twitter, Instagram)\n3. Generate images via thehive.ai API\n4. Generate final content via OpenAI\n5. Save content + image URLs to sheet with status \"Pending for Approval\"\n\n**Approval Gate:** User reviews/approves final content in Google Sheets"
      },
      "typeVersion": 1
    },
    {
      "id": "02a91b41-e21d-486d-b118-40e0606bd070",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        352
      ],
      "parameters": {
        "color": 7,
        "width": 752,
        "height": 816,
        "content": "## Platform base content generation"
      },
      "typeVersion": 1
    },
    {
      "id": "655dddec-1350-4857-8f28-bd9e1f2d24e4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2176,
        1408
      ],
      "parameters": {
        "color": 7,
        "width": 672,
        "height": 272,
        "content": "## Fetch Approved post\n"
      },
      "typeVersion": 1
    },
    {
      "id": "99039a30-9358-4b12-b4b8-7a57eda8b5c9",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        1184
      ],
      "parameters": {
        "color": 7,
        "width": 1536,
        "height": 752,
        "content": "## Publish to social media\n- Post publish and Store URL back to spreadsheets."
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Loop": {
      "main": [
        [],
        [
          {
            "node": "Image Generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Data": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Items": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Tweet": {
      "main": [
        [
          {
            "node": "Append Twitter Post Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Img": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Create Tweet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post": {
      "main": [
        [
          {
            "node": "Append Linkedin Post Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Post Data": {
      "main": [
        [
          {
            "node": "Split Data",
            "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
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Generate": {
      "main": [
        [
          {
            "node": "Check Platform",
            "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
          }
        ]
      ]
    },
    "Loop Over Items2": {
      "main": [
        [],
        [
          {
            "node": "Switch According Platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Topic + Img Desc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Get Content + Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger2": {
      "main": [
        [
          {
            "node": "Get Post Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Graph API": {
      "main": [
        [
          {
            "node": "Collect Instagram Post URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Likedin Data": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Twitter Data": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content For Likedin": {
      "main": [
        [
          {
            "node": "Append Likedin Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content for Twitter": {
      "main": [
        [
          {
            "node": "Append Twitter Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Image & Caption": {
      "main": [
        [
          {
            "node": "Creating Container ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Topic + Img Desc": {
      "main": [
        [
          {
            "node": "Prompt Generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append instagram Data": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content for Instagram": {
      "main": [
        [
          {
            "node": "Append instagram Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creating Container ID": {
      "main": [
        [
          {
            "node": "Facebook Graph API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Twitter Post Url": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Linkedin Post Url": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append instagram Post Url": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "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
          }
        ]
      ]
    },
    "Collect Instagram Post URL": {
      "main": [
        [
          {
            "node": "Append instagram Post Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Content + Image Prompt": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}