{
  "name": "Schedule LinkedIn posts with AI content generation and Telegram approval",
  "nodes": [
    {
      "id": "c75ea360-ed01-4aee-bbce-d44889c1105b",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1024,
        -240
      ]
    },
    {
      "id": "b839fc4f-66db-48dc-ad14-61a28b245753",
      "name": "Prompts",
      "type": "n8n-nodes-base.set",
      "position": [
        -464,
        0
      ]
    },
    {
      "id": "b1949530-230f-4fad-9c51-cd0e300ad1f5",
      "name": "Random Prompt",
      "type": "n8n-nodes-base.code",
      "position": [
        -320,
        -240
      ]
    },
    {
      "id": "3a95e7c1-471d-46a9-8c96-71e83ce06499",
      "name": "OpenAI Message",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -160,
        -64
      ]
    },
    {
      "id": "62715d75-82de-47b9-96fd-663cdc52558f",
      "name": "Telegram Approved",
      "type": "n8n-nodes-base.if",
      "position": [
        544,
        -80
      ]
    },
    {
      "id": "2acda2bb-4a00-453a-8b17-b2ea1777b0c9",
      "name": "Random Time",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        -64
      ]
    },
    {
      "id": "cb914251-dc4a-48b5-af92-6b91e2259304",
      "name": "Send message and wait for response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        368,
        -288
      ]
    },
    {
      "id": "c770a05a-41bf-4934-89d5-490cb0636d37",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -800,
        0
      ]
    },
    {
      "id": "f132e39a-d6e8-43ab-a476-41a0b1c7bba4",
      "name": "Create a post",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        1104,
        -96
      ]
    },
    {
      "id": "acec4d48-7d0b-4867-b0ed-a59128b1184a",
      "name": "Notify Post Active",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1312,
        -96
      ]
    },
    {
      "id": "6231c53d-97df-4f81-8a2f-7a3cf1709fc5",
      "name": "Check Day",
      "type": "n8n-nodes-base.if",
      "position": [
        -576,
        -240
      ]
    },
    {
      "id": "ca54dec2-58cd-4d29-a18a-6300eeccc367",
      "name": "Wait for Time Selected",
      "type": "n8n-nodes-base.wait",
      "position": [
        832,
        -96
      ]
    },
    {
      "id": "7f8e996d-15c8-4696-8020-53d93cf44eb0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1136,
        -112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "The schdule trigger checks to see if the time is 8AM"
      }
    },
    {
      "id": "3df48a12-094f-4b27-9ef3-7730846e8781",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        -432
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Check to see if this is a day we want to run the workflow. We are set to avoid Friday-Sunday. We also convert UTC to Central Time"
      }
    },
    {
      "id": "f78ec2b0-8a6d-471b-8e34-21c9ddd3112f",
      "name": "Get Day",
      "type": "n8n-nodes-base.code",
      "position": [
        -800,
        -240
      ]
    },
    {
      "id": "2a0683bd-5082-43ef-941e-3917b64fd698",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        176
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Set your OpenAI prompts to set your LinkedIn post."
      }
    },
    {
      "id": "6e56c087-40ad-45d8-a9da-d215bf75994b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        -416
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Select a random prompt so that the posts look unique."
      }
    },
    {
      "id": "c4964528-aab1-4f5a-a715-b96ef7df15aa",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        96
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Select a Random Time"
      }
    }
  ],
  "connections": {
    "Get Day": {
      "main": [
        [
          {
            "node": "Check Day",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompts": {
      "main": [
        [
          {
            "node": "Random Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Day": {
      "main": [
        [],
        [
          {
            "node": "Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Random Time": {
      "main": [
        [
          {
            "node": "Send message and wait for response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post": {
      "main": [
        [
          {
            "node": "Notify Post Active",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Random Prompt": {
      "main": [
        [
          {
            "node": "OpenAI Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Message": {
      "main": [
        [
          {
            "node": "Random Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Day",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Approved": {
      "main": [
        [
          {
            "node": "Wait for Time Selected",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Wait for Time Selected": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response": {
      "main": [
        [
          {
            "node": "Telegram Approved",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get Day",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}