{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "0420FBD6-826C-41D0-B9B7-B14361F1EF65",
    "name": "Zendesk: overdue intake tickets escalated"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -70,
        "y": -180,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "Run on a schedule, every hour. Finds tickets in the Zendesk intake group still open past the hours set in the flow settings, assigns each to the intake lead at high priority with an internal note and the intake_escalated tag, and sends the intake lead one Slack message listing them. A ticket is escalated once.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Run on a schedule, every hour. Finds tickets in the Zendesk intake group still open past the hours set in the flow settings, assigns each to the intake lead at high priority with an internal note and the intake_escalated tag, and sends the intake lead one Slack message listing them. A ticket is escalated once.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": true,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Work out what counts as overdue Result"
          },
          "position": {
            "x": 110,
            "y": 229
          }
        },
        "flowElementId": "F3C302FB-052A-40DE-8010-100428049C6F",
        "groupId": null,
        "id": "8F488B28-C116-4EB7-AB0E-DABAA833784D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "hours",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Hours to work a referral",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Hours to work a referral"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "groupName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Intake group",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Intake group"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const h = Number(hours);\nif (!(h > 0)) throw new Error('Set the flow setting Hours to work a referral to a number of hours, such as 24.');\nconst group = String(groupName || '').trim().replace(/\"/g, '');\nif (!group) throw new Error('Set the flow setting Intake group to the name of your intake group in Zendesk.');\nconst cutoff = new Date(Date.now() - h * 3600 * 1000);\n// Zendesk search narrows by day; the exact hour is checked on each ticket in the next step.\nconst dayAfter = new Date(cutoff.getTime() + 24 * 3600 * 1000).toISOString().slice(0, 10);\nreturn { cutoff: cutoff.toISOString(), hours: h, query: `group:\"${group}\" status<solved created<${dayAfter} -tags:intake_escalated` };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Cutoff",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Work out what counts as overdue",
        "nextElementIds": [
          "15061E7B-F604-43C0-A9D0-35DFB212BFE4"
        ],
        "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": "Note the escalation Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "legacyElementId": "JS###v1###Zendesk###addCommentToTicket",
          "methodName": "addCommentToTicket",
          "position": {
            "x": 1061,
            "y": 40
          }
        },
        "flowElementId": "723443FF-EC4C-4A26-A31B-71BA1F8531CE",
        "groupId": "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D",
        "id": "79D75E0C-3FCE-489C-A637-26D61151AA57",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Overdue ticket",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "66B1155A-1778-41CE-A812-7B46E0AD37F4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Open more than "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cutoff",
                    "subPathSegments": [
                      {
                        "key": "hours",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F488B28-C116-4EB7-AB0E-DABAA833784D"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " hours, so FlowRunner assigned it to the intake lead at high priority."
                  }
                ],
                "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": "Escalation note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Note the escalation",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1152,
            "y": 229
          }
        },
        "flowElementId": "EA284339-CE8E-462D-91FB-9A0BBC7E72D0",
        "groupId": null,
        "id": "8A4531C7-6974-4D0C-B960-A7DE33014E3A",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "ecbf66a8-2ca4-42af-972f-dc6282004854",
                "nestedOperation": null,
                "operation": ">",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Overdue",
                      "subPathSegments": [
                        {
                          "key": "count",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "2DE5822E-7A22-480E-8F90-A3AC755C5B1F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 0
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "ecbf66a8-2ca4-42af-972f-dc6282004854"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Has overdue",
          "storeResult": false,
          "thenComponent": {
            "componentId": "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D",
            "componentType": "GROUP"
          }
        },
        "name": "Any overdue?",
        "nextElementIds": [],
        "nextGroupIds": [
          "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D"
        ],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Searches tickets using the Zendesk search syntax. \"type:ticket\" is added automatically so results are always tickets. Combine keywords and filters like \"status:open\", \"priority>=high\", \"assignee:jane@example.com\", \"tags:vip\", \"created>2026-01-01\", e.g. \"printer status:open priority:urgent\". Returns up to 100 results per page.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::searchTickets",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find open intake tickets Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::searchTickets",
          "legacyElementId": "JS###v1###Zendesk###searchTickets",
          "methodName": "searchTickets",
          "position": {
            "x": 499,
            "y": 220
          }
        },
        "flowElementId": "61F8AB93-E19A-463F-B585-C38AA5CEDF8C",
        "groupId": null,
        "id": "15061E7B-F604-43C0-A9D0-35DFB212BFE4",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "query",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cutoff",
                    "subPathSegments": [
                      {
                        "key": "query",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F488B28-C116-4EB7-AB0E-DABAA833784D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sortBy",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "created_at"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sortOrder",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "asc"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "perPage",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 100
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "page",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "searchTickets",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Open tickets",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find open intake tickets",
        "nextElementIds": [
          "2DE5822E-7A22-480E-8F90-A3AC755C5B1F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "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": true,
          "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": 110,
            "y": 40
          }
        },
        "flowElementId": "F9050381-B898-439B-B7C3-797191FDB5B1",
        "groupId": "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D",
        "id": "66B1155A-1778-41CE-A812-7B46E0AD37F4",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D"
                  }
                ],
                "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": "Overdue ticket",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the ticket",
        "nextElementIds": [
          "4D675A64-DD3C-43E1-AEB0-5078C5217D20"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the escalated tag Result"
          },
          "position": {
            "x": 410,
            "y": 49
          }
        },
        "flowElementId": "430183C6-E923-4C6C-89F3-29709081279D",
        "groupId": "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D",
        "id": "4D675A64-DD3C-43E1-AEB0-5078C5217D20",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "ticket",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Overdue ticket",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "66B1155A-1778-41CE-A812-7B46E0AD37F4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const tags = Array.isArray(ticket && ticket.tags) ? ticket.tags.slice() : [];\nif (!tags.includes('intake_escalated')) tags.push('intake_escalated');\nreturn { tags };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Tags",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Add the escalated tag",
        "nextElementIds": [
          "F28ED463-E01F-40F9-9211-9935D21FC5AA"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Keep the overdue ones Result"
          },
          "position": {
            "x": 823,
            "y": 229
          }
        },
        "flowElementId": "ACF17A77-28DB-46C8-BC0C-5785D110A73B",
        "groupId": null,
        "id": "2DE5822E-7A22-480E-8F90-A3AC755C5B1F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "found",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Open tickets",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "15061E7B-F604-43C0-A9D0-35DFB212BFE4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cutoff",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Cutoff",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "8F488B28-C116-4EB7-AB0E-DABAA833784D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const cut = new Date(cutoff.cutoff).getTime();\nconst open = (found && found.results) || [];\nconst tickets = open\n  .filter((t) => t && t.id && !['solved', 'closed'].includes(String(t.status || '').toLowerCase()))\n  .filter((t) => !(Array.isArray(t.tags) && t.tags.includes('intake_escalated')))\n  .filter((t) => new Date(t.created_at).getTime() <= cut)\n  .map((t) => ({ id: t.id, subject: t.subject || `Ticket ${t.id}`, hoursOpen: Math.floor((Date.now() - new Date(t.created_at).getTime()) / 3600000), url: String(t.url || '').replace(/\\/api\\/v2\\/tickets\\/(\\d+)\\.json.*$/, '/agent/tickets/$1') }));\nconst lines = tickets.map((t) => `• ${t.url ? `<${t.url}|#${t.id}>` : `#${t.id}`} ${t.subject} (open ${t.hoursOpen} hours)`);\nconst summary = tickets.length\n  ? [`*${tickets.length} intake ${tickets.length === 1 ? 'ticket is' : 'tickets are'} open past ${cutoff.hours} hours* and now assigned to you at high priority:`, ...lines].join('\\n')\n  : '';\nreturn { count: tickets.length, tickets, summary };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Overdue",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Keep the overdue ones",
        "nextElementIds": [
          "8A4531C7-6974-4D0C-B960-A7DE33014E3A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell the intake lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 832,
            "y": 390
          }
        },
        "flowElementId": "CF529AD8-78EC-4A92-9C72-4772679EA0F1",
        "groupId": null,
        "id": "F2219D3F-8E96-4EC9-BFFA-E5AD52271E3D",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Overdue",
                    "subPathSegments": [
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2DE5822E-7A22-480E-8F90-A3AC755C5B1F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Lead message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell the intake lead",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates an existing ticket's subject, status, priority, type, assignee, group, or tags. Only the fields you provide are changed; tags, when provided, replace the ticket's existing tags. Returns the updated ticket.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::updateTicket",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Escalate to the intake lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::updateTicket",
          "legacyElementId": "JS###v1###Zendesk###updateTicket",
          "methodName": "updateTicket",
          "position": {
            "x": 721,
            "y": 40
          }
        },
        "flowElementId": "9FA80625-9A6E-4005-8A12-46B669390CC1",
        "groupId": "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D",
        "id": "F28ED463-E01F-40F9-9211-9935D21FC5AA",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Overdue ticket",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "66B1155A-1778-41CE-A812-7B46E0AD37F4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "status",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "priority",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "high"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "type",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "assigneeId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "groupId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tags",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Tags",
                    "subPathSegments": [
                      {
                        "key": "tags",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "4D675A64-DD3C-43E1-AEB0-5078C5217D20"
                  }
                ],
                "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": "updateTicket",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Escalated ticket",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Escalate to the intake lead",
        "nextElementIds": [
          "79D75E0C-3FCE-489C-A637-26D61151AA57"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "8F488B28-C116-4EB7-AB0E-DABAA833784D",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": -70,
            "y": 0,
            "zoom": 1
          },
          "position": {
            "x": 1141,
            "y": 399
          }
        },
        "flowElementId": "E9DD48BA-1CC0-428D-9FCE-54D5DCE57D0A",
        "groupId": null,
        "id": "6D2B49D4-8A91-49D4-8BCC-2EE470995B3D",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "enabled": true,
          "firstElementId": "66B1155A-1778-41CE-A812-7B46E0AD37F4",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Overdue",
                "subPathSegments": [
                  {
                    "key": "tickets",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "2DE5822E-7A22-480E-8F90-A3AC755C5B1F"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "each",
          "storeResult": true
        },
        "name": "For each overdue ticket",
        "nextElementIds": [
          "F2219D3F-8E96-4EC9-BFFA-E5AD52271E3D"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      }
    ],
    "id": "BEA6896E-722B-4FDC-AB9E-0E2F21D87B2B",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "The name of your intake group in Zendesk, exactly as it appears there.",
          "error": null,
          "name": "Intake group",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "How many hours an intake ticket can stay open before it goes to the intake lead.",
          "error": null,
          "name": "Hours to work a referral",
          "type": "INT",
          "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:59.511Z"
}
