Is there a way to converge Multiple flow in one Node

Case: Let say I have multiple independent webhooks for different events and for all the webhook I have to make same work flow. Is there a way I can converge all the independent webhook flows in one common node and output the data on only triggered webhook.
Attaching image below for reference.


Hey @Mustafa_Ali,

Below is an example of how the workflow would look like. In this workflow I am using the NoOp node that will get executed use the data from the previous node. Note, that the data is getting merged, since each trigger will start a new execution. You can then reference this data in the next nodes.

Here’ s the workflow code:

{
  "nodes": [
    {
      "parameters": {
        "path": "85914449-7cab-4417-bea5-8a650e6cde3f",
        "responseMode": "lastNode",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        500,
        200
      ],
      "webhookId": "85914449-7cab-4417-bea5-8a650e6cde3f"
    },
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "path": "85914449-7cab-4417-bea5-8a650e6cde3f",
        "responseMode": "lastNode",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        500,
        200
      ],
      "webhookId": "85914449-7cab-4417-bea5-8a650e6cde3f"
    },
    {
      "parameters": {
        "path": "b7cfad1a-a329-4640-a9c8-8a08d1173ce1",
        "responseMode": "lastNode",
        "options": {}
      },
      "name": "Webhook1",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        500,
        400
      ],
      "webhookId": "b7cfad1a-a329-4640-a9c8-8a08d1173ce1"
    },
    {
      "parameters": {
        "path": "a4b8e78c-7cd3-44d2-abcd-c4a345a641d9",
        "responseMode": "lastNode",
        "options": {}
      },
      "name": "Webhook2",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        500,
        600
      ],
      "webhookId": "a4b8e78c-7cd3-44d2-abcd-c4a345a641d9"
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "message",
              "value": "The First Webhook Got Executed"
            }
          ]
        },
        "options": {}
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        700,
        200
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "message",
              "value": "The Second Webhook Got Executed"
            }
          ]
        },
        "options": {}
      },
      "name": "Set1",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        700,
        400
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "message",
              "value": "The Third Webhook Got Executed"
            }
          ]
        },
        "options": {}
      },
      "name": "Set2",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        700,
        600
      ]
    },
    {
      "parameters": {},
      "name": "NoOp",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "message",
              "value": "={{$json['message']}}"
            }
          ]
        },
        "options": {}
      },
      "name": "Set3",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1200,
        400
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook1": {
      "main": [
        [
          {
            "node": "Set1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook2": {
      "main": [
        [
          {
            "node": "Set2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set1": {
      "main": [
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set2": {
      "main": [
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NoOp": {
      "main": [
        [
          {
            "node": "Set3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
1 Like

i like the hand-drawn planning :wink:

1 Like

Thanks @harshil1712. I will try using this workflow.

Thanks @RedPacketSec :slight_smile: