{
  "name": "02-if-branches",
  "nodes": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "name": "Manual trigger for testing",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        300
      ],
      "parameters": {}
    },
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "If the order total is over 100",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        300,
        300
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $json.value }}",
              "rightValue": "the order total is over 100",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000002",
      "name": "If the order total is over 100 \u2014 merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        900,
        300
      ],
      "parameters": {
        "mode": "combine",
        "combineBy": "combineByPosition",
        "numberInputs": 2,
        "options": {}
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000003",
      "name": "Send a Slack message to the VIP channel",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.5,
      "position": [
        600,
        200
      ],
      "parameters": {
        "resource": "message",
        "operation": "post",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "TODO: set channel (from Relay prompt)"
        },
        "text": "TODO: set message text (from Relay prompt)",
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000004",
      "name": "Update the CRM via HTTP",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [
        900,
        200
      ],
      "parameters": {
        "method": "GET",
        "url": "TODO: set request URL (from Relay prompt)",
        "options": {}
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000005",
      "name": "Send a Slack message to the standard channel",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.5,
      "position": [
        1200,
        400
      ],
      "parameters": {
        "resource": "message",
        "operation": "post",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "TODO: set channel (from Relay prompt)"
        },
        "text": "TODO: set message text (from Relay prompt)",
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000006",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -160
      ],
      "parameters": {
        "content": "## \u26a0 Secrets and credentials\n\nEvery credential must be re-entered by hand in n8n. No automation possible.",
        "height": 160,
        "width": 280,
        "color": 1
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000007",
      "name": "Sticky Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        300,
        100
      ],
      "parameters": {
        "content": "## \u26a0 Path merging\n\nPaths in \"If the order total is over 100\" rejoin via a Merge node. n8n Merge combines items, not typed objects \u2014 verify the merged shape.",
        "height": 160,
        "width": 280,
        "color": 5
      }
    }
  ],
  "connections": {
    "If the order total is over 100": {
      "main": [
        [
          {
            "node": "Send a Slack message to the VIP channel",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a Slack message to the standard channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a Slack message to the VIP channel": {
      "main": [
        [
          {
            "node": "Update the CRM via HTTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update the CRM via HTTP": {
      "main": [
        [
          {
            "node": "If the order total is over 100 \u2014 merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a Slack message to the standard channel": {
      "main": [
        [
          {
            "node": "If the order total is over 100 \u2014 merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Manual trigger for testing": {
      "main": [
        [
          {
            "node": "If the order total is over 100",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}