{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "A0D34324-D2B3-4490-94BC-EEBAD009D9C0",
    "name": "Fatture in Cloud: fix rejected e-invoices"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 147.14656991995855,
        "y": -201.13936112713077,
        "zoom": 0.5471468506303699
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When the exchange system refuses an e-invoice, reads the reason, explains it, logs it to a tracking sheet, corrects the invoice from the client record when it can and asks finance in Slack before filing it again. Accepted e-invoices are saved as XML to Google Drive.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When the exchange system refuses an e-invoice, reads the reason, explains it, logs it to a tracking sheet, corrects the invoice from the client record when it can and asks finance in Slack before filing it again. Accepted e-invoices are saved as XML to Google Drive.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Downloads the electronic invoice XML of a Fatture in Cloud document and stores it in FlowRunner file storage.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::downloadEInvoiceXml",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Download the accepted XML Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::downloadEInvoiceXml",
          "legacyElementId": "JS###v1###FattureInCloudService###downloadEInvoiceXml",
          "methodName": "downloadEInvoiceXml",
          "position": {
            "x": 1026,
            "y": 582
          }
        },
        "flowElementId": "D8E261BD-2AF6-4F99-8435-CE4F496B1368",
        "groupId": null,
        "id": "79832FF8-CA49-47C6-98B5-DF8CEC5CE0BD",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeAttachment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "filename",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Download the accepted XML', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "downloadEInvoiceXml",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Accepted XML",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "fatture-in-cloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Download the accepted XML",
        "nextElementIds": [
          "5C41E0A1-D510-4432-8030-BBF238ADB4CC"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Explain the rejection Result"
          },
          "tools": {},
          "position": {
            "x": 16.42060241217098,
            "y": 961.9308416594365
          }
        },
        "flowElementId": "2F414E1A-00F4-4D11-8D85-A8CBB84AA834",
        "groupId": null,
        "id": "B294F5F6-62FE-4255-98F7-99498C23CCC6",
        "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": "Explanation",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You read why Italy's e-invoice exchange system refused an invoice issued from Fatture in Cloud, and decide whether the client record already holds the correction.\nYou get the refusal code, reason and suggested solution, the client data printed on the invoice, and the client's current record in Fatture in Cloud.\nA fix is found only when the refusal is about client data on the invoice (recipient code, certified email, VAT number, tax code, address) and the client record holds a different, complete value for that field. Never guess a value that is not in the client record. Never change lines, amounts, VAT, numbering or dates.\nReply with JSON only, with these fields:\ncode: the refusal code\nexplanation: one or two plain sentences a finance person can act on: what was wrong and what to do about it\nfixable: true only if the client record holds the correction\nfix: an object holding only the invoice fields to change, by their Fatture in Cloud API names. For client data this is {\"entity\": {...}} with every client field printed on the invoice, id included, and the corrected values in place. An empty object when fixable is false\nchangeSummary: one sentence on what was changed, or empty text when fixable is false"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Refusal from the exchange system:\nCode: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Rejection",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "code",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nReason: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Rejection",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "reason",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nSuggested solution: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Rejection",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "solution",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nInvoice "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "number",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "numeration",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " of "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "date",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": ", "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "amount_gross",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " gross.\nClient data printed on the invoice:\nid: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "id",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nname: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ntype: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "type",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nvat_number: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "vat_number",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ntax_code: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "tax_code",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nei_code: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "ei_code",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ncertified_email: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "certified_email",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_street: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "address_street",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_postal_code: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "address_postal_code",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_city: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "address_city",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_province: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "address_province",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ncountry: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "entity",
                    "optional": false
                  },
                  {
                    "key": "country",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nThe client's current record:\nname: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "name",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ntype: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "type",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nvat_number: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "vat_number",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ntax_code: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "tax_code",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nei_code: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "ei_code",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ncertified_email: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "certified_email",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_street: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "address_street",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_postal_code: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "address_postal_code",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_city: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "address_city",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\naddress_province: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "address_province",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\ncountry: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Client",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "country",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Explain the rejection",
        "nextElementIds": [
          "D81DAD9D-166D-41A3-B4F3-399AF3A83815"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Checks a Fatture in Cloud electronic invoice against the Italian exchange system's schema without sending it.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::verifyEInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the corrected invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::verifyEInvoice",
          "legacyElementId": "JS###v1###FattureInCloudService###verifyEInvoice",
          "methodName": "verifyEInvoice",
          "position": {
            "x": 794.0324633127634,
            "y": 1245.0416370697135
          }
        },
        "flowElementId": "72E414B6-5C4C-40F3-88A0-22917ABC08BD",
        "groupId": null,
        "id": "AFBED184-A8C8-4AE0-982E-C79D3DE0F65B",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Check the corrected invoice', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "verifyEInvoice",
          "onFailElemId": "CCD67404-DE48-4CD9-9941-C512D16C0A52",
          "packageId": "default",
          "resultAlias": "Verification",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "fatture-in-cloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check the corrected invoice",
        "nextElementIds": [
          "231E188E-BDEF-4556-9D3E-7BDBDBE78940"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 472,
            "y": 1430
          }
        },
        "flowElementId": "D361DF10-CB50-4EEB-A00E-12FC1A326383",
        "groupId": null,
        "id": "9F1986EC-8E81-4E46-A25D-144C252EFDA3",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "babd5cb0-a884-4978-8164-bda3b233aac9",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Finance decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "74C261FC-0411-4396-B2B3-3742CFCF4890"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "file"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "babd5cb0-a884-4978-8164-bda3b233aac9"
            ]
          },
          "elseComponent": {
            "componentId": "F7E8C064-5030-4446-B8CE-731C02D2FDE1",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "File again",
          "storeResult": false,
          "thenComponent": {
            "componentId": "2F3A41AB-849A-462C-8241-CE8BC690AF54",
            "componentType": "ELEMENT"
          }
        },
        "name": "File it again?",
        "nextElementIds": [
          "F7E8C064-5030-4446-B8CE-731C02D2FDE1",
          "2F3A41AB-849A-462C-8241-CE8BC690AF54"
        ],
        "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": "Tell finance what to fix Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1205.2773436891307,
            "y": 882.9811197409423
          }
        },
        "flowElementId": "59A0CDBF-3B2A-4D33-B64D-94605A218834",
        "groupId": null,
        "id": "7BC72616-036A-4227-95BA-C6056BF3D15E",
        "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": "E-invoice "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "numeration",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "entity",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " was refused by the exchange system (code "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rejection",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "code",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "). "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Explanation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "explanation",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Check error",
                    "subPathSegments": [
                      {
                        "key": "message",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CCD67404-DE48-4CD9-9941-C512D16C0A52"
                  }
                ],
                "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": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Fix request",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell finance what to fix",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates an issued Fatture in Cloud document. Sending line items or the payment schedule replaces that list rather than merging with it.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::updateIssuedDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Correct the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::updateIssuedDocument",
          "legacyElementId": "JS###v1###FattureInCloudService###updateIssuedDocument",
          "methodName": "updateIssuedDocument",
          "position": {
            "x": 816.495413121525,
            "y": 1077.1573745219039
          }
        },
        "flowElementId": "734B674A-3EB4-4595-9C79-0359DD379D6E",
        "groupId": null,
        "id": "C6752B7B-7DBF-4B91-A8FD-B8A34917895F",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "entityId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "items",
              "type": "COMPLEX_LIST",
              "value": []
            },
            {
              "name": "payments",
              "type": "COMPLEX_LIST",
              "value": []
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "number",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "numeration",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "visibleSubject",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "notes",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "currency",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "language",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "useGrossPrices",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "eInvoice",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paymentMethodId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "templateId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "properties",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Explanation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "fix",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Correct the invoice', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateIssuedDocument",
          "onFailElemId": "CCD67404-DE48-4CD9-9941-C512D16C0A52",
          "packageId": "default",
          "resultAlias": "Corrected invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "fatture-in-cloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Correct the invoice",
        "nextElementIds": [
          "AFBED184-A8C8-4AE0-982E-C79D3DE0F65B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Files a Fatture in Cloud document with the Italian exchange system as an electronic invoice. This is final and cannot be recalled.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::sendEInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "File the corrected invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::sendEInvoice",
          "legacyElementId": "JS###v1###FattureInCloudService###sendEInvoice",
          "methodName": "sendEInvoice",
          "position": {
            "x": 922,
            "y": 1378
          }
        },
        "flowElementId": "722427A0-A8A1-4A02-9266-AD7117A3347D",
        "groupId": null,
        "id": "2F3A41AB-849A-462C-8241-CE8BC690AF54",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'File the corrected invoice', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendEInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Filed e-invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "fatture-in-cloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "File the corrected 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": "Log it in the tracking sheet Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "legacyElementId": "JS###v1###GoogleSheets###addRow",
          "methodName": "addRow",
          "position": {
            "x": 794.9484788464597,
            "y": 741.3563861135211
          }
        },
        "flowElementId": "340CCA61-23AC-4390-B701-75F9961ED6EA",
        "groupId": null,
        "id": "4C37164A-998D-45E0-B772-97EDA0B01EF9",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Tracking sheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Tracking sheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "row",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Tracking row",
                    "subPathSegments": [
                      {
                        "key": "row",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D81DAD9D-166D-41A3-B4F3-399AF3A83815"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Log it in the tracking sheet', Error: The placeholder \"Tracking sheet\" has no value",
            "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": "Tracking log",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Log it in the tracking sheet",
        "nextElementIds": [
          "6EB7D76F-A49C-4CF1-BB8F-C6A7BBC07492"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check failed Result"
          },
          "position": {
            "x": 1212.2964015299076,
            "y": 1062.7776988525693
          }
        },
        "flowElementId": "877711B2-DED5-4954-8B66-6F0800921780",
        "groupId": null,
        "id": "CCD67404-DE48-4CD9-9941-C512D16C0A52",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Check error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Correction failed",
        "nextElementIds": [
          "7BC72616-036A-4227-95BA-C6056BF3D15E"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 48,
            "y": 1432
          }
        },
        "flowElementId": "E941CDAC-6BED-4235-B94E-4FCA2A982866",
        "groupId": null,
        "id": "74C261FC-0411-4396-B2B3-3742CFCF4890",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Finance decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the finance owner's answer",
        "nextElementIds": [
          "9F1986EC-8E81-4E46-A25D-144C252EFDA3"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 792.138316681127,
            "y": 890.6619614003788
          }
        },
        "flowElementId": "E68B700B-64CF-4CB4-9621-1D2D41C8E8E8",
        "groupId": null,
        "id": "6EB7D76F-A49C-4CF1-BB8F-C6A7BBC07492",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "593da141-32e2-4d15-af71-e895dd42abab",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Explanation",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "fixable",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "593da141-32e2-4d15-af71-e895dd42abab"
            ]
          },
          "elseComponent": {
            "componentId": "7BC72616-036A-4227-95BA-C6056BF3D15E",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Fix found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "C6752B7B-7DBF-4B91-A8FD-B8A34917895F",
            "componentType": "ELEMENT"
          }
        },
        "name": "Fix found in the client record?",
        "nextElementIds": [
          "7BC72616-036A-4227-95BA-C6056BF3D15E",
          "C6752B7B-7DBF-4B91-A8FD-B8A34917895F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for finance Result"
          },
          "position": {
            "x": 428,
            "y": 1256
          }
        },
        "flowElementId": "555BB62D-3EE4-42EE-A1C6-DCFBC5C200A7",
        "groupId": null,
        "id": "231E188E-BDEF-4556-9D3E-7BDBDBE78940",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "number",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "numeration",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "numeration",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "client",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "entity",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "amount_gross",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "currency",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "currency",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "code",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rejection",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "code",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "explanation",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Explanation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "explanation",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "changeSummary",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Explanation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "changeSummary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const link = d => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${d}`;\nconst invoice = `${number}${numeration || ''}`;\nconst lines = [\n  `*E-invoice ${invoice} for ${client} was refused by the exchange system*`,\n  `${amount} ${currency || 'EUR'} gross, refusal code ${code}`,\n  explanation,\n  `Corrected from the client record: ${changeSummary}`,\n  'The corrected invoice passed the schema check. Filing it sends it to the exchange system again, and that cannot be recalled.',\n].filter(Boolean);\nreturn {\n  text: `E-invoice ${invoice} for ${client} is corrected and ready to file again`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'File it again' }, url: link('file') },\n      { type: 'button', text: { type: 'plain_text', text: 'Leave it with me' }, url: link('hold') },\n    ] },\n  ],\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for finance",
        "nextElementIds": [
          "7EE1B76D-9BC6-45ED-94B3-EFCF88FD2E8E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Downloads files from URLs and uploads them to Google Drive, enabling AI agents to archive web content, save API responses, or collect files from external sources. Perfect for automated workflows that need to backup files from other services or capture generated content.",
          "elementId": "EXTENSION:::SHARED:::default:::google-drive-api:::uploadFile",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Save the XML to Google Drive Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-drive-api:::uploadFile",
          "legacyElementId": "JS###v1###GoogleDrive###uploadFile",
          "methodName": "uploadFile",
          "position": {
            "x": 1348,
            "y": 586
          }
        },
        "flowElementId": "AE2B6893-ED2B-400D-9ADE-CB4ADDD378A1",
        "groupId": null,
        "id": "5C41E0A1-D510-4432-8030-BBF238ADB4CC",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "sharedDriveId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "folderId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Accepted XML",
                    "subPathSegments": [
                      {
                        "key": "filename",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "79832FF8-CA49-47C6-98B5-DF8CEC5CE0BD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Accepted XML",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "79832FF8-CA49-47C6-98B5-DF8CEC5CE0BD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Save the XML to Google Drive', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "uploadFile",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Saved XML",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-drive-api",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Save the XML to Google Drive",
        "nextElementIds": [],
        "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": "Confirm the invoice is held Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 912,
            "y": 1542
          }
        },
        "flowElementId": "4321EFFC-6B30-4FBA-9F24-3D908FC14C4F",
        "groupId": null,
        "id": "F7E8C064-5030-4446-B8CE-731C02D2FDE1",
        "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": "Held. Invoice "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "numeration",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " is corrected in Fatture in Cloud but not filed. File it from Fatture in Cloud when you are ready."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to finance",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7EE1B76D-9BC6-45ED-94B3-EFCF88FD2E8E"
                  }
                ],
                "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": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Hold note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the invoice is held",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "router",
          "isFirstElement": false,
          "blockDefinitionId": "router",
          "casesViewMode": {
            "641678eb-c2c7-4587-9c30-36fe3738e6b6": "SIMPLE",
            "57b0f71e-9004-4ce0-b948-e1d022334370": "ENUM_LIST"
          },
          "position": {
            "x": 690,
            "y": 410
          }
        },
        "flowElementId": "4ED13A51-42E9-46E6-98CE-76B809A45414",
        "groupId": null,
        "id": "2C215A90-C6B3-4212-A2C7-BCCE535552E2",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Exchange outcome",
          "storeResult": true,
          "switchCases": [
            {
              "defaultCase": false,
              "id": "641678eb-c2c7-4587-9c30-36fe3738e6b6",
              "label": "Refused",
              "nextComponents": [
                {
                  "componentId": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "discarded"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "57b0f71e-9004-4ce0-b948-e1d022334370",
              "label": "Accepted",
              "nextComponents": [
                {
                  "componentId": "79832FF8-CA49-47C6-98B5-DF8CEC5CE0BD",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "ENUM",
              "values": {
                "type": "LIST",
                "value": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "accepted"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  },
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "manual_accepted"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            },
            {
              "defaultCase": true,
              "id": "45a0393f-1211-4eb3-9677-899b9057ec6a",
              "label": "Everything Else",
              "nextComponents": [],
              "type": "SIMPLE",
              "value": null
            }
          ],
          "switchExpression": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice",
                "subPathSegments": [
                  {
                    "key": "data",
                    "optional": false
                  },
                  {
                    "key": "ei_status",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Refused or accepted?",
        "nextElementIds": [
          "79832FF8-CA49-47C6-98B5-DF8CEC5CE0BD",
          "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
        ],
        "nextGroupIds": [],
        "type": "VALUE_ROUTER"
      },
      {
        "clientMetadata": {
          "notes": "Starts the flow when Fatture in Cloud raises the chosen event: a document being created, updated, deleted or emailed, an electronic invoice changing status or arriving, a client, supplier or product changing, or a cashbook, receipt or tax entry being added. FlowRunner registers the subscription for you and removes it when the trigger is switched off.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::onFattureInCloudEvent",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::onFattureInCloudEvent",
          "legacyElementId": "JS###v1###FattureInCloudService###onFattureInCloudEvent",
          "methodName": "onFattureInCloudEvent",
          "position": {
            "x": 110,
            "y": 410
          }
        },
        "flowElementId": "A529440A-37FB-452D-B8B6-7D119CDF3745",
        "groupId": null,
        "id": "4A40C27B-579F-4F88-B5F2-D507437A7AB1",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'E-invoice status changed', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onFattureInCloudEvent",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Status change",
          "scope": "SINGLE_APP",
          "serviceId": "fatture-in-cloud",
          "slaConditions": [],
          "staticData": {
            "event": "it.fattureincloud.webhooks.issued_documents.e_invoices.status_update"
          },
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "E-invoice status changed",
        "nextElementIds": [
          "D2501F9C-A6D9-496B-B831-507701E9DCA8"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Reads one issued Fatture in Cloud document with its line items and payment schedule.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::getIssuedDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::getIssuedDocument",
          "legacyElementId": "JS###v1###FattureInCloudService###getIssuedDocument",
          "methodName": "getIssuedDocument",
          "position": {
            "x": 400,
            "y": 410
          }
        },
        "flowElementId": "7BCC8342-00EE-4ADC-A365-CDD3253A4BE1",
        "groupId": null,
        "id": "D2501F9C-A6D9-496B-B831-507701E9DCA8",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Status change",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "ids",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "4A40C27B-579F-4F88-B5F2-D507437A7AB1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fieldset",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "detailed"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Read the invoice', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getIssuedDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "fatture-in-cloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the invoice",
        "nextElementIds": [
          "2C215A90-C6B3-4212-A2C7-BCCE535552E2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Reads one Fatture in Cloud client or supplier by its identifier.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::getEntity",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the client record Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::getEntity",
          "legacyElementId": "JS###v1###FattureInCloudService###getEntity",
          "methodName": "getEntity",
          "position": {
            "x": 64,
            "y": 802
          }
        },
        "flowElementId": "0ECB65A0-99F5-4C01-83E2-400C2F8FD6EE",
        "groupId": null,
        "id": "807E26C5-3BF9-40B9-9EDF-A4125C27024C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "entityId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "entity",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "entityKind",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "clients"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fieldset",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Read the client record', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getEntity",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Client",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "fatture-in-cloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the client record",
        "nextElementIds": [
          "B294F5F6-62FE-4255-98F7-99498C23CCC6"
        ],
        "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 finance owner Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 90,
            "y": 1250
          }
        },
        "flowElementId": "05EEECDA-C11F-4333-8BE9-2B5F122BE1B5",
        "groupId": null,
        "id": "7EE1B76D-9BC6-45ED-94B3-EFCF88FD2E8E",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "231E188E-BDEF-4556-9D3E-7BDBDBE78940"
                  }
                ],
                "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": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "231E188E-BDEF-4556-9D3E-7BDBDBE78940"
                  }
                ],
                "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 finance",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the finance owner",
        "nextElementIds": [
          "74C261FC-0411-4396-B2B3-3742CFCF4890"
        ],
        "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 tracking row Result"
          },
          "position": {
            "x": 478.5688031771248,
            "y": 751.2406486613307
          }
        },
        "flowElementId": "D9ADC4EE-DFF1-4BEA-BA0C-554DD4F477ED",
        "groupId": null,
        "id": "D81DAD9D-166D-41A3-B4F3-399AF3A83815",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "refusedAt",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rejection",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "date",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "today",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "GET_CURRENT_DATE",
                    "label": null,
                    "type": "GET_CURRENT_DATE_TIME",
                    "value": null
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "number",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "numeration",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "numeration",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "client",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "entity",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "amount_gross",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "code",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rejection",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "code",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reason",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Explanation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "explanation",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fixable",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Explanation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "fixable",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "changeSummary",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Explanation",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "changeSummary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B294F5F6-62FE-4255-98F7-99498C23CCC6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const yes = v => v === true || v === 'true';\nreturn {\n  row: {\n    Date: String(refusedAt || today || '').slice(0, 10),\n    Invoice: `${number}${numeration || ''}`,\n    Client: client,\n    Amount: amount,\n    Code: code,\n    Reason: reason,\n    Fix: yes(fixable) ? changeSummary : 'Needs a person',\n  },\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Tracking row",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the tracking row",
        "nextElementIds": [
          "4C37164A-998D-45E0-B772-97EDA0B01EF9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Reads why the Italian exchange system rejected a Fatture in Cloud electronic invoice.",
          "elementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::getEInvoiceRejectionReason",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the rejection reason Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::fatture-in-cloud:::getEInvoiceRejectionReason",
          "legacyElementId": "JS###v1###FattureInCloudService###getEInvoiceRejectionReason",
          "methodName": "getEInvoiceRejectionReason",
          "position": {
            "x": 60,
            "y": 666
          }
        },
        "flowElementId": "0F41EB13-9AF2-408E-8DD6-D15398C2ED17",
        "groupId": null,
        "id": "AAFFA8DF-94D5-43D3-97E9-BA6F5A67BB19",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D2501F9C-A6D9-496B-B831-507701E9DCA8"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Read the rejection reason', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getEInvoiceRejectionReason",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Rejection",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "fatture-in-cloud",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the rejection reason",
        "nextElementIds": [
          "807E26C5-3BF9-40B9-9EDF-A4125C27024C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "4A40C27B-579F-4F88-B5F2-D507437A7AB1",
    "groups": [],
    "id": "F6CB2A29-4337-4EB9-AAD3-6E7430EA988C",
    "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
        },
        {
          "description": "The URL of the block Wait for the finance owner's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The URL or ID of the Google Sheets spreadsheet that tracks refused e-invoices. Its first sheet needs the columns Date, Invoice, Client, Amount, Code, Reason, Fix.",
          "error": null,
          "name": "Tracking sheet",
          "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:34.385Z"
}
