{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "F93B0817-2CE5-46A3-8B42-4C577482CB1C",
    "name": "easybill: accepted offer to one invoice"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 177.2987663056092,
        "y": -7.379235707904627,
        "zoom": 0.5
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When an offer is marked accepted in easybill, checks that no invoice was already made from it, then converts, completes and sends the invoice and notes it on the Pipedrive deal. If one exists, asks the billing lead in Slack first.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When an offer is marked accepted in easybill, checks that no invoice was already made from it, then converts, completes and sends the invoice and notes it on the Pipedrive deal. If one exists, asks the billing lead in Slack first.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Reads one document in full: its items, totals, customer snapshot, payments received and the VAT treatment applied.",
          "elementId": "EXTENSION:::SHARED:::default:::easybill:::getDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the offer Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easybill:::getDocument",
          "legacyElementId": "JS###v1###EasybillService###getDocument",
          "methodName": "getDocument",
          "position": {
            "x": 116,
            "y": 294
          }
        },
        "flowElementId": "FB9EA851-D681-4C01-8771-854E4854119B",
        "groupId": null,
        "id": "226563F4-B7F0-4473-B361-7EAB389C1C11",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Offer event",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "637B2F8A-DDD6-47E1-8186-39F5C553AFA8"
                  }
                ],
                "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": "getDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Offer",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easybill",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the offer",
        "nextElementIds": [
          "589E8A8B-CC96-4FF9-9429-F70711045FCA"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends a document by email, fax or post. ⚠️ Send By Self makes easybill hand the message back to you rather than delivering it, which is what to use when your own mail system is doing the sending. Post is a paid physical mailing.",
          "elementId": "EXTENSION:::SHARED:::default:::easybill:::sendDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easybill:::sendDocument",
          "legacyElementId": "JS###v1###EasybillService###sendDocument",
          "methodName": "sendDocument",
          "position": {
            "x": 1166,
            "y": 1060
          }
        },
        "flowElementId": "0EE8554F-6A17-42A1-8C7E-D92AEA4EE57A",
        "groupId": null,
        "id": "AD83E94E-0A9A-4877-98F9-685AC93E4941",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "82500C59-402F-467A-B30E-46FB0FD34180"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "channel",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "email"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "to",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cc",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "message",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendBySelf",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendWithAttachment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentFileType",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "postSendType",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Sent invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easybill",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the invoice",
        "nextElementIds": [
          "7A795180-985F-4D01-8570-CFCB59DB75FB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1496,
            "y": 1070
          }
        },
        "flowElementId": "219AA130-B465-4A2C-84A0-39BB7884CF88",
        "groupId": null,
        "id": "7A795180-985F-4D01-8570-CFCB59DB75FB",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "233465d4-4896-462b-b50f-2faf5e015d08",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Offer",
                      "subPathSegments": [
                        {
                          "key": "external_id",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "233465d4-4896-462b-b50f-2faf5e015d08"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Linked to deal",
          "storeResult": false,
          "thenComponent": {
            "componentId": "6B66FB9E-A180-4E7C-8ED1-638B9410FC28",
            "componentType": "ELEMENT"
          }
        },
        "name": "Offer linked to a deal?",
        "nextElementIds": [
          "6B66FB9E-A180-4E7C-8ED1-638B9410FC28"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Starts the flow when easybill raises the chosen event: a document being created, updated, completed or deleted, a payment being added or removed, or a customer, contact, position or post box entry changing. FlowRunner registers the webhook for you and removes it when the trigger is switched off. Set the Webhook Secret configuration item to have every delivery verified before the flow runs.",
          "elementId": "EXTENSION:::SHARED:::default:::easybill:::onEasybillEvent",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::easybill:::onEasybillEvent",
          "legacyElementId": "JS###v1###EasybillService###onEasybillEvent",
          "methodName": "onEasybillEvent",
          "position": {
            "x": 110,
            "y": 130
          }
        },
        "flowElementId": "90879313-28AE-4D75-ACDC-0CC9D2CC9431",
        "groupId": null,
        "id": "637B2F8A-DDD6-47E1-8186-39F5C553AFA8",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onEasybillEvent",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Offer event",
          "scope": "SINGLE_APP",
          "serviceId": "easybill",
          "slaConditions": [],
          "staticData": {
            "event": "document.update"
          },
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Offer updated in easybill",
        "nextElementIds": [
          "226563F4-B7F0-4473-B361-7EAB389C1C11"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Look for an invoice from this offer Result"
          },
          "position": {
            "x": 820,
            "y": 258
          }
        },
        "flowElementId": "85837D09-744F-47AC-A4E2-E12B83405E25",
        "groupId": null,
        "id": "FAD23F0C-59C6-424A-A702-5E44D9413741",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "offerId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offerNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customer",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "customer_snapshot",
                        "optional": false
                      },
                      {
                        "key": "company_name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoices",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Customer invoices",
                    "subPathSegments": [
                      {
                        "key": "items",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "18B6E533-3960-44E3-AB55-43FB38BABD24"
                  }
                ],
                "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 earlier = (invoices || []).filter((d) => String(d.ref_id) === String(offerId));\nconst money = (cents, currency) => (Number(cents || 0) / 100).toLocaleString('de-DE', { style: 'currency', currency: currency || 'EUR' });\nconst describe = (d) => {\n  const name = d.is_draft ? 'Draft invoice (no number yet)' : `Invoice ${d.number}`;\n  const state = d.is_draft ? 'not completed' : (Number(d.paid_amount || 0) >= Number(d.amount || 0) ? 'paid' : 'unpaid');\n  return `${name}, dated ${d.document_date}, ${money(d.amount, d.currency)}, ${state}`;\n};\nconst link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst who = customer ? ` for ${customer}` : '';\nconst title = `Offer ${offerNumber}${who} was accepted, and an invoice from it already exists`;\nconst lines = [\n  `*${title}*`,\n  ...earlier.map((d) => `Already there: ${describe(d)}`),\n  'Convert again, or treat the existing invoice as the one?',\n];\nreturn {\n  found: earlier.length > 0,\n  existing: earlier.map(describe).join('; '),\n  text: title,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', text: { type: 'plain_text', text: 'Keep the existing invoice' }, url: link('keep') },\n      { type: 'button', style: 'danger', text: { type: 'plain_text', text: 'Convert again' }, url: link('convert') },\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": "Earlier invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Look for an invoice from this offer",
        "nextElementIds": [
          "CDBA0AB0-D356-4E11-A134-4655BC9BB6E6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 408,
            "y": 734
          }
        },
        "flowElementId": "5180DF45-091B-4F0C-B8DE-8E79DCF1BAED",
        "groupId": null,
        "id": "B3E144BE-DF17-4014-80BD-6AB848BFE705",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Billing decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the billing lead's answer",
        "nextElementIds": [
          "032DA12A-E0BF-49D1-9185-9E028538CD92"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Produces a NEW document of a different kind from an existing one, for example an invoice from an offer or a dunning letter from an invoice. ⚠️ The original is left as it is; this does not change its type, because type is fixed at creation.",
          "elementId": "EXTENSION:::SHARED:::default:::easybill:::convertDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Convert the offer to an invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easybill:::convertDocument",
          "legacyElementId": "JS###v1###EasybillService###convertDocument",
          "methodName": "convertDocument",
          "position": {
            "x": 818,
            "y": 854
          }
        },
        "flowElementId": "EE38C024-900E-49DA-96CF-EF9D865501C7",
        "groupId": null,
        "id": "C478E3C9-D804-4AC4-8A35-1A6AAE9F0D8C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "targetType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "INVOICE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pdfTemplate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "convertDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Draft invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easybill",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Convert the offer to an invoice",
        "nextElementIds": [
          "82500C59-402F-467A-B30E-46FB0FD34180"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 468,
            "y": 120
          }
        },
        "flowElementId": "6D9325D0-9D70-444B-BFCA-27CCD46D284C",
        "groupId": null,
        "id": "589E8A8B-CC96-4FF9-9429-F70711045FCA",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e1ec4ddd-2403-4bed-a8f6-23c6f8d36fd2",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Offer",
                      "subPathSegments": [
                        {
                          "key": "type",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "OFFER"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "7a7d636d-f6ed-4cd8-aeb7-50d8eb22474c",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Offer",
                      "subPathSegments": [
                        {
                          "key": "status",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "ACCEPT"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "e1ec4ddd-2403-4bed-a8f6-23c6f8d36fd2",
              "AND",
              "7a7d636d-f6ed-4cd8-aeb7-50d8eb22474c"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Accepted offer",
          "storeResult": false,
          "thenComponent": {
            "componentId": "18B6E533-3960-44E3-AB55-43FB38BABD24",
            "componentType": "ELEMENT"
          }
        },
        "name": "Accepted offer?",
        "nextElementIds": [
          "18B6E533-3960-44E3-AB55-43FB38BABD24"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a new note.",
          "elementId": "EXTENSION:::SHARED:::default:::pipedrive:::createNote",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Note the invoice on the Pipedrive deal Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::pipedrive:::createNote",
          "legacyElementId": "JS###v1###PipedriveService###createNote",
          "methodName": "createNote",
          "position": {
            "x": 1426,
            "y": 1268
          }
        },
        "flowElementId": "E05BB74C-6922-445B-B70D-CF6121726C6D",
        "groupId": null,
        "id": "6B66FB9E-A180-4E7C-8ED1-638B9410FC28",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "content",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Invoice "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice",
                    "subPathSegments": [
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "82500C59-402F-467A-B30E-46FB0FD34180"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " was sent from easybill for accepted offer "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "lead_id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "deal_id",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "external_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "person_id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "org_id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "project_id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "user_id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "add_time",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pinned_to_lead_flag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pinned_to_deal_flag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pinned_to_organization_flag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pinned_to_person_flag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pinned_to_project_flag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Note the invoice on the Pipedrive deal', 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": "createNote",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Deal note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "pipedrive",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Note the invoice on the Pipedrive deal",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Returns a page of documents of every kind. Filter by Types to get only invoices, only offers and so on. ⚠️ Each filter accepts several values separated by commas, and the request line is capped at 4094 bytes, so a very long number list must be split across calls.",
          "elementId": "EXTENSION:::SHARED:::default:::easybill:::listDocuments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the customer's invoices Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easybill:::listDocuments",
          "legacyElementId": "JS###v1###EasybillService###listDocuments",
          "methodName": "listDocuments",
          "position": {
            "x": 830,
            "y": 108
          }
        },
        "flowElementId": "35829786-E424-4251-9AFA-588FF58A46F0",
        "groupId": null,
        "id": "18B6E533-3960-44E3-AB55-43FB38BABD24",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1000
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "page",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "type",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "INVOICE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "number",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "customer_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "projectId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "externalId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isDraft",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listDocuments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Customer invoices",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easybill",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the customer's invoices",
        "nextElementIds": [
          "FAD23F0C-59C6-424A-A702-5E44D9413741"
        ],
        "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 billing lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 452,
            "y": 592
          }
        },
        "flowElementId": "F079DD8B-EF20-4B7C-BD7B-7EA5E64E4D74",
        "groupId": null,
        "id": "6B125D4F-7750-4F75-A384-13112B2D115C",
        "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": "Earlier invoice",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FAD23F0C-59C6-424A-A702-5E44D9413741"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Earlier invoice",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FAD23F0C-59C6-424A-A702-5E44D9413741"
                  }
                ],
                "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 billing lead",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the billing lead",
        "nextElementIds": [
          "B3E144BE-DF17-4014-80BD-6AB848BFE705"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Finalizes a draft, which assigns the document number and locks it against editing. ⚠️ This is the step that makes an invoice real; `is_draft` is read only and cannot be turned off any other way. Reason For Change is recorded in the version history.",
          "elementId": "EXTENSION:::SHARED:::default:::easybill:::completeDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Complete the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::easybill:::completeDocument",
          "legacyElementId": "JS###v1###EasybillService###completeDocument",
          "methodName": "completeDocument",
          "position": {
            "x": 850,
            "y": 1066
          }
        },
        "flowElementId": "A98D3BDE-C6B1-4FA6-A0CA-D2657A8690DC",
        "groupId": null,
        "id": "82500C59-402F-467A-B30E-46FB0FD34180",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Draft invoice",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C478E3C9-D804-4AC4-8A35-1A6AAE9F0D8C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reasonForChange",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Invoiced from accepted offer "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  }
                ],
                "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": "completeDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "easybill",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Complete the invoice",
        "nextElementIds": [
          "AD83E94E-0A9A-4877-98F9-685AC93E4941"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 828.0000000000001,
            "y": 414
          }
        },
        "flowElementId": "116FDFBB-C82D-48CA-8AC9-D488CD553139",
        "groupId": null,
        "id": "CDBA0AB0-D356-4E11-A134-4655BC9BB6E6",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "9f78acc6-825c-495e-9540-191ad8fdb3c3",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Earlier invoice",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "FAD23F0C-59C6-424A-A702-5E44D9413741"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "9f78acc6-825c-495e-9540-191ad8fdb3c3"
            ]
          },
          "elseComponent": {
            "componentId": "C478E3C9-D804-4AC4-8A35-1A6AAE9F0D8C",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Already invoiced",
          "storeResult": false,
          "thenComponent": {
            "componentId": "6B125D4F-7750-4F75-A384-13112B2D115C",
            "componentType": "ELEMENT"
          }
        },
        "name": "Already invoiced?",
        "nextElementIds": [
          "6B125D4F-7750-4F75-A384-13112B2D115C",
          "C478E3C9-D804-4AC4-8A35-1A6AAE9F0D8C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm no second invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 430,
            "y": 1070
          }
        },
        "flowElementId": "F564DF02-5170-4F75-A43C-E40FB4B91402",
        "groupId": null,
        "id": "DD198A98-585B-4054-9C15-3156923C21BF",
        "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": "Kept. No second invoice was made from offer "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Offer",
                    "subPathSegments": [
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "226563F4-B7F0-4473-B361-7EAB389C1C11"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". The existing one stands: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Earlier invoice",
                    "subPathSegments": [
                      {
                        "key": "existing",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FAD23F0C-59C6-424A-A702-5E44D9413741"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to billing lead",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6B125D4F-7750-4F75-A384-13112B2D115C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Kept confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm no second invoice",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 452,
            "y": 864
          }
        },
        "flowElementId": "83025395-4B1B-48D2-B951-AB9D64839E8D",
        "groupId": null,
        "id": "032DA12A-E0BF-49D1-9185-9E028538CD92",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e348d94c-ba6f-4988-828f-03b68d8d7687",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Billing decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "B3E144BE-DF17-4014-80BD-6AB848BFE705"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "convert"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "e348d94c-ba6f-4988-828f-03b68d8d7687"
            ]
          },
          "elseComponent": {
            "componentId": "DD198A98-585B-4054-9C15-3156923C21BF",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Convert again",
          "storeResult": false,
          "thenComponent": {
            "componentId": "C478E3C9-D804-4AC4-8A35-1A6AAE9F0D8C",
            "componentType": "ELEMENT"
          }
        },
        "name": "Convert again?",
        "nextElementIds": [
          "DD198A98-585B-4054-9C15-3156923C21BF",
          "C478E3C9-D804-4AC4-8A35-1A6AAE9F0D8C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "637B2F8A-DDD6-47E1-8186-39F5C553AFA8",
    "groups": [],
    "id": "87FDFE02-E5FF-4B1C-802F-0A7F09B53FFB",
    "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 URL of the block Wait for the billing lead's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-11-17T05:54:07.678Z"
}
