{
  "name": "Northstar amount-branch diagnostic",
  "nodes": [
    {
      "id": "trigger-schedule",
      "name": "trigger-schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 24
            }
          ]
        }
      }
    },
    {
      "id": "input-INV-101",
      "name": "input-INV-101",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        240,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "INV-101",
              "type": "string"
            },
            {
              "id": "amount",
              "name": "amount",
              "value": 750,
              "type": "number"
            },
            {
              "id": "owner",
              "name": "owner",
              "value": "Operations",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "rule-INV-101",
      "name": "rule-INV-101",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        480,
        0
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "rule-INV-101-condition",
              "leftValue": "={{ $json.amount }}",
              "rightValue": 1000,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        }
      }
    },
    {
      "id": "manager_review-INV-101",
      "name": "manager_review-INV-101",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        720,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "manager_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "standard_review-INV-101",
      "name": "standard_review-INV-101",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        960,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "standard_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "input-INV-102",
      "name": "input-INV-102",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1200,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "INV-102",
              "type": "string"
            },
            {
              "id": "amount",
              "name": "amount",
              "value": 1250,
              "type": "number"
            },
            {
              "id": "owner",
              "name": "owner",
              "value": "Operations",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "rule-INV-102",
      "name": "rule-INV-102",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        1440,
        0
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "rule-INV-102-condition",
              "leftValue": "={{ $json.amount }}",
              "rightValue": 1000,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        }
      }
    },
    {
      "id": "manager_review-INV-102",
      "name": "manager_review-INV-102",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1680,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "manager_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "standard_review-INV-102",
      "name": "standard_review-INV-102",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1920,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "standard_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "input-INV-103",
      "name": "input-INV-103",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2160,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "INV-103",
              "type": "string"
            },
            {
              "id": "amount",
              "name": "amount",
              "value": 1250,
              "type": "number"
            },
            {
              "id": "owner",
              "name": "owner",
              "value": "",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "rule-INV-103",
      "name": "rule-INV-103",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        2400,
        0
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "rule-INV-103-condition",
              "leftValue": "={{ $json.amount }}",
              "rightValue": 1000,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        }
      }
    },
    {
      "id": "manager_review-INV-103",
      "name": "manager_review-INV-103",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2640,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "manager_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "standard_review-INV-103",
      "name": "standard_review-INV-103",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2880,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "standard_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "input-INV-104",
      "name": "input-INV-104",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        3120,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "INV-104",
              "type": "string"
            },
            {
              "id": "amount",
              "name": "amount",
              "value": 1000,
              "type": "number"
            },
            {
              "id": "owner",
              "name": "owner",
              "value": "Operations",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "rule-INV-104",
      "name": "rule-INV-104",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        3360,
        0
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "rule-INV-104-condition",
              "leftValue": "={{ $json.amount }}",
              "rightValue": 1000,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        }
      }
    },
    {
      "id": "manager_review-INV-104",
      "name": "manager_review-INV-104",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        3600,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "manager_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "standard_review-INV-104",
      "name": "standard_review-INV-104",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        3840,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "standard_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "input-INV-105",
      "name": "input-INV-105",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        4080,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "INV-105",
              "type": "string"
            },
            {
              "id": "amount",
              "name": "amount",
              "value": 750,
              "type": "number"
            },
            {
              "id": "owner",
              "name": "owner",
              "value": "   ",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "rule-INV-105",
      "name": "rule-INV-105",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        4320,
        0
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "rule-INV-105-condition",
              "leftValue": "={{ $json.amount }}",
              "rightValue": 1000,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        }
      }
    },
    {
      "id": "manager_review-INV-105",
      "name": "manager_review-INV-105",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        4560,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "manager_review",
              "type": "string"
            }
          ]
        }
      }
    },
    {
      "id": "standard_review-INV-105",
      "name": "standard_review-INV-105",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        4800,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "invoice_id",
              "name": "invoice_id",
              "value": "={{ $json.invoice_id }}",
              "type": "string"
            },
            {
              "id": "queue",
              "name": "queue",
              "value": "standard_review",
              "type": "string"
            }
          ]
        }
      }
    }
  ],
  "connections": {
    "trigger-schedule": {
      "main": [
        [
          {
            "node": "input-INV-101",
            "type": "main",
            "index": 0
          },
          {
            "node": "input-INV-102",
            "type": "main",
            "index": 0
          },
          {
            "node": "input-INV-103",
            "type": "main",
            "index": 0
          },
          {
            "node": "input-INV-104",
            "type": "main",
            "index": 0
          },
          {
            "node": "input-INV-105",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "input-INV-101": {
      "main": [
        [
          {
            "node": "rule-INV-101",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "rule-INV-101": {
      "main": [
        [
          {
            "node": "manager_review-INV-101",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "standard_review-INV-101",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "input-INV-102": {
      "main": [
        [
          {
            "node": "rule-INV-102",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "rule-INV-102": {
      "main": [
        [
          {
            "node": "manager_review-INV-102",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "standard_review-INV-102",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "input-INV-103": {
      "main": [
        [
          {
            "node": "rule-INV-103",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "rule-INV-103": {
      "main": [
        [
          {
            "node": "manager_review-INV-103",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "standard_review-INV-103",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "input-INV-104": {
      "main": [
        [
          {
            "node": "rule-INV-104",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "rule-INV-104": {
      "main": [
        [
          {
            "node": "manager_review-INV-104",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "standard_review-INV-104",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "input-INV-105": {
      "main": [
        [
          {
            "node": "rule-INV-105",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "rule-INV-105": {
      "main": [
        [
          {
            "node": "manager_review-INV-105",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "standard_review-INV-105",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionTimeout": 60
  }
}
