{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "D7D3A117-7807-46E6-A8D0-B2F6AC66739D",
    "name": "Verdo: decision log that tracks results"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -37.39665787159191,
        "y": -558.0650835532102,
        "zoom": 0.7
      },
      "autoSave": false,
      "descriptions": {
        "flow": "Files every settled Verdo decision in a Google Sheets register and a Notion wiki page, keeps the register's status and 30-day outcome current, and asks the owner whether to propose a stalled decision again.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Files every settled Verdo decision in a Google Sheets register and a Notion wiki page, keeps the register's status and 30-day outcome current, and asks the owner whether to propose a stalled decision again.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Gets a decision: its status, the outcome once a person has decided, votes per option, owner, dashboard link and request fingerprint. Compare the fingerprint with the one Propose Decision returned to check the answer is for exactly what was asked.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::getDecision",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the decision record Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::getDecision",
          "legacyElementId": null,
          "methodName": "getDecision",
          "position": {
            "x": 816,
            "y": 1231
          }
        },
        "flowElementId": "1D4F5C84-AC02-4568-B75B-D2110C162E2C",
        "groupId": null,
        "id": "D239E457-E6BD-46AA-B679-BE6152E00C43",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "decisionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "decision_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "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": "getDecision",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Decision",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "verdo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the decision record",
        "nextElementIds": [
          "8D9366A7-DFA9-4927-8303-EBD6662B9317"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a person decides a decision in the workspace, at its deadline or when it is closed early. Uses one of the workspace's webhook subscriptions.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionSettled",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionSettled",
          "legacyElementId": null,
          "methodName": "onDecisionSettled",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "1D093B3A-6E25-4CE4-AB40-E7DA2C0E0AE5",
        "groupId": "33B5DD68-20A1-4287-9EBD-7B34BD77BE3B",
        "id": "FFCB440D-6011-4558-AD94-D61BD883D0AD",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "1118d555-1bc0-42f9-8b7a-2aa820503a81",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Owner settled",
                      "subPathSegments": [
                        {
                          "key": "decision_id",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": null
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Owner decision",
                        "subPathSegments": [
                          {
                            "key": "id",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "102c1ca3-ede5-4307-9b32-036dc9696037",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Owner settled",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        },
                        {
                          "key": "id",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": null
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Owner decision",
                        "subPathSegments": [
                          {
                            "key": "id",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "1118d555-1bc0-42f9-8b7a-2aa820503a81",
              "OR",
              "102c1ca3-ede5-4307-9b32-036dc9696037"
            ]
          },
          "connectionId": null,
          "eventName": "onDecisionSettled",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Owner settled",
          "scope": "SINGLE_APP",
          "serviceId": "verdo",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Owner decided",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the register update Result"
          },
          "position": {
            "x": 1199,
            "y": 1670
          }
        },
        "flowElementId": "DA7AE8BF-2B41-4B77-9434-E63086FE372A",
        "groupId": null,
        "id": "68F42863-985E-4542-ABC4-B2A2F572CF62",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "source",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "source",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "status",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "outcome",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "outcome",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "if (source === 'Outcome recorded') {\n  return { '30-day outcome': outcome || '' };\n}\nreturn { 'Status': status || '' };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Register update",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the register update",
        "nextElementIds": [
          "32521E27-9BE0-4433-B787-1D46720013F5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Proposes a decision with 2 to 10 options. It invites nobody: the decision opens in the Verdo dashboard, and a tag that matches a workspace routing rule assigns its approver. Returns the decision id and its dashboard link to send to the person who decides. Needs a full-access key.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::proposeDecision",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Propose the decision again Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::proposeDecision",
          "legacyElementId": null,
          "methodName": "proposeDecision",
          "position": {
            "x": 443,
            "y": 1831
          }
        },
        "flowElementId": "193A25D3-1185-40F3-A9F8-D1729D1B84D4",
        "groupId": null,
        "id": "1D3E9583-3917-4EC0-89EC-1F84D59AF9C3",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "title",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "options",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner question",
                    "subPathSegments": [
                      {
                        "key": "options",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F94C56AF-CAF9-46A0-8CBF-31924987087E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "method",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "single_choice"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "deadlineHours",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 96
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "authorityMode",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "anonymous",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tags",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "idempotencyKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "again-"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "decision_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sourceAgent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "FlowRunner decision log"
                  }
                ],
                "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": "proposeDecision",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New decision",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "verdo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Propose the decision again",
        "nextElementIds": [
          "3B4D0553-16DA-4E2C-A46C-01CACE97CDFD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a decision's lifecycle status moves, for example from decided to implemented. Checks the newest 25 events on each poll.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStatusChanged",
          "isFirstElement": false,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStatusChanged",
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStatusChanged",
          "legacyElementId": null,
          "methodName": "onDecisionStatusChanged",
          "position": {
            "x": 110,
            "y": 220
          }
        },
        "flowElementId": "91A5E0CF-94C6-4299-BCA1-C90A24DE2499",
        "groupId": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B",
        "id": "DB5192B6-63DD-414D-9CC6-79A8D77F3592",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onDecisionStatusChanged",
          "frequency": {
            "repeat": {
              "every": 900
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Status event",
          "serviceId": "verdo",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "Status changed",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Sends emails through Gmail for AI agents to automate customer communication.",
          "elementId": "EXTENSION:::SHARED:::default:::gmail-service:::sendMessage",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Email the owner Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::gmail-service:::sendMessage",
          "legacyElementId": "JS###v1###GmailService###sendMessage",
          "methodName": "sendMessage",
          "position": {
            "x": 831,
            "y": 1401
          }
        },
        "flowElementId": "82718D18-636B-47C0-8775-94EB49676257",
        "groupId": null,
        "id": "8B0AAFC3-F68A-4D2C-95EE-0F7E99DEA241",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "to",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "owner",
                        "optional": false
                      },
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "No decision on: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bodyType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "plain"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bodyContent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Hi "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "owner",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ",\n\nThe decision \""
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "\" closed in Verdo without a result. Votes: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner question",
                    "subPathSegments": [
                      {
                        "key": "tally",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F94C56AF-CAF9-46A0-8CBF-31924987087E"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ".\nRecord: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "\n\nShould it be proposed again with a longer deadline, or let go? Please answer in Verdo: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner decision",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "\n\nIf you choose Propose it again, a fresh decision opens with the same options and four days to vote."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cc",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bcc",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachments",
              "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": "sendMessage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Owner email",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "gmail-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Email the owner",
        "nextElementIds": [],
        "nextGroupIds": [
          "33B5DD68-20A1-4287-9EBD-7B34BD77BE3B"
        ],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new page in Notion as a child of an existing page. Supports rich content blocks including text, headings, lists, and embeds. The page properties and content can be formatted with Notion's rich text capabilities for comprehensive page creation.",
          "elementId": "EXTENSION:::SHARED:::default:::notion:::createPage",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the wiki page Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::notion:::createPage",
          "legacyElementId": "JS###v1###Notion###createPage",
          "methodName": "createPage",
          "position": {
            "x": 831,
            "y": 1531
          }
        },
        "flowElementId": "23166420-01B7-41D8-BE35-812D86A5EB47",
        "groupId": null,
        "id": "C2E6814D-A355-4466-A193-E5FB7D99CAA0",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "pageId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Decision wiki page ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Decision wiki page ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "properties",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log entry",
                    "subPathSegments": [
                      {
                        "key": "notionProperties",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8D9366A7-DFA9-4927-8303-EBD6662B9317"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "children",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log entry",
                    "subPathSegments": [
                      {
                        "key": "notionChildren",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8D9366A7-DFA9-4927-8303-EBD6662B9317"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Write the wiki page', Error: The placeholder \"Decision wiki page ID\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createPage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Wiki page",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "notion",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Write the wiki page",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Finds a specific row in a specified sheet within a spreadsheet based on a column and value.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the decision in the register Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::findSheetRow",
          "legacyElementId": "JS###v1###GoogleSheets###findSheetRow",
          "methodName": "findSheetRow",
          "position": {
            "x": 794,
            "y": 971
          }
        },
        "flowElementId": "8551D01D-10B3-4D53-BC1E-E257AF3CBA4B",
        "groupId": null,
        "id": "61B5BC27-CF8F-49E9-9963-04A1F5FC54C5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Decision register sheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Decision register sheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "column",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Decision ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "value",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "decision_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Find the decision in the register', Error: The placeholder \"Decision register sheet\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "findSheetRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Register match",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the decision in the register",
        "nextElementIds": [
          "186A9D5E-DAB3-47E6-8400-B33E382ED0D1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Gets a decision: its status, the outcome once a person has decided, votes per option, owner, dashboard link and request fingerprint. Compare the fingerprint with the one Propose Decision returned to check the answer is for exactly what was asked.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::getDecision",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the owner's answer Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::getDecision",
          "legacyElementId": null,
          "methodName": "getDecision",
          "position": {
            "x": 110,
            "y": 1401
          }
        },
        "flowElementId": "902E0C59-896B-4DDA-9185-F70BFD6F5F74",
        "groupId": null,
        "id": "099B0585-8D30-498F-8693-590AFC3E8F4F",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "decisionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner decision",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF"
                  }
                ],
                "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": "getDecision",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Owner answer",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "verdo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the owner's answer",
        "nextElementIds": [
          "94CB5C9A-CA15-4BCC-95EF-0D72D2AF0CF7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the owner Result"
          },
          "position": {
            "x": 1174,
            "y": 1110
          }
        },
        "flowElementId": "2039A01E-6424-4322-BDCF-2C77504C7255",
        "groupId": null,
        "id": "F94C56AF-CAF9-46A0-8CBF-31924987087E",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "title",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "votes",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "vote_breakdown",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const options = Array.isArray(votes) ? votes.map(v => v.option).filter(Boolean) : [];\nconst tally = Array.isArray(votes) ? votes.map(v => `${v.option} ${v.votes}`).join(', ') : '';\n// Verdo takes a question of at most 140 characters.\nconst prefix = 'Propose again: ';\nconst base = String(title || '').replace(/\\?+$/, '');\nconst room = 139 - prefix.length;\nconst question = `${prefix}${base.length > room ? `${base.slice(0, room - 3)}...` : base}?`;\nreturn { question, options, tally };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Owner question",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the owner",
        "nextElementIds": [
          "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a decision's owner answers the 30-day outcome review (success, partial or failed). Checks the newest 25 events on each poll.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::onOutcomeRecorded",
          "isFirstElement": false,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::verdo:::onOutcomeRecorded",
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::onOutcomeRecorded",
          "legacyElementId": null,
          "methodName": "onOutcomeRecorded",
          "position": {
            "x": 110,
            "y": 400
          }
        },
        "flowElementId": "2FB07198-0ADB-49B6-819E-E810ED4C62FA",
        "groupId": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B",
        "id": "45E0E79A-033A-44C3-A30A-84482424E6F0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onOutcomeRecorded",
          "frequency": {
            "repeat": {
              "every": 900
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Outcome event",
          "serviceId": "verdo",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "Outcome recorded",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Adds new data rows to Google Sheets for AI agents to store processed results, log user interactions, or collect data from automated workflows. Perfect for building databases, tracking metrics, saving form submissions, or creating data collection pipelines.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add it to the register Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "legacyElementId": "JS###v1###GoogleSheets###addRow",
          "methodName": "addRow",
          "position": {
            "x": 1214,
            "y": 1531
          }
        },
        "flowElementId": "CF308F4B-0E37-4C0E-8F8C-7BB0CAC2BF34",
        "groupId": null,
        "id": "1109ECCD-0201-4D92-9085-55C2A14CA170",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Decision register sheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Decision register sheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "row",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log entry",
                    "subPathSegments": [
                      {
                        "key": "row",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8D9366A7-DFA9-4927-8303-EBD6662B9317"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Add it to the register', Error: The placeholder \"Decision register 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": "Register row",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add it to the register",
        "nextElementIds": [
          "C2E6814D-A355-4466-A193-E5FB7D99CAA0"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Proposes a decision with 2 to 10 options. It invites nobody: the decision opens in the Verdo dashboard, and a tag that matches a workspace routing rule assigns its approver. Returns the decision id and its dashboard link to send to the person who decides. Needs a full-access key.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::proposeDecision",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the owner in Verdo Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::proposeDecision",
          "legacyElementId": null,
          "methodName": "proposeDecision",
          "position": {
            "x": 1205,
            "y": 1401
          }
        },
        "flowElementId": "A921EA91-CCB9-4DB0-BCF2-B57948A34546",
        "groupId": null,
        "id": "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "title",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Owner question",
                    "subPathSegments": [
                      {
                        "key": "question",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F94C56AF-CAF9-46A0-8CBF-31924987087E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "options",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [
                    {
                      "id": "TEXT",
                      "label": null,
                      "type": "INPUT",
                      "value": "Propose it again"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                {
                  "expression": [
                    {
                      "id": "TEXT",
                      "label": null,
                      "type": "INPUT",
                      "value": "Let it go"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            },
            {
              "name": "method",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "single_choice"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "deadlineHours",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 72
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "authorityMode",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "anonymous",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tags",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [
                    {
                      "id": "TEXT",
                      "label": null,
                      "type": "INPUT",
                      "value": "decision-log"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            },
            {
              "name": "idempotencyKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "rerun-"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "decision_id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sourceAgent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "FlowRunner decision log"
                  }
                ],
                "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": "proposeDecision",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Owner decision",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "verdo",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the owner in Verdo",
        "nextElementIds": [
          "8B0AAFC3-F68A-4D2C-95EE-0F7E99DEA241"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a decision closes without reaching a result. A decision that is extended can stall again, and fires again. Checks the newest 25 events on each poll.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStalled",
          "isFirstElement": false,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStalled",
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStalled",
          "legacyElementId": null,
          "methodName": "onDecisionStalled",
          "position": {
            "x": 110,
            "y": 580
          }
        },
        "flowElementId": "33DB2913-A0EF-47D1-AB64-4BB01910C6C0",
        "groupId": "33B5DD68-20A1-4287-9EBD-7B34BD77BE3B",
        "id": "A983917C-BF56-4242-ACE0-9D78DC3368FC",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e46a6249-afa2-458d-b9ee-da7cfa56cc62",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Owner stalled",
                      "subPathSegments": [
                        {
                          "key": "decision_id",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": null
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Owner decision",
                        "subPathSegments": [
                          {
                            "key": "id",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "e46a6249-afa2-458d-b9ee-da7cfa56cc62"
            ]
          },
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onDecisionStalled",
          "frequency": {
            "repeat": {
              "every": 900
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Owner stalled",
          "serviceId": "verdo",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "Owner did not answer",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "router",
          "isFirstElement": false,
          "blockDefinitionId": "router",
          "casesViewMode": {
            "96ec134f-fe54-43c8-b3d4-4120c61cc0a9": "SIMPLE",
            "622dc9eb-fcb2-4ecd-8658-c0c145d3a12d": "ENUM_LIST",
            "fd61c8ab-16b9-4053-916a-a585be0df5e2": "SIMPLE"
          },
          "position": {
            "x": 466,
            "y": 1110
          }
        },
        "flowElementId": "DD6000DB-D79C-4D97-8D23-36865B4AAE37",
        "groupId": null,
        "id": "5A8FA7DF-00E0-4A18-BF0E-BE9DF1EF0887",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Event kind",
          "storeResult": true,
          "switchCases": [
            {
              "defaultCase": false,
              "id": "96ec134f-fe54-43c8-b3d4-4120c61cc0a9",
              "label": "Settled",
              "nextComponents": [
                {
                  "componentId": "D239E457-E6BD-46AA-B679-BE6152E00C43",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Decision settled"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "622dc9eb-fcb2-4ecd-8658-c0c145d3a12d",
              "label": "Status or outcome",
              "nextComponents": [
                {
                  "componentId": "61B5BC27-CF8F-49E9-9963-04A1F5FC54C5",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "ENUM",
              "values": {
                "type": "LIST",
                "value": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "Status changed"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  },
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "Outcome recorded"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            },
            {
              "defaultCase": false,
              "id": "fd61c8ab-16b9-4053-916a-a585be0df5e2",
              "label": "Stalled",
              "nextComponents": [
                {
                  "componentId": "E43241DA-B7FC-4068-9CF4-2C76F0A0D4E7",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Decision stalled"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": true,
              "id": "0b8dd431-2bab-41ae-b315-7021f40ee301",
              "label": "Everything Else",
              "nextComponents": [],
              "type": "SIMPLE",
              "value": null
            }
          ],
          "switchExpression": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Log event",
                "subPathSegments": [
                  {
                    "key": "source",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Which event?",
        "nextElementIds": [
          "D239E457-E6BD-46AA-B679-BE6152E00C43",
          "61B5BC27-CF8F-49E9-9963-04A1F5FC54C5",
          "E43241DA-B7FC-4068-9CF4-2C76F0A0D4E7"
        ],
        "nextGroupIds": [],
        "type": "VALUE_ROUTER"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a decision closes without reaching a result. A decision that is extended can stall again, and fires again. Checks the newest 25 events on each poll.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStalled",
          "isFirstElement": false,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStalled",
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionStalled",
          "legacyElementId": null,
          "methodName": "onDecisionStalled",
          "position": {
            "x": 110,
            "y": 760
          }
        },
        "flowElementId": "CC0D092C-690B-415C-AC93-0DCCD78187CF",
        "groupId": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B",
        "id": "39FB92A3-3B4D-4A30-AA89-D94FEA2D570F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onDecisionStalled",
          "frequency": {
            "repeat": {
              "every": 900
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Stalled event",
          "serviceId": "verdo",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "Decision stalled",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the log entry Result"
          },
          "position": {
            "x": 1215,
            "y": 980
          }
        },
        "flowElementId": "13A15DBB-C815-414E-8CC2-F296EAEC34A2",
        "groupId": null,
        "id": "8D9366A7-DFA9-4927-8303-EBD6662B9317",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "decision",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Decision",
                    "subPathSegments": [
                      {
                        "key": "decision",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D239E457-E6BD-46AA-B679-BE6152E00C43"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const d = decision || {};\nconst votes = Array.isArray(d.vote_breakdown) ? d.vote_breakdown.map(v => `${v.option} ${v.votes}`).join(', ') : '';\nconst owner = d.owner ? (d.owner.name || d.owner.email || '') : '';\nconst row = {\n  'Decision ID': d.decision_id || d.id || '',\n  'Decision': d.title || '',\n  'Outcome': d.outcome || '',\n  'Votes': votes,\n  'Decision rule': d.authority_mode || '',\n  'Owner': owner,\n  'Decided at': d.decided_at || '',\n  'Status': d.status || 'decided',\n  '30-day outcome': '',\n  'Link': d.url || '',\n};\nconst lines = [\n  `Outcome: ${row.Outcome || 'no result'}`,\n  `Votes: ${votes || 'none recorded'}`,\n  `Decision rule: ${row['Decision rule'] || 'not set'}`,\n  `Owner: ${owner || 'none named'}`,\n  `Decided at: ${row['Decided at']}`,\n  d.routing_rule_label ? `Routed by: ${d.routing_rule_label}` : null,\n  `Record in Verdo: ${row.Link}`,\n  'The 30-day outcome review is added to the register when the owner answers it.',\n].filter(Boolean);\nconst notionProperties = { title: { title: [{ text: { content: String(row.Decision || 'Decision').slice(0, 200) } }] } };\nconst notionChildren = lines.map(line => ({ object: 'block', type: 'paragraph', paragraph: { rich_text: [{ type: 'text', text: { content: line } }] } }));\nreturn { row, notionProperties, notionChildren };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Log entry",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the log entry",
        "nextElementIds": [
          "1109ECCD-0201-4D92-9085-55C2A14CA170"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 816,
            "y": 1110
          }
        },
        "flowElementId": "BFCAC8EB-3A4E-461F-B771-F66F9EBC729A",
        "groupId": null,
        "id": "E43241DA-B7FC-4068-9CF4-2C76F0A0D4E7",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "2ae57fb1-f1d4-4cde-866a-1d079d90aca5",
                "nestedOperation": null,
                "operation": "notStartsWith",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Log event",
                      "subPathSegments": [
                        {
                          "key": "data",
                          "optional": false
                        },
                        {
                          "key": "title",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "Propose again:"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "cbe6ebb3-be62-4034-b065-31d86b548f0c",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Log event",
                      "subPathSegments": [
                        {
                          "key": "data",
                          "optional": false
                        },
                        {
                          "key": "owner",
                          "optional": false
                        },
                        {
                          "key": "email",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "2ae57fb1-f1d4-4cde-866a-1d079d90aca5",
              "AND",
              "cbe6ebb3-be62-4034-b065-31d86b548f0c"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "askD",
          "storeResult": false,
          "thenComponent": {
            "componentId": "F94C56AF-CAF9-46A0-8CBF-31924987087E",
            "componentType": "ELEMENT"
          }
        },
        "name": "Worth asking the owner?",
        "nextElementIds": [
          "F94C56AF-CAF9-46A0-8CBF-31924987087E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 127,
            "y": 1840
          }
        },
        "flowElementId": "8D77C055-5115-4E38-80A9-4D4220E02FAD",
        "groupId": null,
        "id": "94CB5C9A-CA15-4BCC-95EF-0D72D2AF0CF7",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "7862e0ea-8ae8-42fd-9ab7-126eee665eb3",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Owner answer",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        },
                        {
                          "key": "outcome",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "099B0585-8D30-498F-8693-590AFC3E8F4F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "Propose it again"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "35f34527-ee57-487e-baeb-ae0ca27d03f7",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Owner answer",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        },
                        {
                          "key": "request_fingerprint",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "099B0585-8D30-498F-8693-590AFC3E8F4F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "ELEMENT_RESULT",
                        "label": "Owner decision",
                        "subPathSegments": [
                          {
                            "key": "request_fingerprint",
                            "optional": false
                          }
                        ],
                        "type": "ELEMENT_LINK",
                        "value": "17DB6A0B-79A5-4ECD-98C6-FEF6FA852BAF"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "7862e0ea-8ae8-42fd-9ab7-126eee665eb3",
              "AND",
              "35f34527-ee57-487e-baeb-ae0ca27d03f7"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "againD",
          "storeResult": false,
          "thenComponent": {
            "componentId": "1D3E9583-3917-4EC0-89EC-1F84D59AF9C3",
            "componentType": "ELEMENT"
          }
        },
        "name": "Propose it again?",
        "nextElementIds": [
          "1D3E9583-3917-4EC0-89EC-1F84D59AF9C3"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1215,
            "y": 850
          }
        },
        "flowElementId": "CC967280-721F-4869-B394-35926445A8DB",
        "groupId": null,
        "id": "186A9D5E-DAB3-47E6-8400-B33E382ED0D1",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "fb6b528f-1c07-4e00-84a6-939b2e69a193",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Register match",
                      "subPathSegments": [
                        {
                          "key": "rowNumber",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "61B5BC27-CF8F-49E9-9963-04A1F5FC54C5"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "fb6b528f-1c07-4e00-84a6-939b2e69a193"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "inB",
          "storeResult": false,
          "thenComponent": {
            "componentId": "68F42863-985E-4542-ABC4-B2A2F572CF62",
            "componentType": "ELEMENT"
          }
        },
        "name": "In the register?",
        "nextElementIds": [
          "68F42863-985E-4542-ABC4-B2A2F572CF62"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a person decides a decision in the workspace, at its deadline or when it is closed early. Uses one of the workspace's webhook subscriptions.",
          "elementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionSettled",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::verdo:::onDecisionSettled",
          "legacyElementId": null,
          "methodName": "onDecisionSettled",
          "position": {
            "x": 110,
            "y": 940
          }
        },
        "flowElementId": "CF0070FB-964F-4727-B9B5-1EB9DB4170B4",
        "groupId": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B",
        "id": "C4BBE170-63BC-400B-8F95-BA2836CD4B3B",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onDecisionSettled",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Settled event",
          "scope": "SINGLE_APP",
          "serviceId": "verdo",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Decision settled",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Updates existing data in Google Sheets for AI agents to modify records, correct information, or maintain data accuracy in automated workflows. Perfect for updating user profiles, adjusting scores, or maintaining dynamic data that changes over time.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Update the register Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRow",
          "legacyElementId": "JS###v1###GoogleSheets###updateRow",
          "methodName": "updateRow",
          "position": {
            "x": 831,
            "y": 1661
          }
        },
        "flowElementId": "928DF7B2-5859-42CB-B1B2-7E96DFDAE6B4",
        "groupId": null,
        "id": "32521E27-9BE0-4433-B787-1D46720013F5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Decision register sheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Decision register sheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Register match",
                    "subPathSegments": [
                      {
                        "key": "rowNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "61B5BC27-CF8F-49E9-9963-04A1F5FC54C5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rowData",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Register update",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "68F42863-985E-4542-ABC4-B2A2F572CF62"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Update the register', Error: The placeholder \"Decision register sheet\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Register updated",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Update the register",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends emails through Gmail for AI agents to automate customer communication.",
          "elementId": "EXTENSION:::SHARED:::default:::gmail-service:::sendMessage",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the owner the new decision Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::gmail-service:::sendMessage",
          "legacyElementId": "JS###v1###GmailService###sendMessage",
          "methodName": "sendMessage",
          "position": {
            "x": 788,
            "y": 1831
          }
        },
        "flowElementId": "7CBCBD52-C43E-4D85-ABF6-E6DDE5754036",
        "groupId": null,
        "id": "3B4D0553-16DA-4E2C-A46C-01CACE97CDFD",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "to",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "owner",
                        "optional": false
                      },
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Proposed again: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bodyType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "plain"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bodyContent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Hi "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "owner",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ",\n\nAs you asked, \""
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Log event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "title",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "\" is open again in Verdo with the same options and four days to vote: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "New decision",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "1D3E9583-3917-4EC0-89EC-1F84D59AF9C3"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "\n\nShare the link with the people who should vote."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cc",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "bcc",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachments",
              "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": "sendMessage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New decision email",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "gmail-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the owner the new decision",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "triggers-group",
          "isFirstElement": true,
          "blockDefinitionId": "triggers-group",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 127,
            "y": 1110
          }
        },
        "flowElementId": "15EB53B1-A474-4801-8C84-74EFF01B9080",
        "groupId": null,
        "id": "D1C395B1-438B-4CFF-B052-0B412A2E2E7B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "occurWithin": null,
          "occurrenceTimeUnit": null,
          "onFailElemId": null,
          "resultAlias": "Log event",
          "storeResult": true,
          "transitionMode": "ONE_OCCUR"
        },
        "name": "Decision events",
        "nextElementIds": [
          "5A8FA7DF-00E0-4A18-BF0E-BE9DF1EF0887"
        ],
        "nextGroupIds": [],
        "type": "TRIGGERS"
      },
      {
        "clientMetadata": {
          "elementId": "triggers-group",
          "isFirstElement": false,
          "blockDefinitionId": "triggers-group",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 453,
            "y": 1410
          }
        },
        "flowElementId": "955AE3F6-1559-4D58-AE7B-375B3FC4483B",
        "groupId": null,
        "id": "33B5DD68-20A1-4287-9EBD-7B34BD77BE3B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "occurWithin": null,
          "occurrenceTimeUnit": null,
          "onFailElemId": null,
          "resultAlias": "Owner reply",
          "storeResult": true,
          "transitionMode": "ONE_OCCUR"
        },
        "name": "Until the owner answers",
        "nextElementIds": [
          "099B0585-8D30-498F-8693-590AFC3E8F4F"
        ],
        "nextGroupIds": [],
        "type": "TRIGGERS"
      }
    ],
    "id": "28750F08-C592-4914-9440-8A5634CD0556",
    "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 or ID of the Google Sheet that holds the decision register.",
          "error": null,
          "name": "Decision register sheet",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The ID of the Notion page the decision pages go under.",
          "error": null,
          "name": "Decision wiki page ID",
          "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-12-02T01:43:58.013Z"
}
