{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "CC9D11F0-046B-428C-8110-60FF98BDB105",
    "name": "Zendesk: referral status question answered"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -48.70967741935483,
        "y": 7.741935483870968,
        "zoom": 0.81
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a referring office emails the intake team in Zendesk to ask where a referral stands, reads the question, finds the patient's Healthie chart by name and birth date, drafts a reply from the chart (referral on file, first visit booked or not, visits so far), and posts it as an internal note for intake to approve. On approval the reply goes to the office and the ticket is solved. A question that matches no chart or more than one is left to intake with a note.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a referring office emails the intake team in Zendesk to ask where a referral stands, reads the question, finds the patient's Healthie chart by name and birth date, drafts a reply from the chart (referral on file, first visit booked or not, visits so far), and posts it as an internal note for intake to approve. On approval the reply goes to the office and the ticket is solved. A question that matches no chart or more than one is left to intake with a note.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Retrieves a single Zendesk ticket by ID, including subject, description, status, priority, requester, assignee, group, tags, and custom fields.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::getTicket",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the ticket Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::getTicket",
          "legacyElementId": "JS###v1###Zendesk###getTicket",
          "methodName": "getTicket",
          "position": {
            "x": 833,
            "y": 40
          }
        },
        "flowElementId": "0FA8597D-B126-4F7D-B5FE-5A276A26B8F2",
        "groupId": null,
        "id": "62EC887E-288E-42A8-9DBB-3E9C9E16B7C7",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
                  }
                ],
                "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": "getTicket",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Ticket",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the ticket",
        "nextElementIds": [
          "F55EC828-90B3-4CF5-A927-9064EF872E64"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Gather what the chart says Result"
          },
          "position": {
            "x": 1175,
            "y": 519
          }
        },
        "flowElementId": "65D4165B-E595-4518-9912-9FF27E6E7EEC",
        "groupId": null,
        "id": "B1038BF5-5A56-430F-8B5D-3044C4C3399F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "match",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "0EA130F2-C095-4461-A2F1-C6385007C7A2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "upcoming",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Upcoming",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "06EFEDD2-6FAA-4BFB-96B5-09359FFEEC14"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pastVisits",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Past visits",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "8BAB552B-C8A7-4CC5-B317-0C75653A9C44"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documents",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Referral documents",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "1F6F4BCA-E9F5-4891-A281-A0D274913C07"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const day = (iso) => { const d = new Date(iso); return isNaN(d) ? String(iso || '') : d.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC' }); };\nconst visit = (a) => `${day(a.date)} at ${a.start || ''} ${a.timezone_abbr || ''}`.trim() + `${a.appointment_type && a.appointment_type.name ? `, ${a.appointment_type.name}` : ''}${a.provider && a.provider.full_name ? `, with ${a.provider.full_name}` : ''}${a.contact_type ? `, ${a.contact_type}` : ''}`;\nconst up = (upcoming && upcoming.appointments) || [];\nconst past = (pastVisits && pastVisits.appointments) || [];\nconst docs = (documents && documents.documents) || [];\nconst lines = [\n  `Patient: ${match.name}. Chart opened ${day(match.openedAt)}.`,\n  docs.length ? `Referral documents on the chart: ${docs.map((d) => `${d.display_name || 'document'} (filed ${day(d.created_at)})`).join('; ')}.` : 'No referral document is filed on the chart.',\n  up.length ? `Upcoming visits: ${up.map(visit).join('; ')}.` : 'No upcoming visit is booked.',\n  past.length ? `Past visits: ${past.map(visit).join('; ')}.` : 'The patient has not had a visit yet.',\n];\nreturn { text: lines.join('\\n'), hasUpcoming: up.length > 0 };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Chart facts",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Gather what the chart says",
        "nextElementIds": [
          "6AD7BFAA-6FA1-4183-B477-1BA20EA3949F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a ticket is created or updated in Zendesk. Provisions a Zendesk webhook plus a business-rule trigger that posts the ticket's ID (a number, like Get Ticket's), subject, status, priority, type, tags, requester, assignee, and URL to FlowRunner in real time. A flow activated before tags were added receives them once it is activated again.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::onTicketEvent",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::onTicketEvent",
          "legacyElementId": "JS###v1###Zendesk###onTicketEvent",
          "methodName": "onTicketEvent",
          "position": {
            "x": 476,
            "y": 40
          }
        },
        "flowElementId": "070C3182-DEA8-49B1-A7BF-D506CA3DFC43",
        "groupId": null,
        "id": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onTicketEvent",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New ticket",
          "scope": "SINGLE_APP",
          "serviceId": "zendesk",
          "slaConditions": [],
          "staticData": {
            "event": "created"
          },
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New ticket in Zendesk",
        "nextElementIds": [
          "62EC887E-288E-42A8-9DBB-3E9C9E16B7C7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Adds a comment (public reply or private internal note) to an existing ticket, optionally with file attachments (by file URL, or by tokens from Upload Attachment) and a new ticket status in the same update. Returns the updated ticket.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Leave it for intake Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "legacyElementId": "JS###v1###Zendesk###addCommentToTicket",
          "methodName": "addCommentToTicket",
          "position": {
            "x": 482,
            "y": 210
          }
        },
        "flowElementId": "10F64639-8DA8-4DF3-8ED3-7D21EAE8DFEB",
        "groupId": null,
        "id": "F5F0EF9D-196A-4243-BA97-D47498A82128",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "A referring office asks where a referral stands ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "asks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "), but "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "reason",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0EA130F2-C095-4461-A2F1-C6385007C7A2"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". FlowRunner did not draft a reply; please answer by hand."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "htmlBody",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "publicComment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachmentUrls",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "uploadTokens",
              "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": "addCommentToTicket",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "No match note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Leave it for intake",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 832,
            "y": 349
          }
        },
        "flowElementId": "249562EE-0706-4BA4-B41B-5D21FAAFE279",
        "groupId": null,
        "id": "084EC999-967F-4EFE-A9CB-4482AD5BA8A0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "5b80cb78-82ab-4167-a094-7220b88754a6",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Match",
                      "subPathSegments": [
                        {
                          "key": "single",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "0EA130F2-C095-4461-A2F1-C6385007C7A2"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "5b80cb78-82ab-4167-a094-7220b88754a6"
            ]
          },
          "elseComponent": {
            "componentId": "F5F0EF9D-196A-4243-BA97-D47498A82128",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Is single match",
          "storeResult": false,
          "thenComponent": {
            "componentId": "06EFEDD2-6FAA-4BFB-96B5-09359FFEEC14",
            "componentType": "ELEMENT"
          }
        },
        "name": "One matching chart?",
        "nextElementIds": [
          "F5F0EF9D-196A-4243-BA97-D47498A82128",
          "06EFEDD2-6FAA-4BFB-96B5-09359FFEEC14"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the question Result"
          },
          "tools": {},
          "position": {
            "x": 1198,
            "y": 49
          }
        },
        "flowElementId": "CA64CD7D-E2B8-4024-82A3-835108FDA55C",
        "groupId": null,
        "id": "F55EC828-90B3-4CF5-A927-9064EF872E64",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "claude-sonnet-5",
          "aiProvider": "ANTHROPIC",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "Anthropic key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "Anthropic key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "Question",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You read new tickets that arrive at a healthcare intake team's Zendesk, most of them emails. Decide whether the ticket is a referring provider's office asking about the status of a patient they referred (for example: did you get the referral, has the patient been scheduled, was the patient seen). Reply with JSON only, with these fields:\nisStatusQuestion: true only for a referring office asking where a referral or a referred patient stands; false for anything else, including a patient writing about themselves, a new referral, records requests, billing and sales email\npatientFirstName: the patient's first name as written, or empty text\npatientLastName: the patient's last name as written, or empty text\npatientDateOfBirth: the patient's date of birth as YYYY-MM-DD, or empty text\noffice: the referring office or provider writing, as they name themselves, or empty text\nasks: what they want to know, in one short sentence\nNever guess a value that is not in the ticket."
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Ticket subject: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Ticket",
                "subPathSegments": [
                  {
                    "key": "subject",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "62EC887E-288E-42A8-9DBB-3E9C9E16B7C7"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nFrom: "
              },
              {
                "id": "RESULT",
                "label": "New ticket",
                "subPathSegments": [
                  {
                    "key": "requesterName",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " <"
              },
              {
                "id": "RESULT",
                "label": "New ticket",
                "subPathSegments": [
                  {
                    "key": "requesterEmail",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": ">\n\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Ticket",
                "subPathSegments": [
                  {
                    "key": "description",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "62EC887E-288E-42A8-9DBB-3E9C9E16B7C7"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Read the question",
        "nextElementIds": [
          "6D4228EA-E3CD-46D9-B47C-CC886E88773C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Looks for existing patients by first name, last name, date of birth and email, optionally narrowed by phone number, so an incoming referral is matched to the right chart before a new patient is created. Every term you fill in must match. Healthie does not search by phone number itself, so give at least one other term with it.",
          "elementId": "EXTENSION:::SHARED:::default:::healthie:::searchPatients",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the patient's chart Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::healthie:::searchPatients",
          "legacyElementId": null,
          "methodName": "searchPatients",
          "position": {
            "x": 1541,
            "y": 340
          }
        },
        "flowElementId": "970F20F8-C1EE-4270-AA16-E216F166B199",
        "groupId": null,
        "id": "E38FD8E6-2249-465E-BFA7-F783FB53F918",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "firstName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "patientFirstName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "lastName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "patientLastName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dateOfBirth",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "patientDateOfBirth",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "phoneNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pageSize",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 25
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cursor",
              "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": "searchPatients",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Patient search",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "healthie",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the patient's chart",
        "nextElementIds": [
          "0EA130F2-C095-4461-A2F1-C6385007C7A2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the documents on a patient's Healthie chart, such as referrals, signed forms and lab results, newest first. Narrow the list by folder, name or sharing, and page through it with the next cursor.",
          "elementId": "EXTENSION:::SHARED:::default:::healthie:::listPatientDocuments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the referral on the chart Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::healthie:::listPatientDocuments",
          "legacyElementId": null,
          "methodName": "listPatientDocuments",
          "position": {
            "x": 805,
            "y": 510
          }
        },
        "flowElementId": "5B9566E5-A951-4658-8045-64001B4789A4",
        "groupId": null,
        "id": "1F6F4BCA-E9F5-4891-A281-A0D274913C07",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "patientId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "patientId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0EA130F2-C095-4461-A2F1-C6385007C7A2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "folderId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "keywords",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Referral"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sharing",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sortBy",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "CREATED_AT_ASC"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pageSize",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 10
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cursor",
              "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": "listPatientDocuments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Referral documents",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "healthie",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the referral on the chart",
        "nextElementIds": [
          "B1038BF5-5A56-430F-8B5D-3044C4C3399F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists a patient's appointments in Healthie, with every provider: upcoming ones soonest first, or past ones newest first. Narrow them by dates, type, provider or status. The result says whether the patient has an upcoming appointment and which one is next, so a flow can check that a patient has booked.",
          "elementId": "EXTENSION:::SHARED:::default:::healthie:::listAppointments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get upcoming visits Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::healthie:::listAppointments",
          "legacyElementId": null,
          "methodName": "listAppointments",
          "position": {
            "x": 482,
            "y": 340
          }
        },
        "flowElementId": "20830A44-F2C4-407F-AD0E-8E0809A485B8",
        "groupId": null,
        "id": "06EFEDD2-6FAA-4BFB-96B5-09359FFEEC14",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "patientId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "patientId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0EA130F2-C095-4461-A2F1-C6385007C7A2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timeframe",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "upcoming"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "appointmentTypeId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "providerId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeCanceled",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sortBy",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pageSize",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 5
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cursor",
              "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": "listAppointments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Upcoming",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "healthie",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get upcoming visits",
        "nextElementIds": [
          "8BAB552B-C8A7-4CC5-B317-0C75653A9C44"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists a patient's appointments in Healthie, with every provider: upcoming ones soonest first, or past ones newest first. Narrow them by dates, type, provider or status. The result says whether the patient has an upcoming appointment and which one is next, so a flow can check that a patient has booked.",
          "elementId": "EXTENSION:::SHARED:::default:::healthie:::listAppointments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get past visits Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::healthie:::listAppointments",
          "legacyElementId": null,
          "methodName": "listAppointments",
          "position": {
            "x": 482,
            "y": 510
          }
        },
        "flowElementId": "A9DFF687-0902-432A-94D8-1CDCBB94432C",
        "groupId": null,
        "id": "8BAB552B-C8A7-4CC5-B317-0C75653A9C44",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "patientId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "patientId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "0EA130F2-C095-4461-A2F1-C6385007C7A2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timeframe",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "past"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toDate",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "appointmentTypeId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "providerId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeCanceled",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sortBy",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "pageSize",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 5
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cursor",
              "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": "listAppointments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Past visits",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "healthie",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get past visits",
        "nextElementIds": [
          "1F6F4BCA-E9F5-4891-A281-A0D274913C07"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1534,
            "y": 49
          }
        },
        "flowElementId": "659058A1-8F43-4F29-AFB2-49BF3013D367",
        "groupId": null,
        "id": "6D4228EA-E3CD-46D9-B47C-CC886E88773C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e5e61065-fe33-4895-ad54-b993e3d72004",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Question",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "isStatusQuestion",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "e5e61065-fe33-4895-ad54-b993e3d72004"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Is status question",
          "storeResult": false,
          "thenComponent": {
            "componentId": "E38FD8E6-2249-465E-BFA7-F783FB53F918",
            "componentType": "ELEMENT"
          }
        },
        "name": "Referral status question?",
        "nextElementIds": [
          "E38FD8E6-2249-465E-BFA7-F783FB53F918"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Draft the reply Result"
          },
          "tools": {},
          "position": {
            "x": 1550,
            "y": 519
          }
        },
        "flowElementId": "FFE7D110-EF0E-4E83-BEF5-8A2F6D87C715",
        "groupId": null,
        "id": "6AD7BFAA-6FA1-4183-B477-1BA20EA3949F",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "claude-sonnet-5",
          "aiProvider": "ANTHROPIC",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "Anthropic key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "Anthropic key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "Draft",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You write short email replies from a healthcare intake team to a referring provider's office that asked where a referral stands. Use only the facts given from the patient's chart. Say whether the referral was received, whether the first visit is booked and when, and whether the patient has been seen. When no visit is booked, say the intake team has the referral and the office will hear from us when the first visit is booked. Do not include diagnoses, clinical notes, insurance details or anything not in the facts, do not promise dates the facts do not give, and do not sign with a person's name. Plain text, no more than 120 words, starting with a greeting to the office. Reply with JSON only: {\"reply\": \"...\"}"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "The office "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Question",
                "subPathSegments": [
                  {
                    "key": "output",
                    "optional": false
                  },
                  {
                    "key": "office",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": " ("
              },
              {
                "id": "RESULT",
                "label": "New ticket",
                "subPathSegments": [
                  {
                    "key": "requesterEmail",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": ") asks: "
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Question",
                "subPathSegments": [
                  {
                    "key": "output",
                    "optional": false
                  },
                  {
                    "key": "asks",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nFacts from the chart:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Chart facts",
                "subPathSegments": [
                  {
                    "key": "text",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "B1038BF5-5A56-430F-8B5D-3044C4C3399F"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Draft the reply",
        "nextElementIds": [
          "187D6072-BE81-45A5-A6DC-0C1CAD49BB76"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check the match Result"
          },
          "position": {
            "x": 1198,
            "y": 349
          }
        },
        "flowElementId": "96263BD9-671B-427E-824C-6313F890CE04",
        "groupId": null,
        "id": "0EA130F2-C095-4461-A2F1-C6385007C7A2",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "question",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F55EC828-90B3-4CF5-A927-9064EF872E64"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "search",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Patient search",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "E38FD8E6-2249-465E-BFA7-F783FB53F918"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const norm = (s) => String(s || '').trim().toLowerCase();\nconst q = question || {};\nconst dob = String(q.patientDateOfBirth || '').trim();\nif (!q.patientLastName || !dob) return { single: false, reason: 'the email does not give the patient\\'s full name and date of birth, so no chart was matched' };\nconst list = ((search && search.patients) || []).filter((p) => norm(p.first_name) === norm(q.patientFirstName) && norm(p.last_name) === norm(q.patientLastName) && String(p.dob || '') === dob);\nif (list.length === 1) return { single: true, patientId: String(list[0].id), name: list[0].full_name || `${q.patientFirstName} ${q.patientLastName}`, openedAt: list[0].created_at || '' };\nreturn { single: false, reason: list.length ? 'more than one chart has this name and birth date' : 'no chart has this exact name and birth date' };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Match",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Check the match",
        "nextElementIds": [
          "084EC999-967F-4EFE-A9CB-4482AD5BA8A0"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 482,
            "y": 689
          }
        },
        "flowElementId": "4D331902-D071-489F-8EF5-8DD744572EE5",
        "groupId": null,
        "id": "6A94C0BF-DCA1-42D5-B779-D63459D1C68A",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "8aad8f6d-b8b3-41e8-98e4-265c95039c35",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Intake answer",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "A08A514D-C9EA-4434-A23E-D1AC9CE24150"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "send"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "8aad8f6d-b8b3-41e8-98e4-265c95039c35"
            ]
          },
          "elseComponent": {
            "componentId": "09BE26E7-038E-4872-9B44-F258B47853B9",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Approved",
          "storeResult": false,
          "thenComponent": {
            "componentId": "621076BD-1F98-4F3E-BBFD-070C2030D287",
            "componentType": "ELEMENT"
          }
        },
        "name": "Send it?",
        "nextElementIds": [
          "09BE26E7-038E-4872-9B44-F258B47853B9",
          "621076BD-1F98-4F3E-BBFD-070C2030D287"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a comment (public reply or private internal note) to an existing ticket, optionally with file attachments (by file URL, or by tokens from Upload Attachment) and a new ticket status in the same update. Returns the updated ticket.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the reply to the office Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "legacyElementId": "JS###v1###Zendesk###addCommentToTicket",
          "methodName": "addCommentToTicket",
          "position": {
            "x": 459,
            "y": 850
          }
        },
        "flowElementId": "74BB8B45-2122-4C15-B78A-40B30F986572",
        "groupId": null,
        "id": "621076BD-1F98-4F3E-BBFD-070C2030D287",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Draft",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "reply",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6AD7BFAA-6FA1-4183-B477-1BA20EA3949F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "htmlBody",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "publicComment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "solved"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachmentUrls",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "uploadTokens",
              "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": "addCommentToTicket",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Sent reply",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the reply to the office",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a comment (public reply or private internal note) to an existing ticket, optionally with file attachments (by file URL, or by tokens from Upload Attachment) and a new ticket status in the same update. Returns the updated ticket.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask intake to approve the reply Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "legacyElementId": "JS###v1###Zendesk###addCommentToTicket",
          "methodName": "addCommentToTicket",
          "position": {
            "x": 1161,
            "y": 680
          }
        },
        "flowElementId": "AD32AC55-C246-4180-B93E-2D9B736BD384",
        "groupId": null,
        "id": "44BA7D06-9447-47D2-8209-073565E2D4E5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Approval note",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "187D6072-BE81-45A5-A6DC-0C1CAD49BB76"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "htmlBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Approval note",
                    "subPathSegments": [
                      {
                        "key": "html",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "187D6072-BE81-45A5-A6DC-0C1CAD49BB76"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "publicComment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "open"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachmentUrls",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "uploadTokens",
              "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": "addCommentToTicket",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Approval request",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask intake to approve the reply",
        "nextElementIds": [
          "A08A514D-C9EA-4434-A23E-D1AC9CE24150"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 820,
            "y": 689
          }
        },
        "flowElementId": "D5B78D62-F2D8-4DF2-A731-52F311F7D18A",
        "groupId": null,
        "id": "A08A514D-C9EA-4434-A23E-D1AC9CE24150",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Intake answer",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for intake's answer",
        "nextElementIds": [
          "6A94C0BF-DCA1-42D5-B779-D63459D1C68A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Adds a comment (public reply or private internal note) to an existing ticket, optionally with file attachments (by file URL, or by tokens from Upload Attachment) and a new ticket status in the same update. Returns the updated ticket.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Note that intake will answer Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "legacyElementId": "JS###v1###Zendesk###addCommentToTicket",
          "methodName": "addCommentToTicket",
          "position": {
            "x": 110,
            "y": 680
          }
        },
        "flowElementId": "21B1C6D4-DF3D-4ACD-AB16-EB0A87E70A9C",
        "groupId": null,
        "id": "09BE26E7-038E-4872-9B44-F258B47853B9",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "The draft was not sent. Answer the office yourself; the draft above is there to copy from."
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "htmlBody",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "publicComment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachmentUrls",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "uploadTokens",
              "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": "addCommentToTicket",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Skipped note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Note that intake will answer",
        "nextElementIds": [],
        "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 approval note Result"
          },
          "position": {
            "x": 1540,
            "y": 689
          }
        },
        "flowElementId": "62B8E9E8-B90B-48DA-8A15-5EFE01ACC159",
        "groupId": null,
        "id": "187D6072-BE81-45A5-A6DC-0C1CAD49BB76",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "match",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "0EA130F2-C095-4461-A2F1-C6385007C7A2"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reply",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Draft",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "reply",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6AD7BFAA-6FA1-4183-B477-1BA20EA3949F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "requester",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New ticket",
                    "subPathSegments": [
                      {
                        "key": "requesterName",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " <"
                  },
                  {
                    "id": "RESULT",
                    "label": "New ticket",
                    "subPathSegments": [
                      {
                        "key": "requesterEmail",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ">"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const esc = (s) => String(s == null ? '' : s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\nconst link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst chart = `https://secure.gethealthie.com/users/${match.patientId}`;\nconst text = [\n  `Draft reply to ${requester} about ${match.name} (chart ${chart}):`,\n  '',\n  reply,\n  '',\n  `Only send it if ${requester} is the office that referred this patient.`,\n  `Send this reply: ${link('send')}`,\n  `I'll answer myself: ${link('skip')}`,\n].join('\\n');\nconst html = [\n  `<p><strong>Draft reply to ${esc(requester)}</strong> about <a href=\"${chart}\">${esc(match.name)}</a>, from what the chart says:</p>`,\n  `<blockquote>${esc(reply).replace(/\\n/g, '<br>')}</blockquote>`,\n  `<p>Only send it if ${esc(requester)} is the office that referred this patient.</p>`,\n  `<p><a href=\"${link('send')}\">Send this reply</a> &nbsp;|&nbsp; <a href=\"${link('skip')}\">I'll answer myself</a></p>`,\n].join('');\nreturn { text, html };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Approval note",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the approval note",
        "nextElementIds": [
          "44BA7D06-9447-47D2-8209-073565E2D4E5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "0E4D2F92-BC82-46C1-81A1-05BFAA85396C",
    "groups": [],
    "id": "6FA2E4A0-57B0-45ED-B75F-8DCBAE5FA261",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "Your Anthropic key, used to read the question and draft the reply.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for intake's answer. The links in the approval note open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-01T03:32:52.973Z"
}
