{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "148E7020-51CC-4E63-A07A-B20567E536C2",
    "name": "Holded: purchase side reconciliation"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 109.40462863491058,
        "y": -37.361767797192556,
        "zoom": 0.7012496253212007
      },
      "autoSave": true,
      "descriptions": {
        "flow": "Run it on a weekly schedule. Lists Holded purchase invoices, payments and the daily ledger for the past seven days, posts a reconciliation to Slack, and when a correcting journal is needed, asks the controller in Slack before posting it to the ledger.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Each week, lists Holded purchase invoices, payments and the daily ledger for the past seven days, posts a reconciliation to Slack, and asks the controller before posting any correcting journal.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": true,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Set the period Result"
          },
          "position": {
            "x": 110,
            "y": 130
          }
        },
        "flowElementId": "84ADD5B9-BE2E-473D-83FC-2FD537FF1E2D",
        "groupId": null,
        "id": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const end = new Date();\nconst start = new Date(end.getTime() - 7 * 24 * 60 * 60 * 1000);\nconst ymd = (d) => d.toISOString().slice(0, 10);\nreturn {\n  startDate: ymd(start),\n  endDate: ymd(end),\n  paymentQuery: { starttmp: Math.floor(start.getTime() / 1000), endtmp: Math.floor(end.getTime() / 1000) },\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Period",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Set the period",
        "nextElementIds": [
          "3174E12A-49F7-4345-9F87-28BBDF19EE6A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the payments recorded on a Holded account.",
          "elementId": "EXTENSION:::SHARED:::default:::holded:::listPayments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "List payments Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::holded:::listPayments",
          "legacyElementId": "JS###v1###HoldedService###listPayments",
          "methodName": "listPayments",
          "position": {
            "x": 703.7751870134225,
            "y": 131.7218983766778
          }
        },
        "flowElementId": "B110C28A-3873-4AD4-A9FF-0497D7BEAF81",
        "groupId": null,
        "id": "C395AC29-BB6F-4E7B-994F-7E01B4B3A437",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "page",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "properties",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "paymentQuery",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC"
                  }
                ],
                "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": "listPayments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Payments",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "holded",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "List payments",
        "nextElementIds": [
          "29E731E1-6849-470F-938D-E5CD2910A63F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists Holded documents of one kind: invoices, sales receipts, credit notes, sales orders, proformas, waybills, estimates, purchase invoices, purchase orders or purchase refunds.",
          "elementId": "EXTENSION:::SHARED:::default:::holded:::listDocuments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "List purchase invoices Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::holded:::listDocuments",
          "legacyElementId": "JS###v1###HoldedService###listDocuments",
          "methodName": "listDocuments",
          "position": {
            "x": 403.4437967533556,
            "y": 123.11240649328877
          }
        },
        "flowElementId": "4EEB9468-FF6B-4BA8-AC4D-131A14DA60EF",
        "groupId": null,
        "id": "3174E12A-49F7-4345-9F87-28BBDF19EE6A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "purchase"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "contactId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "startDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "startDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "endDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "endDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paidStatus",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billed",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sort",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "page",
              "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": "listDocuments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Purchase invoices",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "holded",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "List purchase invoices",
        "nextElementIds": [
          "C395AC29-BB6F-4E7B-994F-7E01B4B3A437"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the expense accounts of a Holded account, which is where a purchase document books to.",
          "elementId": "EXTENSION:::SHARED:::default:::holded:::listExpenseAccounts",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "List expense accounts Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::holded:::listExpenseAccounts",
          "legacyElementId": "JS###v1###HoldedService###listExpenseAccounts",
          "methodName": "listExpenseAccounts",
          "position": {
            "x": 980.7210727181284,
            "y": 271.19566688758016
          }
        },
        "flowElementId": "5F3DD907-8746-40F3-AE91-9C6E003DB198",
        "groupId": null,
        "id": "11C6B175-5E58-4041-A38F-895619B50B3D",
        "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": "listExpenseAccounts",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Expense accounts",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "holded",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "List expense accounts",
        "nextElementIds": [
          "E8DE68CA-0355-43AC-BAB8-4C38CAC33D22"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Reads the Holded daily ledger, which is the double entry accounting side of the account.",
          "elementId": "EXTENSION:::SHARED:::default:::holded:::listLedgerEntries",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the daily ledger Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::holded:::listLedgerEntries",
          "legacyElementId": "JS###v1###HoldedService###listLedgerEntries",
          "methodName": "listLedgerEntries",
          "position": {
            "x": 980,
            "y": 124.83430486996656
          }
        },
        "flowElementId": "DC8E2667-5D44-4A21-A879-B6B468C76A90",
        "groupId": null,
        "id": "29E731E1-6849-470F-938D-E5CD2910A63F",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "startDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "startDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "endDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "endDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "page",
              "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": "listLedgerEntries",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Ledger entries",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "holded",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the daily ledger",
        "nextElementIds": [
          "11C6B175-5E58-4041-A38F-895619B50B3D"
        ],
        "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": "Post the reconciliation to Slack Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 229.10188222755573,
            "y": 273.45597300368115
          }
        },
        "flowElementId": "D4B697A6-673E-48FF-819C-603CBE224877",
        "groupId": null,
        "id": "8DF25D87-9D8D-4248-BC7D-6FEE19AB187D",
        "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": "Reconciliation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "report",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E8DE68CA-0355-43AC-BAB8-4C38CAC33D22"
                  }
                ],
                "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": "EXPRESSION",
                "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": "EXPRESSION",
                "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": "Reconciliation post",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post the reconciliation to Slack",
        "nextElementIds": [
          "0FFE5178-1463-4C2F-966A-F01B5752F511"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Reconcile the purchase side Result"
          },
          "tools": {},
          "position": {
            "x": 585.405518800361,
            "y": 282.01212730786597
          }
        },
        "flowElementId": "CE10F0C7-2395-4FB4-ADEB-1F54CFABC4D9",
        "groupId": null,
        "id": "E8DE68CA-0355-43AC-BAB8-4C38CAC33D22",
        "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": "Reconciliation",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You reconcile the purchase side of a Holded account for the controller. For one period you get the purchase invoices, the payments, the daily ledger entries and the expense accounts.\n\nMatch each purchase invoice to its payments by supplier and amount. Only payments made to suppliers count; ignore money received from clients. Then check that each purchase invoice and each supplier payment has its entry in the daily ledger, booked to an account that appears in the expense accounts or the ledger.\n\nReply with JSON only, with these fields:\nreport: a short reconciliation for Slack, using Slack formatting. Start with the period. List the purchase invoices with no matching payment (number, supplier, amount pending), then the payments with no matching purchase invoice (date, amount, contact), then any ledger differences. If everything matches, say so in one line.\njournalNeeded: true only when a ledger entry is missing or wrong and a correcting journal entry would fix it. An unpaid invoice on its own does not need a journal. Otherwise false.\njournal: when journalNeeded is true, an object with date (YYYY-MM-DD), description, reason (one sentence on what it corrects) and lines, an array of objects with account (an account number taken from the ledger or the expense accounts), debit and credit as numbers. The debits and the credits must add up to the same total. When journalNeeded is false, an empty object."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Period: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Period",
                "subPathSegments": [
                  {
                    "key": "startDate",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " to "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Period",
                "subPathSegments": [
                  {
                    "key": "endDate",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nPurchase invoices:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Purchase invoices",
                "subPathSegments": null,
                "type": "ELEMENT_LINK",
                "value": "3174E12A-49F7-4345-9F87-28BBDF19EE6A"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nPayments:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Payments",
                "subPathSegments": null,
                "type": "ELEMENT_LINK",
                "value": "C395AC29-BB6F-4E7B-994F-7E01B4B3A437"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nDaily ledger:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Ledger entries",
                "subPathSegments": null,
                "type": "ELEMENT_LINK",
                "value": "29E731E1-6849-470F-938D-E5CD2910A63F"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nExpense accounts:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Expense accounts",
                "subPathSegments": null,
                "type": "ELEMENT_LINK",
                "value": "11C6B175-5E58-4041-A38F-895619B50B3D"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Reconcile the purchase side",
        "nextElementIds": [
          "8DF25D87-9D8D-4248-BC7D-6FEE19AB187D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 508.80273140527436,
            "y": 603.5220535863971
          }
        },
        "flowElementId": "560829FA-150A-468B-9D2D-9C4359B0B730",
        "groupId": null,
        "id": "A88EAE97-1057-4350-9FC9-FC494EF827CC",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "889950fe-11c8-46e2-b97c-0481e71146f2",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Controller decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "C80A6F7A-574E-430C-92AA-E4BA68AAEBDD"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "post"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "889950fe-11c8-46e2-b97c-0481e71146f2"
            ]
          },
          "elseComponent": {
            "componentId": "1C63F121-98DD-450D-885B-8CA61752EAB2",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Post it",
          "storeResult": false,
          "thenComponent": {
            "componentId": "E26737CC-2252-4BD3-8D63-8DC7FC871376",
            "componentType": "ELEMENT"
          }
        },
        "name": "Post it?",
        "nextElementIds": [
          "1C63F121-98DD-450D-885B-8CA61752EAB2",
          "E26737CC-2252-4BD3-8D63-8DC7FC871376"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a Holded double entry ledger entry from balanced lines.",
          "elementId": "EXTENSION:::SHARED:::default:::holded:::createLedgerEntry",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Post the journal in Holded Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::holded:::createLedgerEntry",
          "legacyElementId": "JS###v1###HoldedService###createLedgerEntry",
          "methodName": "createLedgerEntry",
          "position": {
            "x": 495.7486171099811,
            "y": 783.8600987248127
          }
        },
        "flowElementId": "48B91363-CFB3-4A6A-9861-67B8B2CC9A4E",
        "groupId": null,
        "id": "E26737CC-2252-4BD3-8D63-8DC7FC871376",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "lines",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Journal question",
                    "subPathSegments": [
                      {
                        "key": "lines",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "72609682-A437-40BA-B1BF-0075DB9032C4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Journal question",
                    "subPathSegments": [
                      {
                        "key": "date",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "72609682-A437-40BA-B1BF-0075DB9032C4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "description",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Journal question",
                    "subPathSegments": [
                      {
                        "key": "description",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "72609682-A437-40BA-B1BF-0075DB9032C4"
                  }
                ],
                "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": "createLedgerEntry",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Journal entry",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "holded",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post the journal in Holded",
        "nextElementIds": [
          "C9659B69-E466-416B-AEAD-8325F3163C79"
        ],
        "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 controller Result"
          },
          "position": {
            "x": 449.1717839226899,
            "y": 457.64576172900234
          }
        },
        "flowElementId": "E7BDD355-ED76-4CD4-8BD0-34692569DA1D",
        "groupId": null,
        "id": "72609682-A437-40BA-B1BF-0075DB9032C4",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "journal",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Reconciliation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "journal",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E8DE68CA-0355-43AC-BAB8-4C38CAC33D22"
                  }
                ],
                "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 j = journal || {};\nconst num = (v) => Number(v) || 0;\nconst lines = (Array.isArray(j.lines) ? j.lines : []).map((l) => ({ account: String(l.account), debit: num(l.debit), credit: num(l.credit) }));\nconst debit = lines.reduce((t, l) => t + l.debit, 0);\nconst credit = lines.reduce((t, l) => t + l.credit, 0);\nconst balanced = lines.length >= 2 && Math.abs(debit - credit) < 0.005;\nconst fmt = (n) => n.toFixed(2);\nconst link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst rows = lines.map((l) => `${l.account}   debit ${fmt(l.debit)}   credit ${fmt(l.credit)}`);\nconst text = [\n  `*Correcting journal drafted for ${j.date || 'this period'}*`,\n  j.reason ? `What it corrects: ${j.reason}` : null,\n  j.description ? `Description: ${j.description}` : null,\n  '```' + rows.join('\\n') + '```',\n  `Debits ${fmt(debit)}, credits ${fmt(credit)}.` + (balanced ? '' : ' *These do not balance, so it cannot be posted as drafted.*'),\n].filter(Boolean).join('\\n');\nconst buttons = [];\nif (balanced) buttons.push({ type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Post the journal' }, url: link('post') });\nbuttons.push({ type: 'button', text: { type: 'plain_text', text: 'Leave it' }, url: link('leave') });\nreturn {\n  text: 'A correcting journal is waiting for your decision',\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text } },\n    { type: 'actions', elements: buttons },\n  ],\n  lines,\n  date: j.date || '',\n  description: j.description || '',\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Journal question",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the controller",
        "nextElementIds": [
          "8BB84BBE-9EA5-4E0C-B61D-AFCDD685412F"
        ],
        "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": "Ask the controller Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 879.1306225938113,
            "y": 453.0718119175962
          }
        },
        "flowElementId": "727EFCCF-2060-4DDE-AA53-DEC54D3CF072",
        "groupId": null,
        "id": "8BB84BBE-9EA5-4E0C-B61D-AFCDD685412F",
        "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": "Journal question",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "72609682-A437-40BA-B1BF-0075DB9032C4"
                  }
                ],
                "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": "EXPRESSION",
                "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": "EXPRESSION",
                "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": "Journal question",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "72609682-A437-40BA-B1BF-0075DB9032C4"
                  }
                ],
                "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 controller",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the controller",
        "nextElementIds": [
          "C80A6F7A-574E-430C-92AA-E4BA68AAEBDD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 42.48524212632108,
            "y": 464.2374825763998
          }
        },
        "flowElementId": "4D051B1F-EEF4-4359-AF9F-B20B56DAC5EB",
        "groupId": null,
        "id": "0FFE5178-1463-4C2F-966A-F01B5752F511",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "c0230903-e8bf-4d47-9b61-e71d8108af7b",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Reconciliation",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "journalNeeded",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "E8DE68CA-0355-43AC-BAB8-4C38CAC33D22"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "c0230903-e8bf-4d47-9b61-e71d8108af7b"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Journal needed",
          "storeResult": false,
          "thenComponent": {
            "componentId": "72609682-A437-40BA-B1BF-0075DB9032C4",
            "componentType": "ELEMENT"
          }
        },
        "name": "Correcting journal needed?",
        "nextElementIds": [
          "72609682-A437-40BA-B1BF-0075DB9032C4"
        ],
        "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": "Confirm the journal is left Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 67.39846913492906,
            "y": 787.6981204590155
          }
        },
        "flowElementId": "FA437F34-E2FF-48ED-AA7F-9DC56E5AE8E3",
        "groupId": null,
        "id": "1C63F121-98DD-450D-885B-8CA61752EAB2",
        "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": "Left as drafted. Nothing was posted to Holded."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to controller",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8BB84BBE-9EA5-4E0C-B61D-AFCDD685412F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "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": "EXPRESSION",
                "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": "Left confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the journal is left",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 837.2067837127165,
            "y": 596.3385874203722
          }
        },
        "flowElementId": "7778D90D-B0A3-41B3-9FE1-E565F0257151",
        "groupId": null,
        "id": "C80A6F7A-574E-430C-92AA-E4BA68AAEBDD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Controller decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the controller's answer",
        "nextElementIds": [
          "A88EAE97-1057-4350-9FC9-FC494EF827CC"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "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": "Confirm the journal is posted Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 830.5179749036041,
            "y": 783.8600987248127
          }
        },
        "flowElementId": "8C0B13ED-1640-4B55-9F6E-3328A9065D13",
        "groupId": null,
        "id": "C9659B69-E466-416B-AEAD-8325F3163C79",
        "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": "Posted. The correcting journal is in the Holded daily ledger."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to controller",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8BB84BBE-9EA5-4E0C-B61D-AFCDD685412F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "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": "EXPRESSION",
                "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": "Posted confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the journal is posted",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "17178DB1-FB7A-4CC1-B8B7-08A690CCDDAC",
    "groups": [],
    "id": "E52E3630-38DB-41F1-8898-3DF2ACD56985",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "The Anthropic key the reconciliation agent uses.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the controller'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:54:45.300Z"
}
