{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "E326BA72-4EA8-4742-A733-A20EACAEA07E",
    "name": "sevdesk: statement rows matched and booked"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 39.09319967944248,
        "y": -101.7301350040998,
        "zoom": 0.5872309856068271
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When a bank statement row lands in a Google Sheet, matches it against open invoices and unpaid vouchers in sevdesk, posts it to the sevdesk file import account, books confident matches, marks recurring personal items private with a rule, and writes everything else to a review list in Google Sheets. Nothing is enshrined.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a bank statement row lands in a Google Sheet, posts it to the sevdesk file import account, matches it against open invoices and unpaid vouchers, books confident matches, marks recurring personal items private with a rule, and writes everything else to a review list in Google Sheets. Nothing is enshrined.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the review line Result"
          },
          "position": {
            "x": 749.7713111174645,
            "y": 644.5878341342908
          }
        },
        "flowElementId": "A9FBB312-CC55-400D-9511-3D5F939C68E8",
        "groupId": null,
        "id": "53A38B86-A748-47FE-9837-F50822856367",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "valueDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "valueDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "amount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "payee",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "payee",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "purpose",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "purpose",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reason",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "reason",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "transactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Posted row",
                    "subPathSegments": [
                      {
                        "key": "objects",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3ABEAE2-0776-455E-8F53-E197AB14A63E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "return {\n  row: {\n    Date: valueDate,\n    Amount: amount,\n    Payee: payee,\n    Purpose: purpose,\n    Reason: reason,\n    'Transaction ID': transactionId,\n  },\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Review line",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the review line",
        "nextElementIds": [
          "13AAE4FC-943D-42D5-BA5D-6961C1B42F14"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the vouchers of a sevdesk account, which are the receipts behind expenses and revenue, with filters for status, direction, supplier and date range.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::listVouchers",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get unpaid vouchers Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::listVouchers",
          "legacyElementId": "JS###v1###SevdeskService###listVouchers",
          "methodName": "listVouchers",
          "position": {
            "x": 690,
            "y": 310
          }
        },
        "flowElementId": "84109E71-E527-4382-B2FF-8D3557AD11C1",
        "groupId": null,
        "id": "2D1473ED-A573-4E98-B969-66071E90966C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "100"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "creditDebit",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "descriptionLike",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "contactId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "startDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "endDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 100
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offset",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "countAll",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "embed",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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": "listVouchers",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Unpaid vouchers",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get unpaid vouchers",
        "nextElementIds": [
          "21A2DC29-6366-4D7A-B812-E321FEE42871"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "router",
          "isFirstElement": false,
          "blockDefinitionId": "router",
          "casesViewMode": {
            "22bebd8f-2ab9-4766-ba83-e0674f45f352": "SIMPLE",
            "fc646879-b478-4748-aa1e-6fa866318e9f": "SIMPLE",
            "c8d6e8be-e6c1-4dc2-9b30-d4dc92b76831": "SIMPLE"
          },
          "position": {
            "x": 272.45149541269683,
            "y": 894.1529451483163
          }
        },
        "flowElementId": "033F463C-6873-4232-847F-B6CD03344846",
        "groupId": null,
        "id": "8836854D-5AE2-4419-9B77-8F907BAE35AB",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Match type",
          "storeResult": true,
          "switchCases": [
            {
              "defaultCase": false,
              "id": "22bebd8f-2ab9-4766-ba83-e0674f45f352",
              "label": "Invoice",
              "nextComponents": [
                {
                  "componentId": "888B4D1B-3C3C-435C-A2CC-D49D751574DE",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "invoice"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "fc646879-b478-4748-aa1e-6fa866318e9f",
              "label": "Voucher",
              "nextComponents": [
                {
                  "componentId": "C6EF4481-F237-476D-BD92-254CE7E5D264",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "voucher"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "c8d6e8be-e6c1-4dc2-9b30-d4dc92b76831",
              "label": "Private",
              "nextComponents": [
                {
                  "componentId": "259AB40D-A350-4190-B2D4-E5CE615E8F3E",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "private"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": true,
              "id": "42e1f4ce-8c24-4348-aedc-554963047a5e",
              "label": "Everything Else",
              "nextComponents": [
                {
                  "componentId": "53A38B86-A748-47FE-9837-F50822856367",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": null
            }
          ],
          "switchExpression": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Row match",
                "subPathSegments": [
                  {
                    "key": "output",
                    "optional": false
                  },
                  {
                    "key": "match",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "What did it match?",
        "nextElementIds": [
          "53A38B86-A748-47FE-9837-F50822856367",
          "888B4D1B-3C3C-435C-A2CC-D49D751574DE",
          "C6EF4481-F237-476D-BD92-254CE7E5D264",
          "259AB40D-A350-4190-B2D4-E5CE615E8F3E"
        ],
        "nextGroupIds": [],
        "type": "VALUE_ROUTER"
      },
      {
        "clientMetadata": {
          "notes": "Monitors Google Sheets for new rows and triggers AI workflows when data is added. Perfect for automated processing of form submissions, real-time data analysis, or immediate response to user input in collaborative spreadsheets. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::onNewRow",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::google-sheets:::onNewRow",
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::onNewRow",
          "legacyElementId": "JS###v1###GoogleSheets###onNewRow",
          "methodName": "onNewRow",
          "position": {
            "x": 110,
            "y": 310
          }
        },
        "flowElementId": "B8686FEE-F4AE-4206-96D2-41145F83535F",
        "groupId": null,
        "id": "F123D65A-AF39-47D9-A1DF-DFF97F00D134",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'New statement row', Error: Document is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewRow",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New statement row",
          "serviceId": "google-sheets",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New statement row",
        "nextElementIds": [
          "01594330-9B53-422E-AFC9-035D8FE3BD68"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Match the row Result"
          },
          "tools": {},
          "position": {
            "x": 930.8169055869132,
            "y": 473.1918661798814
          }
        },
        "flowElementId": "FB93318D-B420-4E0B-BFEE-60168C1C66CB",
        "groupId": null,
        "id": "311D528E-A2BF-4194-8C0B-EF48490F12BB",
        "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": "Row match",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You match one bank statement row to the open documents in sevdesk. You get the row as it appears in the statement sheet, the open invoices (money customers owe the business), the unpaid vouchers (bills and receipts the business has to pay, or revenue receipts it is owed), and the rules that already mark personal transactions as private.\n\nReply with JSON only, with these fields:\nvalueDate: the date the money moved, as YYYY-MM-DD\namount: the amount as a number, negative for money going out; read a decimal comma correctly\npayee: the name of the other party\npurpose: the payment reference text, or empty text\niban: the other party's IBAN or account number, or empty text\nmatch: one of invoice, voucher, private, review\ndocumentId: for invoice or voucher, the id of the matched document; otherwise empty text\nbookAmount: the amount to book against that document, as a positive number\nruleExists: for private, true if one of the existing rules already covers this payee or purpose; otherwise false\nreason: one sentence saying why you chose this\n\nChoose invoice only for money coming in whose amount equals the invoice's open gross amount and whose reference or payer points to that one invoice. Choose voucher only when the amount equals the voucher's open gross amount and the payee or reference points to that one voucher. Choose private only for a personal payment that recurs, such as the owner's private rent, private insurance or a transfer to the owner's private account. If more than one document fits, nothing fits, or you are unsure, choose review."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Statement row:\n"
              },
              {
                "id": "RESULT",
                "label": "New statement row",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "F123D65A-AF39-47D9-A1DF-DFF97F00D134"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nOpen invoices:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Open invoices",
                "subPathSegments": [
                  {
                    "key": "objects",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "01594330-9B53-422E-AFC9-035D8FE3BD68"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nUnpaid vouchers:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Unpaid vouchers",
                "subPathSegments": [
                  {
                    "key": "objects",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "2D1473ED-A573-4E98-B969-66071E90966C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nExisting private rules:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Private rules",
                "subPathSegments": [
                  {
                    "key": "objects",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "21A2DC29-6366-4D7A-B812-E321FEE42871"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Match the row",
        "nextElementIds": [
          "573AC32A-B46C-47CF-80CE-4F3E49348984"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a bank transaction on a sevdesk check account. The vendor intends this for file import accounts rather than accounts connected to a bank.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::createTransaction",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Post the row to sevdesk Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::createTransaction",
          "legacyElementId": "JS###v1###SevdeskService###createTransaction",
          "methodName": "createTransaction",
          "position": {
            "x": 263.4312189698487,
            "y": 672.7749811335908
          }
        },
        "flowElementId": "AD6CC6F4-31CD-464F-B102-A196490867B7",
        "groupId": null,
        "id": "F3ABEAE2-0776-455E-8F53-E197AB14A63E",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "checkAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Import account",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "79F16F36-4443-4783-A78C-4B8640B5BF9C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "valueDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "valueDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "amount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "payeePayerName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "payee",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paymentPurpose",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "purpose",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "entryDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "payeePayerAccountNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "iban",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "payeePayerBankCode",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sourceTransactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "targetTransactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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": "createTransaction",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Posted row",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post the row to sevdesk",
        "nextElementIds": [
          "8836854D-5AE2-4419-9B77-8F907BAE35AB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the invoices of a sevdesk account, with filters for status, invoice number, contact and date range.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::listInvoices",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get open invoices Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::listInvoices",
          "legacyElementId": "JS###v1###SevdeskService###listInvoices",
          "methodName": "listInvoices",
          "position": {
            "x": 400,
            "y": 310
          }
        },
        "flowElementId": "5EF04AC6-1119-4352-AE65-552784F90BAD",
        "groupId": null,
        "id": "01594330-9B53-422E-AFC9-035D8FE3BD68",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "200"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "contactId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "startDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "endDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 100
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offset",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "countAll",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "embed",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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": "listInvoices",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Open invoices",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get open invoices",
        "nextElementIds": [
          "2D1473ED-A573-4E98-B969-66071E90966C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Books a payment against a sevdesk voucher by linking an amount, a date and a check account to it.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::bookVoucher",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Book the voucher Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::bookVoucher",
          "legacyElementId": "JS###v1###SevdeskService###bookVoucher",
          "methodName": "bookVoucher",
          "position": {
            "x": 749.7713111174645,
            "y": 1004.5878341342908
          }
        },
        "flowElementId": "885D8284-8F5D-41B0-A6EA-61F819D01DEE",
        "groupId": null,
        "id": "C6EF4481-F237-476D-BD92-254CE7E5D264",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "voucherId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "documentId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "bookAmount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "valueDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "type",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "FULL_PAYMENT"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "checkAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Import account",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "79F16F36-4443-4783-A78C-4B8640B5BF9C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "checkAccountTransactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Posted row",
                    "subPathSegments": [
                      {
                        "key": "objects",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3ABEAE2-0776-455E-8F53-E197AB14A63E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "createFeed",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "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": "bookVoucher",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Booked voucher",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Book the voucher",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the sevdesk rules that automatically mark matching bank transactions as private.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::listPrivateTransactionRules",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the private rules Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::listPrivateTransactionRules",
          "legacyElementId": "JS###v1###SevdeskService###listPrivateTransactionRules",
          "methodName": "listPrivateTransactionRules",
          "position": {
            "x": 980,
            "y": 310
          }
        },
        "flowElementId": "17060A0D-5DD6-4265-BCFA-15CB8F060708",
        "groupId": null,
        "id": "21A2DC29-6366-4D7A-B812-E321FEE42871",
        "metaInfo": {
          "bodyParams": [],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listPrivateTransactionRules",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Private rules",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the private rules",
        "nextElementIds": [
          "311D528E-A2BF-4194-8C0B-EF48490F12BB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Books a payment against a sevdesk invoice by linking an amount, a date and a check account to it, which is what marks it paid in the books.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::bookInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Book the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::bookInvoice",
          "legacyElementId": "JS###v1###SevdeskService###bookInvoice",
          "methodName": "bookInvoice",
          "position": {
            "x": 749.7713111174645,
            "y": 824.5878341342908
          }
        },
        "flowElementId": "59A41CD2-D3B0-4B2B-BAEA-C98490045018",
        "groupId": null,
        "id": "888B4D1B-3C3C-435C-A2CC-D49D751574DE",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "documentId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "bookAmount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "valueDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "type",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "FULL_PAYMENT"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "checkAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Import account",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "79F16F36-4443-4783-A78C-4B8640B5BF9C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "checkAccountTransactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Posted row",
                    "subPathSegments": [
                      {
                        "key": "objects",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3ABEAE2-0776-455E-8F53-E197AB14A63E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "createFeed",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "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": "bookInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Booked invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Book the invoice",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds new data rows to Google Sheets for AI agents to store processed results, log user interactions, or collect data from automated workflows. Perfect for building databases, tracking metrics, saving form submissions, or creating data collection pipelines.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add it to the review list Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "legacyElementId": "JS###v1###GoogleSheets###addRow",
          "methodName": "addRow",
          "position": {
            "x": 1039.7713111174644,
            "y": 644.5878341342908
          }
        },
        "flowElementId": "C331C8A7-CD32-42FC-8101-2153465D6A93",
        "groupId": null,
        "id": "13AAE4FC-943D-42D5-BA5D-6961C1B42F14",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "row",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Review line",
                    "subPathSegments": [
                      {
                        "key": "row",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "53A38B86-A748-47FE-9837-F50822856367"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Add it to the review list', Error: Document is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Review row",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add it to the review list",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates a sevdesk bank transaction. An enshrined transaction cannot be changed.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::updateTransaction",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Mark the row private Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::updateTransaction",
          "legacyElementId": "JS###v1###SevdeskService###updateTransaction",
          "methodName": "updateTransaction",
          "position": {
            "x": 1329.7713111174644,
            "y": 1184.587834134291
          }
        },
        "flowElementId": "F3DDB5AE-29F9-46D0-A659-F549F2EA94E3",
        "groupId": null,
        "id": "DA75E75A-6400-46B9-8960-4D9C9393638C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "transactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Posted row",
                    "subPathSegments": [
                      {
                        "key": "objects",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3ABEAE2-0776-455E-8F53-E197AB14A63E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paymentPurpose",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "valueDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "entryDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "payeePayerName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "checkAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "300"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sourceTransactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "targetTransactionId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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": "updateTransaction",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Private row",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Mark the row private",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a sevdesk rule that automatically marks bank transactions matching a payment purpose or counterpart as private.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::createPrivateTransactionRule",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Create the private rule Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::createPrivateTransactionRule",
          "legacyElementId": "JS###v1###SevdeskService###createPrivateTransactionRule",
          "methodName": "createPrivateTransactionRule",
          "position": {
            "x": 1039.7713111174644,
            "y": 1004.5878341342908
          }
        },
        "flowElementId": "B942C3AC-87B4-4D9C-A0D2-DDF262630E22",
        "groupId": null,
        "id": "C3DCE43F-8F49-4DCA-940E-08A7FE4FEF09",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "paymentPurpose",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "counterpartName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Row match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "payee",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                  }
                ],
                "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": "createPrivateTransactionRule",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Private rule",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Create the private rule",
        "nextElementIds": [
          "DA75E75A-6400-46B9-8960-4D9C9393638C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 749.7713111174645,
            "y": 1184.587834134291
          }
        },
        "flowElementId": "D6CB7090-EDB7-48B4-A7E5-CDD3E7B8817F",
        "groupId": null,
        "id": "259AB40D-A350-4190-B2D4-E5CE615E8F3E",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "81af34df-010a-49aa-81bd-eb464a8c6b86",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Row match",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "ruleExists",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "311D528E-A2BF-4194-8C0B-EF48490F12BB"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "81af34df-010a-49aa-81bd-eb464a8c6b86"
            ]
          },
          "elseComponent": {
            "componentId": "C3DCE43F-8F49-4DCA-940E-08A7FE4FEF09",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Rule exists",
          "storeResult": false,
          "thenComponent": {
            "componentId": "DA75E75A-6400-46B9-8960-4D9C9393638C",
            "componentType": "ELEMENT"
          }
        },
        "name": "Private rule already there?",
        "nextElementIds": [
          "DA75E75A-6400-46B9-8960-4D9C9393638C",
          "C3DCE43F-8F49-4DCA-940E-08A7FE4FEF09"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pick the import account Result"
          },
          "position": {
            "x": 274,
            "y": 474
          }
        },
        "flowElementId": "7F7601D6-5A9F-4198-99B8-BC60B25D466E",
        "groupId": null,
        "id": "79F16F36-4443-4783-A78C-4B8640B5BF9C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "accounts",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Check accounts",
                    "subPathSegments": [
                      {
                        "key": "objects",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "573AC32A-B46C-47CF-80CE-4F3E49348984"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(accounts) ? accounts : [];\n// A file import account is the one sevdesk fills from CSV or MT940 statement files.\nconst imports = list.filter((a) => a && a.importType);\nif (!imports.length) {\n  throw new Error('No file import account found in sevdesk. Create one for CSV or MT940 statements first.');\n}\nreturn { id: String(imports[0].id), name: imports[0].name };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Import account",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick the import account",
        "nextElementIds": [
          "F3ABEAE2-0776-455E-8F53-E197AB14A63E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the sevdesk check accounts, which are the bank accounts, cash boxes and clearing accounts every booking has to name.",
          "elementId": "EXTENSION:::SHARED:::default:::sevdesk:::listCheckAccounts",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the import account Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::sevdesk:::listCheckAccounts",
          "legacyElementId": "JS###v1###SevdeskService###listCheckAccounts",
          "methodName": "listCheckAccounts",
          "position": {
            "x": 598,
            "y": 476
          }
        },
        "flowElementId": "8CE1902D-A6A9-4E91-92B6-379CAE117F9C",
        "groupId": null,
        "id": "573AC32A-B46C-47CF-80CE-4F3E49348984",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offset",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "countAll",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "embed",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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": "listCheckAccounts",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Check accounts",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "sevdesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the import account",
        "nextElementIds": [
          "79F16F36-4443-4783-A78C-4B8640B5BF9C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "F123D65A-AF39-47D9-A1DF-DFF97F00D134",
    "groups": [],
    "id": "B9F0C9A1-7400-47E8-AF74-C43CA3A5578A",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The Anthropic key the AI step uses.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        }
      ],
      "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:20.977Z"
}
