{
  "name": "06 · Product Launch → Landing Page + Blog + Email",
  "nodes": [
    {
      "name": "Product Created Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        256
      ],
      "parameters": {
        "path": "product-launch",
        "httpMethod": "POST"
      },
      "webhookId": "21c2ecda-114c-48b2-b345-caac43f12255"
    },
    {
      "name": "Create Page + Blog",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        288,
        256
      ],
      "parameters": {
        "promptType": "define",
        "text": "=Launch assets for a new product. Create BOTH a landing page AND a blog post.\n\nProduct: {{ $json.body.product_name }}\nDescription: {{ $json.body.description }}\nPrice: {{ $json.body.price }}\nWebsite ID: {{ $json.body.website_id }}\n\n1. Use Lindo Create Page: dedicated product landing page.\n2. Use Lindo Create Blog: announcement post.\n\nReturn both workflow_ids.",
        "options": {
          "systemMessage": "Create product launch assets using both Lindo page and blog tools."
        }
      }
    },
    {
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        224,
        480
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "Yuica5wlzDrhFTNk",
          "name": "OpenAi account"
        }
      }
    },
    {
      "name": "Lindo Create Page",
      "type": "n8n-nodes-lindo.lindoTool",
      "typeVersion": 1,
      "position": [
        352,
        480
      ],
      "parameters": {
        "resource": "page",
        "operation": "create",
        "prompt": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Prompt', '') }}",
        "websiteId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Website_ID', '') }}"
      },
      "credentials": {
        "lindoApi": {
          "id": "EZiHryOUuVuxcDYQ",
          "name": "Lindo account"
        }
      }
    },
    {
      "name": "Lindo Create Blog",
      "type": "n8n-nodes-lindo.lindoTool",
      "typeVersion": 1,
      "position": [
        480,
        480
      ],
      "parameters": {
        "resource": "blog",
        "operation": "create",
        "prompt": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Blog_Prompt', '') }}",
        "websiteId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Blog_Website_ID', '') }}"
      },
      "credentials": {
        "lindoApi": {
          "id": "EZiHryOUuVuxcDYQ",
          "name": "Lindo account"
        }
      }
    },
    {
      "name": "Persist IDs",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        688,
        256
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a1",
              "name": "page_workflow_id",
              "value": "={{ ($json.output.match(/Page workflow_id[:\\\\s]*([\\\\w-]+)/i))?.[1] || \"\" }}",
              "type": "string"
            },
            {
              "id": "a2",
              "name": "blog_workflow_id",
              "value": "={{ ($json.output.match(/Blog workflow_id[:\\\\s]*([\\\\w-]+)/i))?.[1] || \"\" }}",
              "type": "string"
            },
            {
              "id": "a3",
              "name": "product_name",
              "value": "={{ $(\"Product Created Webhook\").first().json.body.product_name }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "name": "Check Page Status",
      "type": "n8n-nodes-lindo.lindo",
      "typeVersion": 1,
      "position": [
        912,
        256
      ],
      "parameters": {
        "resource": "workflow",
        "operation": "checkPage",
        "workflowId": "={{ $(\"Persist IDs\").first().json.page_workflow_id }}"
      },
      "credentials": {
        "lindoApi": {
          "id": "EZiHryOUuVuxcDYQ",
          "name": "Lindo account"
        }
      }
    },
    {
      "name": "Check Blog Status",
      "type": "n8n-nodes-lindo.lindo",
      "typeVersion": 1,
      "position": [
        1136,
        160
      ],
      "parameters": {
        "resource": "workflow",
        "operation": "checkBlog",
        "workflowId": "={{ $(\"Persist IDs\").first().json.blog_workflow_id }}"
      },
      "credentials": {
        "lindoApi": {
          "id": "EZiHryOUuVuxcDYQ",
          "name": "Lindo account"
        }
      }
    },
    {
      "name": "Combine Results",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1360,
        160
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "c1",
              "name": "page_done",
              "value": "={{ $(\"Check Page Status\").first().json.done }}",
              "type": "boolean"
            },
            {
              "id": "c2",
              "name": "blog_done",
              "value": "={{ $(\"Check Blog Status\").first().json.done }}",
              "type": "boolean"
            },
            {
              "id": "c3",
              "name": "page_url",
              "value": "={{ $(\"Check Page Status\").first().json.result?.published_url || \"\" }}",
              "type": "string"
            },
            {
              "id": "c4",
              "name": "blog_url",
              "value": "={{ $(\"Check Blog Status\").first().json.result?.published_url || \"\" }}",
              "type": "string"
            },
            {
              "id": "c5",
              "name": "product_name",
              "value": "={{ $(\"Persist IDs\").first().json.product_name }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "name": "Both Done?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1584,
        160
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "d1",
              "leftValue": "={{ $json.page_done }}",
              "rightValue": true,
              "operator": {
                "type": "boolean",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            },
            {
              "id": "d2",
              "leftValue": "={{ $json.blog_done }}",
              "rightValue": true,
              "operator": {
                "type": "boolean",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      }
    },
    {
      "name": "Send Launch Email",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        1808,
        0
      ],
      "parameters": {
        "promptType": "define",
        "text": "=Send a product launch email.\n\nProduct: {{ $json.product_name }}\nLanding Page: {{ $json.page_url }}\nBlog Post: {{ $json.blog_url }}\n\nCompose an exciting launch email with both links. Send to subscribers@example.com via Emailr.",
        "options": {
          "systemMessage": "Compose a product launch email with landing page + blog links. Send via Emailr."
        }
      }
    },
    {
      "name": "OpenAI Email",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        1824,
        224
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "Yuica5wlzDrhFTNk",
          "name": "OpenAi account"
        }
      }
    },
    {
      "name": "Emailr",
      "type": "n8n-nodes-emailr.emailrTool",
      "typeVersion": 1,
      "position": [
        1952,
        224
      ],
      "parameters": {
        "from": "lindo.ai <sales@lindo.ai>",
        "to": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', '') }}",
        "subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', '') }}",
        "html": "=",
        "text": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Text_Body', ``, 'string') }}"
      },
      "credentials": {
        "emailrApi": {
          "id": "1QJ6NqiurNRi9d4C",
          "name": "Emailr account"
        }
      }
    },
    {
      "name": "Wait 60s",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1872,
        400
      ],
      "parameters": {
        "amount": 60
      },
      "webhookId": "9fdf81dd-2bcc-4c13-a94c-d2ec75559c79"
    },
    {
      "name": "Sticky Note 0d6c85ce",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        960,
        528
      ],
      "parameters": {
        "content": "### 06 · Product Launch → Landing Page + Blog + Email\n\n**How it works:** Product webhook fires → AI agent creates both a landing page and blog post via Lindo tools → polls both statuses → once both are live, AI composes and sends a launch announcement email with both URLs.\n\n**Setup:** POST to /webhook/product-launch with body: { product_name, description, price, website_id }. Connect Emailr credentials. Update subscriber email address.\n\n**Customisation:** Add Slack notification after email. Change email recipient to a mailing list. Adjust AI prompts for brand voice. Add social media posting step.",
        "color": 2,
        "width": 2172,
        "height": 600
      }
    },
    {
      "name": "Sticky Note cfb8b862",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        960,
        528
      ],
      "parameters": {
        "content": "## AI Asset Creation\nSingle agent call creates both landing page and blog post using two Lindo tools.",
        "color": 1,
        "width": 300,
        "height": 200
      }
    },
    {
      "name": "Sticky Note 52fe6484",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        960,
        528
      ],
      "parameters": {
        "content": "## Dual Status Check\nPolls page and blog status independently. Combines results to check if both are done.",
        "color": 1,
        "width": 972,
        "height": 296
      }
    },
    {
      "name": "Sticky Note 08fdb6f0",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        960,
        528
      ],
      "parameters": {
        "content": "## Launch Email\nAI composes exciting launch email with both URLs and sends via Emailr.",
        "color": 1,
        "width": 300,
        "height": 200
      }
    }
  ],
  "connections": {
    "Product Created Webhook": {
      "main": [
        [
          {
            "node": "Create Page + Blog",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Page + Blog": {
      "main": [
        [
          {
            "node": "Persist IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "Create Page + Blog",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Lindo Create Page": {
      "ai_tool": [
        [
          {
            "node": "Create Page + Blog",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Lindo Create Blog": {
      "ai_tool": [
        [
          {
            "node": "Create Page + Blog",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Persist IDs": {
      "main": [
        [
          {
            "node": "Check Page Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Page Status": {
      "main": [
        [
          {
            "node": "Check Blog Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Blog Status": {
      "main": [
        [
          {
            "node": "Combine Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Results": {
      "main": [
        [
          {
            "node": "Both Done?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Both Done?": {
      "main": [
        [
          {
            "node": "Send Launch Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 60s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Email": {
      "ai_languageModel": [
        [
          {
            "node": "Send Launch Email",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Emailr": {
      "ai_tool": [
        [
          {
            "node": "Send Launch Email",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Wait 60s": {
      "main": [
        [
          {
            "node": "Check Page Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}