{
  "name": "File Invoices and Receipts",
  "version": 1,
  "nodes": [
    {
      "localID": 0,
      "typeID": "trigger.directory_changed",
      "customName": "New in Downloads",
      "isDisabled": false,
      "x": 60.0,
      "y": 110.0,
      "config": {
        "watchPath": "~/Downloads",
        "recursive": false,
        "eventTypes": "created",
        "waitForCloudDownload": true,
        "customArgs": {}
      }
    },
    {
      "localID": 1,
      "typeID": "condition.compare",
      "customName": "Invoice?",
      "isDisabled": false,
      "x": 380.0,
      "y": 110.0,
      "config": {
        "rules": [
          {
            "field": "fileExtension",
            "operator": "equals",
            "value": "pdf",
            "negate": false
          },
          {
            "field": "fileName",
            "operator": "contains",
            "value": "invoice",
            "negate": false
          }
        ],
        "logic": "and",
        "caseInsensitive": true
      }
    },
    {
      "localID": 2,
      "typeID": "condition.compare",
      "customName": "Receipt?",
      "isDisabled": false,
      "x": 380.0,
      "y": 330.0,
      "config": {
        "rules": [
          {
            "field": "fileExtension",
            "operator": "equals",
            "value": "pdf",
            "negate": false
          },
          {
            "field": "fileName",
            "operator": "contains",
            "value": "receipt",
            "negate": false
          }
        ],
        "logic": "and",
        "caseInsensitive": true
      }
    },
    {
      "localID": 3,
      "typeID": "action.move_file",
      "customName": "File invoice",
      "isDisabled": false,
      "x": 700.0,
      "y": 110.0,
      "config": {
        "destination": "~/Documents/Invoices/{{fileName}}",
        "mode": "move",
        "overwrite": false,
        "createDirectories": true,
        "allowFolders": false
      }
    },
    {
      "localID": 4,
      "typeID": "action.move_file",
      "customName": "File receipt",
      "isDisabled": false,
      "x": 700.0,
      "y": 330.0,
      "config": {
        "destination": "~/Documents/Receipts/{{fileName}}",
        "mode": "move",
        "overwrite": false,
        "createDirectories": true,
        "allowFolders": false
      }
    },
    {
      "localID": 5,
      "typeID": "transformer.map_keys",
      "customName": "Invoice message",
      "isDisabled": false,
      "x": 1020.0,
      "y": 110.0,
      "config": {
        "mode": "template",
        "mappings": {
          "title": "Invoice to pay",
          "body": "{{fileName}} is in Documents/Invoices.",
          "level": "urgent"
        },
        "passthrough": false
      }
    },
    {
      "localID": 6,
      "typeID": "transformer.map_keys",
      "customName": "Receipt message",
      "isDisabled": false,
      "x": 1020.0,
      "y": 330.0,
      "config": {
        "mode": "template",
        "mappings": {
          "title": "Receipt filed",
          "body": "{{fileName}} is in Documents/Receipts.",
          "level": "info"
        },
        "passthrough": false
      }
    },
    {
      "localID": 7,
      "typeID": "action.run_watchflow",
      "customName": "Tell Me (invoice)",
      "isDisabled": false,
      "x": 1340.0,
      "y": 110.0,
      "config": {
        "runSpec": {
          "inputMode": "passUpstream",
          "invocations": [
            {
              "namespace": "tell_me",
              "workflowID": "SMOKE_FLOW",
              "cachedName": "Tell Me"
            }
          ]
        }
      }
    },
    {
      "localID": 8,
      "typeID": "action.run_watchflow",
      "customName": "Tell Me (receipt)",
      "isDisabled": false,
      "x": 1340.0,
      "y": 330.0,
      "config": {
        "runSpec": {
          "inputMode": "passUpstream",
          "invocations": [
            {
              "namespace": "tell_me",
              "workflowID": "SMOKE_FLOW",
              "cachedName": "Tell Me"
            }
          ]
        }
      }
    },
    {
      "localID": 9,
      "typeID": "note",
      "customName": "Sort section",
      "isDisabled": false,
      "x": 30.0,
      "y": 50.0,
      "config": {
        "backdrop": true,
        "color": "#64B5F6",
        "text": "Sort",
        "_width": 610.0,
        "_height": 420.0
      }
    },
    {
      "localID": 10,
      "typeID": "note",
      "customName": "File section",
      "isDisabled": false,
      "x": 670.0,
      "y": 50.0,
      "config": {
        "backdrop": true,
        "color": "#81C784",
        "text": "File it",
        "_width": 610.0,
        "_height": 420.0
      }
    },
    {
      "localID": 11,
      "typeID": "note",
      "customName": "Tell section",
      "isDisabled": false,
      "x": 1310.0,
      "y": 50.0,
      "config": {
        "backdrop": true,
        "color": "#F5A623",
        "text": "Tell me",
        "_width": 290.0,
        "_height": 420.0
      }
    }
  ],
  "connections": [
    {
      "sourceLocalID": 0,
      "sourcePortID": "outlet_output",
      "targetLocalID": 1,
      "targetPortID": "inlet_input"
    },
    {
      "sourceLocalID": 0,
      "sourcePortID": "outlet_output",
      "targetLocalID": 2,
      "targetPortID": "inlet_input"
    },
    {
      "sourceLocalID": 1,
      "sourcePortID": "outlet_yes",
      "targetLocalID": 3,
      "targetPortID": "inlet_input"
    },
    {
      "sourceLocalID": 2,
      "sourcePortID": "outlet_yes",
      "targetLocalID": 4,
      "targetPortID": "inlet_input"
    },
    {
      "sourceLocalID": 3,
      "sourcePortID": "outlet_output",
      "targetLocalID": 5,
      "targetPortID": "inlet_input"
    },
    {
      "sourceLocalID": 4,
      "sourcePortID": "outlet_output",
      "targetLocalID": 6,
      "targetPortID": "inlet_input"
    },
    {
      "sourceLocalID": 5,
      "sourcePortID": "outlet_output",
      "targetLocalID": 7,
      "targetPortID": "inlet_input"
    },
    {
      "sourceLocalID": 6,
      "sourcePortID": "outlet_output",
      "targetLocalID": 8,
      "targetPortID": "inlet_input"
    }
  ],
  "background": {
    "type": "image",
    "ref": {
      "type": "bundled",
      "id": "graphite"
    },
    "fit": "cover"
  }
}
