{
  "name": "Turn Every New Google Docs Post Into a LinkedIn Update Automatically",
  "nodes": [
    {
      "name": "Google Docs — New Item",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "parameters": {
        "method": "POST",
        "url": "https://api.example.com/replace-with-real-endpoint",
        "sendBody": true,
        "options": {}
      },
      "notes": "Google Docs has no dedicated n8n node — use an HTTP Request to the Google Docs API. Trigger on new content.",
      "position": [
        260,
        300
      ]
    },
    {
      "name": "Rewrite For Platform",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1,
      "parameters": {
        "resource": "text",
        "operation": "message",
        "modelId": "gpt-4o-mini",
        "messages": {
          "values": [
            {
              "role": "user",
              "content": "Rewrite this into a native LinkedIn post with a strong hook and appropriate length: {{ $json.content }}"
            }
          ]
        }
      },
      "notes": "Swap in Anthropic or any LLM node if you prefer.",
      "position": [
        500,
        300
      ]
    },
    {
      "name": "LinkedIn — Create Post",
      "type": "n8n-nodes-base.linkedIn",
      "typeVersion": 1,
      "parameters": {
        "operation": "create"
      },
      "notes": "Post or queue as a draft for approval.",
      "position": [
        740,
        300
      ]
    },
    {
      "name": "Respond / Finish",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "parameters": {},
      "notes": "End of flow — extend with extra steps as needed.",
      "position": [
        980,
        300
      ]
    }
  ],
  "connections": {
    "Google Docs — New Item": {
      "main": [
        [
          {
            "node": "Rewrite For Platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite For Platform": {
      "main": [
        [
          {
            "node": "LinkedIn — Create Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn — Create Post": {
      "main": [
        [
          {
            "node": "Respond / Finish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
