{
  "name": "Unify multiple triggers into a single workflow",
  "nodes": [
    {
      "id": "fa6c3683-960f-49c8-8c83-691347da9016",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -32,
        0
      ]
    },
    {
      "id": "75dfc8e9-b916-4310-91dd-c1f08c1d037c",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -32,
        192
      ]
    },
    {
      "id": "90729deb-9654-4a12-a528-470434627ae0",
      "name": "Prepare data from form",
      "type": "n8n-nodes-base.set",
      "position": [
        304,
        0
      ]
    },
    {
      "id": "ff6caf39-e310-4f6f-a2fc-0f55694154da",
      "name": "Prepare data from sub-workflow",
      "type": "n8n-nodes-base.set",
      "position": [
        304,
        192
      ]
    },
    {
      "id": "94050a85-f1e8-4310-b7aa-92b57b06e6a5",
      "name": "Consolidate trigger data",
      "type": "n8n-nodes-base.set",
      "position": [
        640,
        144
      ]
    },
    {
      "id": "9ddc61d5-0781-4202-8a4a-67bc4cb9ca53",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1024,
        320
      ]
    },
    {
      "id": "1e270cb8-8cf8-472b-9d42-a92baece3831",
      "name": "Summarise feedback",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        960,
        144
      ]
    },
    {
      "id": "da72acd7-ab2e-4acd-9a68-75f610c98ffd",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -32,
        384
      ]
    },
    {
      "id": "190a9eb4-bb6e-4b0e-9a5a-641fa003292a",
      "name": "Prepare data from webhook",
      "type": "n8n-nodes-base.set",
      "position": [
        304,
        384
      ]
    },
    {
      "id": "fe6790a2-75ff-4b95-a4bf-4dffa084d1a7",
      "name": "Notify the team on Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1312,
        144
      ]
    },
    {
      "id": "e3c4b1a6-ad78-4a5a-84a6-8272778ab648",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        -160
      ],
      "parameters": {
        "width": 512,
        "height": 736,
        "content": "# Multi-Trigger Unification Pattern\n\nThis workflow demonstrates a powerful design pattern for running the same core logic from multiple different triggers (e.g., Form, Webhook, Sub-workflow). This avo"
      }
    },
    {
      "id": "d9106483-b0f6-416b-885f-7f296dfecd88",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -160
      ],
      "parameters": {
        "width": 272,
        "height": 736,
        "content": "### Replace with the workflow triggers you need"
      }
    },
    {
      "id": "4ca8de38-4cf0-44e1-a957-143deca66458",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -160
      ],
      "parameters": {
        "width": 272,
        "height": 736,
        "content": "### Prepare the variables before the consolidation\nMake sure to use the same field names to be able to consolidate them later!"
      }
    },
    {
      "id": "f8a00250-d66f-4a77-8b21-269944962792",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -48
      ],
      "parameters": {
        "width": 656,
        "height": 512,
        "content": "### Replace this and build your workflow"
      }
    },
    {
      "id": "fecc47ea-839f-42b2-9220-48c9cc4e5d1d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -48
      ],
      "parameters": {
        "width": 256,
        "height": 368,
        "content": "### Consolidation node\nThis takes data from the previous nodes, no matter the path.\n\nMap previous nodes to this consolidation node when you need data from the triggers."
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Prepare data from webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Summarise feedback",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Prepare data from form",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarise feedback": {
      "main": [
        [
          {
            "node": "Notify the team on Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare data from form": {
      "main": [
        [
          {
            "node": "Consolidate trigger data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Consolidate trigger data": {
      "main": [
        [
          {
            "node": "Summarise feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare data from webhook": {
      "main": [
        [
          {
            "node": "Consolidate trigger data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare data from sub-workflow": {
      "main": [
        [
          {
            "node": "Consolidate trigger data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Prepare data from sub-workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}