{
  "version": "6",
  "id": "vb3p92k33soehqp3chrkko0n",
  "name": "Bolhas de Triggers",
  "events": [
    {
      "id": "ipvwanfe17dujmqwrr1cic8y",
      "outgoingEdgeId": "hjbz13agv9rwjtn2kd5igipq",
      "graphCoordinates": { "x": -27, "y": -71 },
      "type": "start"
    }
  ],
  "groups": [
    {
      "id": "x0eseupydvtamvfl5c27f679",
      "title": "Fechar Ticket",
      "graphCoordinates": { "x": 612.02, "y": 523.08 },
      "blocks": [
        {
          "id": "svwilp49asg8madb47iyztto",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [{ "text": "#{\"closeTicket\": true}" }]
              }
            ]
          }
        }
      ]
    },
    {
      "id": "qmm3lrwma5w7rtwv5ckqpfcy",
      "title": "Documentação dos Triggers",
      "graphCoordinates": { "x": -76.18, "y": -3.46 },
      "blocks": [
        {
          "id": "r5s6ynzknqaq7e3cjiuu441b",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Documentação dos Triggers em " },
                  {
                    "url": "https://github.com/ticketz-oss/ticketz-docker-acme/blob/pro-head/Docs/Integration%20Triggers.md",
                    "type": "a",
                    "children": [
                      {
                        "text": "https://github.com/ticketz-oss/ticketz-docker-acme/blob/pro-head/Docs/Integration%20Triggers.md"
                      }
                    ]
                  },
                  { "text": "" }
                ]
              },
              { "type": "p", "children": [{ "text": "" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "gagq1fat21nji9w8bk4ir1io",
      "title": "Encerrar chatbot",
      "graphCoordinates": { "x": 613.25, "y": 661.04 },
      "blocks": [
        {
          "id": "bckivqsyn5raeehewmgpow3q",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{\"stopbot\": true}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "pp8f1rbm8p219ivpawwlvx4j",
      "title": "Transferir Ticket para uma Fila",
      "graphCoordinates": { "x": 271.37, "y": -65.03 },
      "blocks": [
        {
          "id": "rej1r82n6z5d844f8j4xddqg",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{" }] },
              { "type": "p", "children": [{ "text": "\"queueId\": 99" }] },
              { "type": "p", "children": [{ "text": "}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "n9jge4oyyl4pnix70vl7x0x3",
      "title": "Transferir Ticket para um usuário",
      "graphCoordinates": { "x": 273.01, "y": 145.95 },
      "blocks": [
        {
          "id": "gdk21nokyagk0pyqljezhuyu",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{" }] },
              { "type": "p", "children": [{ "text": "\"userId\": 99," }] },
              { "type": "p", "children": [{ "text": "\"queueId\": 99" }] },
              { "type": "p", "children": [{ "text": "}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "z67bkrs1wltjorr6ny75rsat",
      "title": "Adicionar anotação no ticket",
      "graphCoordinates": { "x": 274.42, "y": 387.2 },
      "blocks": [
        {
          "id": "oto8avylzvfe0o235m5z2hma",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{" }] },
              {
                "type": "p",
                "children": [{ "text": "  \"action\": \"note\"," }]
              },
              { "type": "p", "children": [{ "text": "  \"message\": {" }] },
              {
                "type": "p",
                "children": [
                  { "text": "    \"content\": \"Texto da anotação\"" }
                ]
              },
              { "type": "p", "children": [{ "text": "  }" }] },
              { "type": "p", "children": [{ "text": "}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "ef2h4ug6gsmpu2rfo404uni2",
      "title": "Variáveis",
      "graphCoordinates": { "x": 945.5, "y": 199.34 },
      "blocks": [
        {
          "id": "gktcynmqzqvzq285og07ssbi",
          "type": "text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [{ "text": "Variáveis disponíveis:" }]
              },
              { "type": "p", "children": [{ "text": "" }] },
              { "type": "p", "children": [{ "text": "{{number}}" }] },
              { "type": "p", "children": [{ "text": "" }] },
              { "type": "p", "children": [{ "text": "{{pushName}}" }] },
              { "type": "p", "children": [{ "text": "" }] },
              { "type": "p", "children": [{ "text": "{{firstName}}" }] },
              { "type": "p", "children": [{ "text": "" }] },
              { "type": "p", "children": [{ "text": "{{ticketId}}" }] },
              { "type": "p", "children": [{ "text": "" }] },
              { "type": "p", "children": [{ "text": "{{backendURL}}" }] },
              { "type": "p", "children": [{ "text": "" }] },
              { "type": "p", "children": [{ "text": "{{token}}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "gqkx0skfushsd04obqfeleug",
      "title": "Adiciona Tag",
      "graphCoordinates": { "x": 608.96, "y": -72.74 },
      "blocks": [
        {
          "id": "hf1fh1hlc5kkin725ch5nb59",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{" }] },
              {
                "type": "p",
                "children": [{ "text": "  \"action\": \"addTag\"," }]
              },
              { "type": "p", "children": [{ "text": "  \"tagId\": 99" }] },
              { "type": "p", "children": [{ "text": "}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "nbnqw4rbnh16ymriodc56btp",
      "title": "Remove Tag",
      "graphCoordinates": { "x": 610.96, "y": 133.26 },
      "blocks": [
        {
          "id": "ep9kc370etf687qgq3dchsmg",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{" }] },
              {
                "type": "p",
                "children": [{ "text": "  \"action\": \"removeTag\"," }]
              },
              { "type": "p", "children": [{ "text": "  \"tagId\": 99" }] },
              { "type": "p", "children": [{ "text": "}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "t6bkud0bxam16nc1abz4opmo",
      "title": "Limpa Tags",
      "graphCoordinates": { "x": 610.96, "y": 334.26 },
      "blocks": [
        {
          "id": "bn40ad4g60o5aqj1ke8sp7fo",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{" }] },
              {
                "type": "p",
                "children": [{ "text": "  \"action\": \"clearTags\"" }]
              },
              { "type": "p", "children": [{ "text": "}" }] }
            ]
          }
        }
      ]
    },
    {
      "id": "qkvfw6ke4e8dad19lcut24w8",
      "title": "Força ordem de processamento",
      "graphCoordinates": { "x": 943.02, "y": -71.99 },
      "blocks": [
        {
          "id": "cmtlwd3zzx20y2l8owjaoavs",
          "type": "text",
          "content": {
            "richText": [
              { "type": "p", "children": [{ "text": "#{" }] },
              {
                "type": "p",
                "children": [{ "text": "  \"action\": \"ping\"" }]
              },
              { "type": "p", "children": [{ "text": "}" }] }
            ]
          }
        },
        {
          "id": "a00z4uo8zqcikqtiick6ii0h",
          "type": "text input",
          "options": {}
        }
      ]
    }
  ],
  "edges": [
    {
      "id": "hjbz13agv9rwjtn2kd5igipq",
      "from": { "eventId": "ipvwanfe17dujmqwrr1cic8y" },
      "to": { "groupId": "qmm3lrwma5w7rtwv5ckqpfcy" }
    }
  ],
  "variables": [
    {
      "id": "mkchbpwdru1wr8kd5kxuy4iz",
      "name": "token",
      "isSessionVariable": true
    },
    {
      "id": "uim4z1w85za2x98e3htbc1v3",
      "name": "firstName",
      "isSessionVariable": true
    },
    {
      "id": "ebsx7so605g6fqafenyf07vf",
      "name": "backendURL",
      "isSessionVariable": true
    },
    {
      "id": "ws0rncm7tiyn5wngrw8u5xa6",
      "name": "ticketId",
      "isSessionVariable": true
    },
    {
      "id": "akdscf3o25bf23xjhnib6gna",
      "name": "pushName",
      "isSessionVariable": true
    },
    {
      "id": "gs4ecv31lyvio978xfc3if0f",
      "name": "number",
      "isSessionVariable": true
    }
  ],
  "theme": {},
  "selectedThemeTemplateId": null,
  "settings": {},
  "createdAt": "2025-04-25T11:17:28.210Z",
  "updatedAt": "2025-04-25T11:29:40.483Z",
  "icon": null,
  "folderId": null,
  "publicId": "bolhas-de-triggers-hrkko0n",
  "customDomain": null,
  "workspaceId": "cm39ekzp10001xznwpjprw5za",
  "resultsTablePreferences": null,
  "isArchived": false,
  "isClosed": false,
  "whatsAppCredentialsId": null,
  "riskLevel": null
}
