{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "AABCA7E2-BF9A-4F8A-BA5F-8D6DB92E04E2",
    "name": "Tripletex: bank reconciliation with a person"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 108.6317902138394,
        "y": -38.64254137225379,
        "zoom": 0.6615857199540607
      },
      "autoSave": true,
      "descriptions": {
        "flow": "Runs Tripletex's own match suggestions on the open bank reconciliation, accepts the ones an AI agent can back with open posts, and asks the accountant in Slack to approve or reject the rest.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Runs Tripletex's own match suggestions on the open bank reconciliation, accepts the ones an AI agent can back with open posts, and asks the accountant in Slack to approve or reject the rest.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "router",
          "isFirstElement": false,
          "blockDefinitionId": "router",
          "casesViewMode": {
            "54531240-4108-48c0-b1f5-2e9f0028df85": "SIMPLE",
            "5742a0a6-288f-4c90-808d-fd496691bce2": "SIMPLE"
          },
          "position": {
            "x": 473.68668165843644,
            "y": 827.4361047624247
          }
        },
        "flowElementId": "381077F2-1019-4E3A-9A01-379A9FA5E3C3",
        "groupId": null,
        "id": "F9BC9BEB-2197-4BDB-9F55-31D4A33AF33F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Decision route",
          "storeResult": true,
          "switchCases": [
            {
              "defaultCase": false,
              "id": "54531240-4108-48c0-b1f5-2e9f0028df85",
              "label": "Approve",
              "nextComponents": [
                {
                  "componentId": "1441DD02-1AEB-4920-B74E-4CD729D77047",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "approve"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "5742a0a6-288f-4c90-808d-fd496691bce2",
              "label": "Reject",
              "nextComponents": [
                {
                  "componentId": "98AA9810-33EC-4F26-9375-3CA4CF6FD2AD",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "reject"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": true,
              "id": "c83869d1-b6e9-4291-89ca-eefac7337d5e",
              "label": "Everything Else",
              "nextComponents": [],
              "type": "SIMPLE",
              "value": null
            }
          ],
          "switchExpression": {
            "expression": [
              {
                "id": "RESULT",
                "label": "Accountant decision",
                "subPathSegments": [
                  {
                    "key": "decision",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "1D9E6EE8-92D4-4DFD-B6FA-A17572CD997C"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Approve or reject the rest?",
        "nextElementIds": [
          "98AA9810-33EC-4F26-9375-3CA4CF6FD2AD",
          "1441DD02-1AEB-4920-B74E-4CD729D77047"
        ],
        "nextGroupIds": [],
        "type": "VALUE_ROUTER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 721.722435172125,
            "y": 132.88385774292044
          }
        },
        "flowElementId": "4AAC48D8-5C56-4089-824B-7FEE367FDF2F",
        "groupId": null,
        "id": "F4A1543C-6B9B-4002-B425-A7AC49D66809",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "dd734473-9ac2-4f26-90a3-70498e0ce2cc",
                "nestedOperation": null,
                "operation": "isNotTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Reconciliation",
                      "subPathSegments": [
                        {
                          "key": "value",
                          "optional": false
                        },
                        {
                          "key": "isClosed",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "36D8DAC5-FC2E-4DFE-9DA0-F50F089BC328"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "dd734473-9ac2-4f26-90a3-70498e0ce2cc"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Still open",
          "storeResult": false,
          "thenComponent": {
            "componentId": "10CECD09-9867-46B8-8C3F-F0DDCAD8C7F4",
            "componentType": "ELEMENT"
          }
        },
        "name": "Reconciliation still open?",
        "nextElementIds": [
          "10CECD09-9867-46B8-8C3F-F0DDCAD8C7F4"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 725.1231834245294,
            "y": 277.076744888943
          }
        },
        "flowElementId": "1132F48E-A499-4AC9-A23C-5FEB61043FD9",
        "groupId": null,
        "id": "A1BC03B4-6C8D-466B-885A-2B6867D9E585",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "37924a29-d661-443a-9aef-737cd832bd84",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Suggestions",
                      "subPathSegments": [
                        {
                          "key": "values",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "8A6DF7F4-4D57-4E50-8825-AD85FD180D19"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "37924a29-d661-443a-9aef-737cd832bd84"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Has suggestions",
          "storeResult": false,
          "thenComponent": {
            "componentId": "F14E727D-0C5B-4D9B-89EF-BEB376BC3F88",
            "componentType": "ELEMENT"
          }
        },
        "name": "Any suggestions?",
        "nextElementIds": [
          "F14E727D-0C5B-4D9B-89EF-BEB376BC3F88"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the accountant Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 868.4506831044832,
            "y": 633.5343533434237
          }
        },
        "flowElementId": "96E37F21-01A3-4A24-AEF7-3911D94C755F",
        "groupId": null,
        "id": "B1BA6CEF-561A-4FEA-93E7-7FFB1DF86642",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "47A84A5D-411D-48A1-B1C1-2929203828AB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "47A84A5D-411D-48A1-B1C1-2929203828AB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to accountant",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the accountant",
        "nextElementIds": [
          "1D9E6EE8-92D4-4DFD-B6FA-A17572CD997C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Report the run Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 833.7030888291192,
            "y": 464.8430042299582
          }
        },
        "flowElementId": "690D7467-F4EF-49CB-8F1C-71A5C90D285D",
        "groupId": null,
        "id": "D2431C39-6775-4EC8-9775-DAD33B470C50",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Bank reconciliation for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Bank account",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Bank account",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ": approved "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "acceptCount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " suggested matches that the open posts back up. Nothing is waiting for a decision. "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "looseEnds",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Run report",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Report the run",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Approve or reject bank reconciliation match suggestions. This is the Tripletex /bank/reconciliation/internal/match/updateSuggestions route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::updateSuggestionsBankReconciliationInternalMatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Accept the matches it can back up Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::updateSuggestionsBankReconciliationInternalMatch",
          "legacyElementId": "JS###v1###TripletexService###updateSuggestionsBankReconciliationInternalMatch",
          "methodName": "updateSuggestionsBankReconciliationInternalMatch",
          "position": {
            "x": 58.22498064759435,
            "y": 635.0865088653451
          }
        },
        "flowElementId": "03C5358A-9D6C-4A62-8A52-B3A35E13D78C",
        "groupId": null,
        "id": "63E83769-3972-408A-A47D-659F4871D5AF",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "approve",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "items",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "accept",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateSuggestionsBankReconciliationInternalMatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Accepted",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Accept the matches it can back up",
        "nextElementIds": [
          "D61860E6-3052-4F62-A9D6-5C7931C8CE64"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the accountant Result"
          },
          "position": {
            "x": 479.9038682361112,
            "y": 643.227482674739
          }
        },
        "flowElementId": "E53A43AC-6226-44BB-9210-82645C7569DF",
        "groupId": null,
        "id": "47A84A5D-411D-48A1-B1C1-2929203828AB",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "account",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Bank account",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Bank account",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "acceptCount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "acceptCount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reviewCount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "reviewCount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reviewNotes",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "reviewNotes",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "looseEnds",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "looseEnds",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst lines = [\n  `*Bank reconciliation for ${account}: ${reviewCount} suggested matches need your call*`,\n  Number(acceptCount) > 0 ? `${acceptCount} matches were backed up by open posts and are already approved.` : null,\n  reviewNotes,\n  looseEnds ? `Before you close the period: ${looseEnds}` : null,\n].filter(Boolean);\nreturn {\n  text: `Bank reconciliation for ${account}: ${reviewCount} suggested matches need your call`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Approve the rest' }, url: link('approve') },\n      { type: 'button', style: 'danger', text: { type: 'plain_text', text: 'Reject the rest' }, url: link('reject') },\n      { type: 'button', text: { type: 'plain_text', text: \"I'll do it in Tripletex\" }, url: link('leave') },\n    ] },\n  ],\n};\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the accountant",
        "nextElementIds": [
          "B1BA6CEF-561A-4FEA-93E7-7FFB1DF86642"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Get the last created reconciliation by account ID. This is the Tripletex /bank/reconciliation/>last route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::getBankReconciliationLast",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the latest reconciliation Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::getBankReconciliationLast",
          "legacyElementId": "JS###v1###TripletexService###getBankReconciliationLast",
          "methodName": "getBankReconciliationLast",
          "position": {
            "x": 400,
            "y": 130
          }
        },
        "flowElementId": "B7264ABF-A59A-4C3C-B94C-1A4D50A2E9FF",
        "groupId": null,
        "id": "36D8DAC5-FC2E-4DFE-9DA0-F50F089BC328",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "accountId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Bank account",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "id,version,isClosed,accountingPeriod(start,end)"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getBankReconciliationLast",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Reconciliation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the latest reconciliation",
        "nextElementIds": [
          "F4A1543C-6B9B-4002-B425-A7AC49D66809"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Find open posts corresponding with sent data. This is the Tripletex /ledger/posting/openPost route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::getLedgerPostingOpenPost",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the open posts Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::getLedgerPostingOpenPost",
          "legacyElementId": "JS###v1###TripletexService###getLedgerPostingOpenPost",
          "methodName": "getLedgerPostingOpenPost",
          "position": {
            "x": 395.01958239634774,
            "y": 267.28016740093784
          }
        },
        "flowElementId": "6A53E987-2F62-44E0-BFEE-BE4C1A7DC8A5",
        "groupId": null,
        "id": "F14E727D-0C5B-4D9B-89EF-BEB376BC3F88",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "2100-01-01"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "accountId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "supplierId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "employeeId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "departmentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "projectId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "productId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "accountNumberFrom",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "accountNumberTo",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1000
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sorting",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "id,date,description,amount,invoiceNumber,account(number,name),customer(name),supplier(name)"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getLedgerPostingOpenPost",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Open posts",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the open posts",
        "nextElementIds": [
          "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 825.653242729325,
            "y": 787.0089010892491
          }
        },
        "flowElementId": "66B65BB2-9CD0-4B72-A28E-08EB9331A7BE",
        "groupId": null,
        "id": "1D9E6EE8-92D4-4DFD-B6FA-A17572CD997C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Accountant decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the accountant's answer",
        "nextElementIds": [
          "F9BC9BEB-2197-4BDB-9F55-31D4A33AF33F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Approve or reject bank reconciliation match suggestions. This is the Tripletex /bank/reconciliation/internal/match/updateSuggestions route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::updateSuggestionsBankReconciliationInternalMatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Reject the rest Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::updateSuggestionsBankReconciliationInternalMatch",
          "legacyElementId": "JS###v1###TripletexService###updateSuggestionsBankReconciliationInternalMatch",
          "methodName": "updateSuggestionsBankReconciliationInternalMatch",
          "position": {
            "x": 714.211334029848,
            "y": 988.5190531920701
          }
        },
        "flowElementId": "314ADDD9-5EDE-4302-AABC-D45733F16918",
        "groupId": null,
        "id": "98AA9810-33EC-4F26-9375-3CA4CF6FD2AD",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "approve",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "items",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "review",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateSuggestionsBankReconciliationInternalMatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Rejected rest",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Reject the rest",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Suggest matches for a bank reconciliation by ID. This is the Tripletex /bank/reconciliation/internal/match/runAutoMatchAlgorithm route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::runAutoMatchAlgorithmBankReconciliationInternalMatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask Tripletex for match suggestions Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::runAutoMatchAlgorithmBankReconciliationInternalMatch",
          "legacyElementId": "JS###v1###TripletexService###runAutoMatchAlgorithmBankReconciliationInternalMatch",
          "methodName": "runAutoMatchAlgorithmBankReconciliationInternalMatch",
          "position": {
            "x": 1047.7706569586305,
            "y": 127.11614225707953
          }
        },
        "flowElementId": "FEDBBFC8-943A-4310-B873-BB4D2930B7A0",
        "groupId": null,
        "id": "10CECD09-9867-46B8-8C3F-F0DDCAD8C7F4",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "bankReconciliationId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Reconciliation",
                    "subPathSegments": [
                      {
                        "key": "value",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "36D8DAC5-FC2E-4DFE-9DA0-F50F089BC328"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "runAutoMatchAlgorithmBankReconciliationInternalMatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Auto match",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask Tripletex for match suggestions",
        "nextElementIds": [
          "8A6DF7F4-4D57-4E50-8825-AD85FD180D19"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 422.53897218767804,
            "y": 456.296189361586
          }
        },
        "flowElementId": "7A42893C-9FB3-480F-829F-389A5B298BAB",
        "groupId": null,
        "id": "D61860E6-3052-4F62-A9D6-5C7931C8CE64",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e129abdc-ade8-445b-9991-13ae652c761a",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Review",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "review",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "e129abdc-ade8-445b-9991-13ae652c761a"
            ]
          },
          "elseComponent": {
            "componentId": "D2431C39-6775-4EC8-9775-DAD33B470C50",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Has leftovers",
          "storeResult": false,
          "thenComponent": {
            "componentId": "47A84A5D-411D-48A1-B1C1-2929203828AB",
            "componentType": "ELEMENT"
          }
        },
        "name": "Anything left for a person?",
        "nextElementIds": [
          "D2431C39-6775-4EC8-9775-DAD33B470C50",
          "47A84A5D-411D-48A1-B1C1-2929203828AB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the bank reconciliation internal match of a Tripletex account, with the vendor's own filters, field selection and paging.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::listBankReconciliationInternalMatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "List the suggested matches Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::listBankReconciliationInternalMatch",
          "legacyElementId": "JS###v1###TripletexService###listBankReconciliationInternalMatch",
          "methodName": "listBankReconciliationInternalMatch",
          "position": {
            "x": 1079.3870247398263,
            "y": 269.0514911718857
          }
        },
        "flowElementId": "17D5652E-75A6-4450-86BA-9198397281C1",
        "groupId": null,
        "id": "8A6DF7F4-4D57-4E50-8825-AD85FD180D19",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "bankReconciliationId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Reconciliation",
                    "subPathSegments": [
                      {
                        "key": "value",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "36D8DAC5-FC2E-4DFE-9DA0-F50F089BC328"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "approved",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "query",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1000
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sorting",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "id,version,startDate,postingsGroup(title,totalAmount,entries(*)),transactionsGroup(title,totalAmount,entries(*))"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listBankReconciliationInternalMatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Suggestions",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "List the suggested matches",
        "nextElementIds": [
          "A1BC03B4-6C8D-466B-885A-2B6867D9E585"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check each suggestion Result"
          },
          "tools": {
            "EXTENSION:::SHARED:::default:::tripletex:::getBankReconciliationClosedWithUnmatchedTransactions": {
              "elementId": "EXTENSION:::SHARED:::default:::tripletex:::getBankReconciliationClosedWithUnmatchedTransactions",
              "dynamicOptionsLabels": {}
            }
          },
          "position": {
            "x": 29.117830977346472,
            "y": 264.0491242904993
          }
        },
        "flowElementId": "66BAC56D-5774-497F-A465-B8F6D8D87B5B",
        "groupId": null,
        "id": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "claude-sonnet-5",
          "aiProvider": "ANTHROPIC",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "Anthropic key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "Anthropic key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "Review",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You check the match suggestions Tripletex made for a bank reconciliation, before anyone approves them. Each suggestion pairs a group of bank transactions with a group of ledger postings. You also get the open posts in the ledger, the postings that are not closed yet.\n\nAccept a suggestion only when you can back it up: the amounts on both sides are equal, the bank text, reference, KID or invoice number points to the same customer, supplier or invoice as the postings, and those postings are among the open posts. Anything you are not sure of goes to a person. Never guess.\n\nBefore you answer, call the tool Get Bank Reconciliation Closed With Unmatched Transactions once. If it returns a closed reconciliation, somebody signed it off with unmatched transactions still in it: describe it in looseEnds with its period and closed date. If it returns nothing or fails, looseEnds is empty text.\n\nReply with JSON only, with these fields:\naccept: an array of {\"id\": <suggestion id>, \"version\": <suggestion version>} for the suggestions you can back up, empty array if none\nreview: an array of {\"id\": <suggestion id>, \"version\": <suggestion version>} for every other suggestion, empty array if none\nacceptCount: how many you accepted, as a number\nreviewCount: how many are left for a person, as a number\nreviewNotes: one short line per suggestion left for a person: the bank amount and text, what it was paired with, and why you could not back it up; empty text if none\nlooseEnds: one sentence about a closed reconciliation with unmatched transactions, or empty text"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [
            {
              "connectionId": null,
              "definition": {},
              "enabled": true,
              "hostType": "SHARED",
              "methodName": "getBankReconciliationClosedWithUnmatchedTransactions",
              "name": "Get Bank Reconciliation Closed With Unmatched Transactions",
              "notes": "Get the last closed reconciliation with unmached transactions by account ID. This is the Tripletex /bank/reconciliation/closedWithUnmatchedTransactions route.",
              "packageId": "default",
              "params": [
                {
                  "name": "accountId",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Bank account",
                        "subPathSegments": [
                          {
                            "key": "values",
                            "optional": false
                          },
                          {
                            "index": 0,
                            "last": false
                          },
                          {
                            "key": "id",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "start",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                },
                {
                  "name": "fields",
                  "type": "SIMPLE",
                  "value": {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "id,isClosed,closedDate,accountingPeriod(start,end)"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                }
              ],
              "serviceId": "tripletex",
              "type": "FR_FUNCTION"
            }
          ],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Bank account: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Bank account",
                "subPathSegments": [
                  {
                    "key": "values",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "number",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Bank account",
                "subPathSegments": [
                  {
                    "key": "values",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  },
                  {
                    "key": "name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "ADA14A71-1E41-4353-8FD9-A389B279D9CE"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nReconciliation period: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Reconciliation",
                "subPathSegments": [
                  {
                    "key": "value",
                    "optional": false
                  },
                  {
                    "key": "accountingPeriod",
                    "optional": false
                  },
                  {
                    "key": "start",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "36D8DAC5-FC2E-4DFE-9DA0-F50F089BC328"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " to "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Reconciliation",
                "subPathSegments": [
                  {
                    "key": "value",
                    "optional": false
                  },
                  {
                    "key": "accountingPeriod",
                    "optional": false
                  },
                  {
                    "key": "end",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "36D8DAC5-FC2E-4DFE-9DA0-F50F089BC328"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nSuggested matches:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Suggestions",
                "subPathSegments": [
                  {
                    "key": "values",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "8A6DF7F4-4D57-4E50-8825-AD85FD180D19"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nOpen posts:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Open posts",
                "subPathSegments": [
                  {
                    "key": "values",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "F14E727D-0C5B-4D9B-89EF-BEB376BC3F88"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Check each suggestion",
        "nextElementIds": [
          "032ABAB0-A3E0-4340-9618-190DCB3F6205"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Approve or reject bank reconciliation match suggestions. This is the Tripletex /bank/reconciliation/internal/match/updateSuggestions route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::updateSuggestionsBankReconciliationInternalMatch",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Approve the rest Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::updateSuggestionsBankReconciliationInternalMatch",
          "legacyElementId": "JS###v1###TripletexService###updateSuggestionsBankReconciliationInternalMatch",
          "methodName": "updateSuggestionsBankReconciliationInternalMatch",
          "position": {
            "x": 227.3335253256571,
            "y": 984.6109027109646
          }
        },
        "flowElementId": "188C0780-D0BD-4C04-B683-B722FB06AAF5",
        "groupId": null,
        "id": "1441DD02-1AEB-4920-B74E-4CD729D77047",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "approve",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "items",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "review",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateSuggestionsBankReconciliationInternalMatch",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Approved rest",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Approve the rest",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the ledger account of a Tripletex account, with the vendor's own filters, field selection and paging.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::listLedgerAccount",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the bank account Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::listLedgerAccount",
          "legacyElementId": "JS###v1###TripletexService###listLedgerAccount",
          "methodName": "listLedgerAccount",
          "position": {
            "x": 110,
            "y": 130
          }
        },
        "flowElementId": "1A98C3FA-2666-4986-990E-8CB8E8823219",
        "groupId": null,
        "id": "ADA14A71-1E41-4353-8FD9-A389B279D9CE",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "number",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "1920"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isBankAccount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isInactive",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isApplicableForSupplierInvoice",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "ledgerType",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isBalanceAccount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "saftCode",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sorting",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "id,number,name"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listLedgerAccount",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Bank account",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the bank account",
        "nextElementIds": [
          "36D8DAC5-FC2E-4DFE-9DA0-F50F089BC328"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 83.25168391534112,
            "y": 457.9117109168052
          }
        },
        "flowElementId": "D8657B8D-A752-40F8-B785-1D5989E8770C",
        "groupId": null,
        "id": "032ABAB0-A3E0-4340-9618-190DCB3F6205",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "44c67d34-5fd5-42e7-a9e0-8289281779e4",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Review",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "accept",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "DDA07849-EDC5-4007-9CB8-EE47EC9B3376"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "44c67d34-5fd5-42e7-a9e0-8289281779e4"
            ]
          },
          "elseComponent": {
            "componentId": "D61860E6-3052-4F62-A9D6-5C7931C8CE64",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Has accepted",
          "storeResult": false,
          "thenComponent": {
            "componentId": "63E83769-3972-408A-A47D-659F4871D5AF",
            "componentType": "ELEMENT"
          }
        },
        "name": "Any it can back up?",
        "nextElementIds": [
          "D61860E6-3052-4F62-A9D6-5C7931C8CE64",
          "63E83769-3972-408A-A47D-659F4871D5AF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "ADA14A71-1E41-4353-8FD9-A389B279D9CE",
    "groups": [],
    "id": "83684F6E-AC35-4F59-BF44-C15AF0EAE064",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "Your Anthropic API key, used by the AI step that checks the match suggestions.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the accountant's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-11-17T05:55:36.680Z"
}
