{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "12E32DCA-4929-4717-B29F-58F28FA85BEF",
    "name": "Strac: support tickets redacted before AI triage"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -70,
        "y": 0,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a Zendesk ticket is created, Strac redacts the sensitive data in it, OpenAI summarizes and classifies the redacted text, and the summary goes on the ticket as an internal note. A full card number also alerts the security lead in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a Zendesk ticket is created, Strac redacts the sensitive data in it, OpenAI summarizes and classifies the redacted text, and the summary goes on the ticket as an internal note. A full card number also alerts the security lead in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Lists all comments on a ticket in chronological order, including each comment's author, plain-text and HTML bodies, public/private flag, and attachments.",
          "elementId": "EXTENSION:::SHARED:::default:::zendesk:::listTicketComments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the ticket's comments Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::listTicketComments",
          "legacyElementId": "JS###v1###Zendesk###listTicketComments",
          "methodName": "listTicketComments",
          "position": {
            "x": 437,
            "y": 40
          }
        },
        "flowElementId": "10A1C195-4A6F-44ED-BB72-3D2D52DF3260",
        "groupId": null,
        "id": "AC9EA933-69E8-4991-A6BF-40B8400A8926",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "E1304785-6344-4B66-96A3-4DE686210E61"
                  }
                ],
                "mode": "EXPRESSION",
                "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": "listTicketComments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Comments",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the ticket's comments",
        "nextElementIds": [
          "D00FC51A-A657-435E-80FC-DC82A80C0637"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Sum up what Strac found Result"
          },
          "position": {
            "x": 1196,
            "y": 219
          }
        },
        "flowElementId": "484A2594-D6D8-4261-A3DC-88EECB5285F7",
        "groupId": null,
        "id": "7A9AA70E-059F-4F51-9E80-154B01305696",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "entities",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Redacted",
                    "subPathSegments": [
                      {
                        "key": "detectedEntities",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D33B69D-5FFA-4FDD-9014-C18C6CD71F55"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(entities) ? entities : [];\nconst counts = {};\nfor (const e of list) {\n  const t = e && e.type ? e.type : 'OTHER';\n  counts[t] = (counts[t] || 0) + 1;\n}\nconst label = (t) => t === 'CREDIT_DEBIT_NUMBER' ? 'full card number' : t.toLowerCase().replace(/_/g, ' ');\nconst found = Object.keys(counts).map((t) => `${counts[t]} ${label(t)}`).join(', ');\nreturn { found: found || 'nothing sensitive', cardFound: (counts.CREDIT_DEBIT_NUMBER || 0) > 0, count: list.length };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Findings",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Sum up what Strac found",
        "nextElementIds": [
          "3115B2BA-FBC4-45DD-8FD4-5FBAFC774DD1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Generates a model response via OpenAI's Responses API, the primary interface for text generation. Supports plain text input or a full input items array (multi-turn conversations, vision image parts), system instructions, reasoning effort for reasoning models, structured JSON output via a JSON schema, conversation chaining via a previous response ID, background execution, custom function tools, and OpenAI's built-in tools: web search, file search over vector stores, and code interpreter. Returns the full response object with a convenience 'outputText' field containing the concatenated assistant text.",
          "elementId": "EXTENSION:::SHARED:::default:::openai-ai:::createResponse",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Summarize and classify with OpenAI Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::openai-ai:::createResponse",
          "legacyElementId": "JS###v1###OpenAIService###createResponse",
          "methodName": "createResponse",
          "position": {
            "x": 788,
            "y": 210
          }
        },
        "flowElementId": "23E5CBF9-FD83-473A-96AB-70F48292CF1B",
        "groupId": null,
        "id": "3115B2BA-FBC4-45DD-8FD4-5FBAFC774DD1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "input",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Redacted",
                    "subPathSegments": [
                      {
                        "key": "redacted_content",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D33B69D-5FFA-4FDD-9014-C18C6CD71F55"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "model",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "gpt-6.1-sol"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "instructions",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "You triage customer support tickets. Strac redacted the sensitive data in this ticket before it reached you, so those values show as [REDACTED]; never guess them. Reply in plain text with three lines:\nSummary: two sentences on what the customer needs.\nCategory: one of Billing, Account access, Bug, How-to, Other.\nUrgency: Low, Normal or High, with a few words on why."
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "inputItems",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "previousResponseId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "store",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "background",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reasoningEffort",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "maxOutputTokens",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "temperature",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "topP",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "jsonSchemaName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "jsonSchema",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "enableWebSearch",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "vectorStoreIds",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "enableCodeInterpreter",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tools",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "metadata",
              "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": "createResponse",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Triage",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "openai-ai",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Summarize and classify with OpenAI",
        "nextElementIds": [
          "2BC4E964-7AF4-48FF-8FA7-D084DC18C4A2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends a direct message to a user on Slack 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:::sendDirectMessage",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell the security lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendDirectMessage",
          "legacyElementId": "JS###v1###Slack###sendDirectMessage",
          "methodName": "sendDirectMessage",
          "position": {
            "x": 122,
            "y": 380
          }
        },
        "flowElementId": "2078F7CD-93C3-4BCA-B078-08CA23D1E5A8",
        "groupId": null,
        "id": "EE70D4A0-D7F5-4741-A4E5-629A0D978D51",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "userId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Security lead Slack ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Security lead Slack ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Zendesk ticket "
                  },
                  {
                    "id": "RESULT",
                    "label": "Ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "E1304785-6344-4B66-96A3-4DE686210E61"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " holds a full card number. Strac found: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Findings",
                    "subPathSegments": [
                      {
                        "key": "found",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7A9AA70E-059F-4F51-9E80-154B01305696"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "."
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "The triage note on the ticket was written from the redacted text, but the customer's original comment still holds the number. Please decide how to handle it: "
                  },
                  {
                    "id": "RESULT",
                    "label": "Ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketUrl",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "E1304785-6344-4B66-96A3-4DE686210E61"
                  }
                ],
                "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": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Tell the security lead', Error: The placeholder \"Security lead Slack ID\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendDirectMessage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Lead alert",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell the security lead",
        "nextElementIds": [],
        "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": 118,
            "y": 40
          }
        },
        "flowElementId": "20D2A2A2-80F0-4E04-B850-1FB0B8DB268B",
        "groupId": null,
        "id": "E1304785-6344-4B66-96A3-4DE686210E61",
        "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": "Ticket",
          "scope": "SINGLE_APP",
          "serviceId": "zendesk",
          "slaConditions": [],
          "staticData": {
            "event": "created"
          },
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New ticket in Zendesk",
        "nextElementIds": [
          "AC9EA933-69E8-4991-A6BF-40B8400A8926"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Gather the ticket text Result"
          },
          "position": {
            "x": 839,
            "y": 49
          }
        },
        "flowElementId": "C409A7F2-7D0B-4264-BED8-1B78F1D18E71",
        "groupId": null,
        "id": "D00FC51A-A657-435E-80FC-DC82A80C0637",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Ticket",
                    "subPathSegments": [
                      {
                        "key": "subject",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "E1304785-6344-4B66-96A3-4DE686210E61"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "comments",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Comments",
                    "subPathSegments": [
                      {
                        "key": "comments",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AC9EA933-69E8-4991-A6BF-40B8400A8926"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const parts = [];\nif (subject) parts.push(`Subject: ${subject}`);\nfor (const c of (Array.isArray(comments) ? comments : [])) {\n  if (c && c.body) parts.push(c.body);\n}\nreturn { text: parts.join('\\n\\n') };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Ticket text",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Gather the ticket text",
        "nextElementIds": [
          "6D33B69D-5FFA-4FDD-9014-C18C6CD71F55"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Finds the sensitive data (SSNs, card numbers, driver's license numbers, names, addresses and more) in a piece of text and returns the text with each one redacted, plus the list of what was found and where. Useful before sending text to an AI model, a CRM or a ticket.",
          "elementId": "EXTENSION:::SHARED:::default:::strac:::redactText",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Redact with Strac Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::strac:::redactText",
          "legacyElementId": null,
          "methodName": "redactText",
          "position": {
            "x": 1213,
            "y": 40
          }
        },
        "flowElementId": "CF033D24-18AF-4558-800A-DE36CC1BF880",
        "groupId": null,
        "id": "6D33B69D-5FFA-4FDD-9014-C18C6CD71F55",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "content",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Ticket text",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D00FC51A-A657-435E-80FC-DC82A80C0637"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "redactFieldMode",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "REDACTED"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "redactText",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Redacted",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "strac",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Redact with Strac",
        "nextElementIds": [
          "7A9AA70E-059F-4F51-9E80-154B01305696"
        ],
        "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": "Add the triage note Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::zendesk:::addCommentToTicket",
          "legacyElementId": "JS###v1###Zendesk###addCommentToTicket",
          "methodName": "addCommentToTicket",
          "position": {
            "x": 463,
            "y": 210
          }
        },
        "flowElementId": "DE4CBDB2-3F79-44D7-8DF5-CCEFA2A30285",
        "groupId": null,
        "id": "2BC4E964-7AF4-48FF-8FA7-D084DC18C4A2",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "ticketId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Ticket",
                    "subPathSegments": [
                      {
                        "key": "ticketId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "E1304785-6344-4B66-96A3-4DE686210E61"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentBody",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Triage from the redacted ticket text (Strac redacted it before OpenAI read it):"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Triage",
                    "subPathSegments": [
                      {
                        "key": "outputText",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3115B2BA-FBC4-45DD-8FD4-5FBAFC774DD1"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Strac found: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Findings",
                    "subPathSegments": [
                      {
                        "key": "found",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7A9AA70E-059F-4F51-9E80-154B01305696"
                  }
                ],
                "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": "BASIC",
                "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": "Note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "zendesk",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the triage note",
        "nextElementIds": [
          "DD323756-4F44-4BCB-B620-19AE68579AEE"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 110,
            "y": 219
          }
        },
        "flowElementId": "028274C5-70AA-4B85-9FF9-FE294E36A642",
        "groupId": null,
        "id": "DD323756-4F44-4BCB-B620-19AE68579AEE",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "606ec4f9-471a-4c1e-8a47-b199e171ac04",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Findings",
                      "subPathSegments": [
                        {
                          "key": "cardFound",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "7A9AA70E-059F-4F51-9E80-154B01305696"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "606ec4f9-471a-4c1e-8a47-b199e171ac04"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Card found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "EE70D4A0-D7F5-4741-A4E5-629A0D978D51",
            "componentType": "ELEMENT"
          }
        },
        "name": "Full card number found?",
        "nextElementIds": [
          "EE70D4A0-D7F5-4741-A4E5-629A0D978D51"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "E1304785-6344-4B66-96A3-4DE686210E61",
    "groups": [],
    "id": "B4EECB4E-822D-4011-9F15-8954D82F87E3",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The Slack member ID of your security lead, who hears about tickets with a full card number.",
          "error": null,
          "name": "Security lead Slack ID",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T01:43:28.560Z"
}
