{
  "name": "Automate LinkedIn posts to email newsletter with Apify and GPT-4",
  "nodes": [
    {
      "id": "8a1122dd-fe22-482d-b1c9-e9d4f318f34e",
      "name": "Weekly Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        272,
        -448
      ]
    },
    {
      "id": "4dab4d82-bf50-4378-b1c1-2dc926e0f6d3",
      "name": "Run an Actor and Get All LinkedIn Posts",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        720,
        -448
      ]
    },
    {
      "id": "332c9b28-4cf4-43c9-8ba4-50648c647f54",
      "name": "Pulls the First Post",
      "type": "n8n-nodes-base.limit",
      "position": [
        288,
        -112
      ]
    },
    {
      "id": "3f02e139-c101-4b90-82a7-3fd3c59874fe",
      "name": "Convert LinkedIn Post to Email Newsletter",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        288,
        240
      ]
    },
    {
      "id": "44429f63-f9c0-4e93-9280-f94cede35a11",
      "name": "Convert Text to HTML Format",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        592,
        240
      ]
    },
    {
      "id": "747b1eb6-6592-42d8-bf99-ce562d72ef25",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        288,
        560
      ]
    },
    {
      "id": "a9d244de-137e-48b2-b9fa-95a64f9c540a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -224
      ],
      "parameters": {
        "width": 624,
        "height": 288,
        "content": "## LinkedIn Posts Filtering\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)"
      }
    },
    {
      "id": "3241f567-94fa-40b8-8e01-8272358a410e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        112
      ],
      "parameters": {
        "width": 624,
        "height": 304,
        "content": "## Post Conversion to Newsletter Article\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)"
      }
    },
    {
      "id": "e792ed75-554f-4eee-9b40-a16d99a545b7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -544
      ],
      "parameters": {
        "width": 624,
        "height": 272,
        "content": "## LinkedIn Posts Ingestion\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)"
      }
    },
    {
      "id": "7ba0da38-a9db-47bc-9e85-26de604afd18",
      "name": "Variable Mapping",
      "type": "n8n-nodes-base.set",
      "position": [
        720,
        -112
      ]
    },
    {
      "id": "5c19bf72-0993-4154-a37b-7eca6e3e80fd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        464
      ],
      "parameters": {
        "width": 624,
        "height": 256,
        "content": "## Email Delivery\n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)"
      }
    }
  ],
  "connections": {
    "Weekly Schedule": {
      "main": [
        [
          {
            "node": "Run an Actor and Get All LinkedIn Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Variable Mapping": {
      "main": [
        [
          {
            "node": "Convert LinkedIn Post to Email Newsletter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pulls the First Post": {
      "main": [
        [
          {
            "node": "Variable Mapping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Text to HTML Format": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run an Actor and Get All LinkedIn Posts": {
      "main": [
        [
          {
            "node": "Pulls the First Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert LinkedIn Post to Email Newsletter": {
      "main": [
        [
          {
            "node": "Convert Text to HTML Format",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}