{
  "_notes": [
    "Schema baseado no formato de export do Typebot v6 (observado em projetos públicos e documentação do Typebot OSS).",
    "Suposição 1: A chave raiz do JSON de export é o próprio objeto typebot (não envolto em outro objeto pai).",
    "Suposição 2: Blocos de texto usam type 'bubbles/text' com content.richText contendo array de parágrafos no formato Slate.js (type:'p', children:[{text:'...'}]).",
    "Suposição 3: Blocos de escolha usam type 'inputs/choice' com options.items (array de {id, content}); cada item pode ter um outgoingEdgeId.",
    "Suposição 4: Blocos 'Set variable' usam type 'logic/set-variable' com options.variableId e options.expressionToEvaluate (string de expressão JS).",
    "Suposição 5: Blocos de condição usam type 'logic/condition' com items (array de condições com comparisons) e cada item tem um outgoingEdgeId.",
    "Suposição 6: Bloco de input de texto usa type 'inputs/text' com options.variableId.",
    "Suposição 7: Bloco de URL/redirect para WhatsApp usa type 'logic/redirect' com options.url.",
    "Suposição 8: O campo 'start' do typebot aponta para o id do primeiro grupo.",
    "Suposição 9: graphCoordinates são coordenadas x/y do canvas do Typebot (valores aproximados para layout visual).",
    "Suposição 10: Não existe tipo nativo de 'checkbox LGPD' no Typebot v6; o consentimento é implementado como choice input com opção única obrigatória (lista com um item 'Concordo — meus dados serão usados apenas para este contato').",
    "Suposição 11: O campo 'version' do schema exportado é a string '6'.",
    "Suposição 12: edges são definidos no array raiz 'edges' com campos id, from (groupId+blockId) e to (groupId+blockId).",
    "Suposição 13: variáveis são declaradas em 'variables' com id e name; o valor inicial é sempre vazio (definido em runtime pelos blocos).",
    "Suposição 14: O campo 'selectedThemeTemplateId' e 'theme' aceitam objeto vazio {} para tema padrão.",
    "Suposição 15: 'settings' aceita objeto com campos padrão; rememberUser.isEnabled=false é o padrão seguro para LGPD."
  ],
  "version": "6",
  "id": "bot-distrato-pinheirolima",
  "name": "Qualificação Distrato — Pinheiro Lima",
  "icon": "",
  "selectedThemeTemplateId": null,
  "theme": {
    "chat": {
      "hostAvatar": { "isEnabled": true },
      "guestAvatar": { "isEnabled": false },
      "hostBubbles": {
        "backgroundColor": "#f0f4ff",
        "color": "#1a1a2e"
      },
      "buttons": {
        "backgroundColor": "#1a3a8f",
        "color": "#ffffff"
      },
      "inputs": {
        "backgroundColor": "#ffffff",
        "color": "#1a1a2e",
        "placeholderColor": "#999999"
      }
    },
    "general": {
      "font": "Open Sans",
      "background": { "type": "Color", "content": "#ffffff" }
    }
  },
  "settings": {
    "typingEmulation": {
      "isEnabled": true,
      "speed": 300,
      "maxDelay": 1.5
    },
    "isBrandingEnabled": false,
    "isInputPrefillEnabled": false,
    "rememberUser": {
      "isEnabled": false,
      "storage": "session"
    },
    "metadata": {
      "title": "Qualificação Distrato — Pinheiro Lima Advocacia",
      "description": "Bot de triagem para casos de distrato imobiliário."
    }
  },
  "variables": [
    { "id": "var-motivo",          "name": "motivo" },
    { "id": "var-quando-comprou",  "name": "quando_comprou" },
    { "id": "var-pos-lei",         "name": "pos_lei" },
    { "id": "var-afetacao",        "name": "afetacao" },
    { "id": "var-valor-pago",      "name": "valor_pago_faixa" },
    { "id": "var-documentos",      "name": "tem_documentos" },
    { "id": "var-proposta",        "name": "recebeu_proposta" },
    { "id": "var-nome",            "name": "nome" },
    { "id": "var-whatsapp",        "name": "whatsapp" },
    { "id": "var-score",           "name": "score" },
    { "id": "var-tier",            "name": "tier" }
  ],
  "edges": [
    {
      "id": "edge-abertura-to-motivo",
      "from": { "groupId": "grp-abertura",  "blockId": "blk-abertura-choice" },
      "to":   { "groupId": "grp-motivo",    "blockId": "blk-motivo-texto" }
    },
    {
      "id": "edge-motivo-desistencia-to-quando",
      "from": { "groupId": "grp-motivo",    "blockId": "blk-motivo-choice", "itemId": "item-motivo-desistencia" },
      "to":   { "groupId": "grp-quando",    "blockId": "blk-quando-texto" }
    },
    {
      "id": "edge-motivo-naopago-to-quando",
      "from": { "groupId": "grp-motivo",    "blockId": "blk-motivo-choice", "itemId": "item-motivo-naopago" },
      "to":   { "groupId": "grp-quando",    "blockId": "blk-quando-texto" }
    },
    {
      "id": "edge-motivo-atraso-to-quando",
      "from": { "groupId": "grp-motivo",    "blockId": "blk-motivo-choice", "itemId": "item-motivo-atraso" },
      "to":   { "groupId": "grp-quando",    "blockId": "blk-quando-texto" }
    },
    {
      "id": "edge-motivo-vicios-to-quando",
      "from": { "groupId": "grp-motivo",    "blockId": "blk-motivo-choice", "itemId": "item-motivo-vicios" },
      "to":   { "groupId": "grp-quando",    "blockId": "blk-quando-texto" }
    },
    {
      "id": "edge-quando-to-afetacao",
      "from": { "groupId": "grp-quando",    "blockId": "blk-quando-choice" },
      "to":   { "groupId": "grp-afetacao",  "blockId": "blk-afetacao-texto" }
    },
    {
      "id": "edge-afetacao-to-valor",
      "from": { "groupId": "grp-afetacao",  "blockId": "blk-afetacao-choice" },
      "to":   { "groupId": "grp-valor",     "blockId": "blk-valor-texto" }
    },
    {
      "id": "edge-valor-to-docs",
      "from": { "groupId": "grp-valor",     "blockId": "blk-valor-choice" },
      "to":   { "groupId": "grp-docs",      "blockId": "blk-docs-texto" }
    },
    {
      "id": "edge-docs-to-proposta",
      "from": { "groupId": "grp-docs",      "blockId": "blk-docs-choice" },
      "to":   { "groupId": "grp-proposta",  "blockId": "blk-proposta-texto" }
    },
    {
      "id": "edge-proposta-to-score",
      "from": { "groupId": "grp-proposta",  "blockId": "blk-proposta-choice" },
      "to":   { "groupId": "grp-score",     "blockId": "blk-set-score" }
    },
    {
      "id": "edge-score-to-router",
      "from": { "groupId": "grp-score",     "blockId": "blk-set-score" },
      "to":   { "groupId": "grp-score",     "blockId": "blk-set-tier" }
    },
    {
      "id": "edge-tier-to-router",
      "from": { "groupId": "grp-score",     "blockId": "blk-set-tier" },
      "to":   { "groupId": "grp-score",     "blockId": "blk-router" }
    },
    {
      "id": "edge-router-to-quente",
      "from": { "groupId": "grp-score",     "blockId": "blk-router", "itemId": "item-cond-quente" },
      "to":   { "groupId": "grp-quente",    "blockId": "blk-quente-texto1" }
    },
    {
      "id": "edge-router-to-morno",
      "from": { "groupId": "grp-score",     "blockId": "blk-router", "itemId": "item-cond-morno" },
      "to":   { "groupId": "grp-morno",     "blockId": "blk-morno-texto1" }
    },
    {
      "id": "edge-router-to-frio",
      "from": { "groupId": "grp-score",     "blockId": "blk-router", "itemId": "item-cond-frio" },
      "to":   { "groupId": "grp-frio",      "blockId": "blk-frio-texto1" }
    },
    {
      "id": "edge-quente-lgpd-to-nome",
      "from": { "groupId": "grp-quente",    "blockId": "blk-quente-lgpd", "itemId": "item-quente-concordo" },
      "to":   { "groupId": "grp-quente",    "blockId": "blk-quente-input-nome" }
    },
    {
      "id": "edge-quente-nome-to-wpp",
      "from": { "groupId": "grp-quente",    "blockId": "blk-quente-input-nome" },
      "to":   { "groupId": "grp-quente",    "blockId": "blk-quente-input-wpp" }
    },
    {
      "id": "edge-quente-wpp-to-handoff",
      "from": { "groupId": "grp-quente",    "blockId": "blk-quente-input-wpp" },
      "to":   { "groupId": "grp-quente",    "blockId": "blk-quente-handoff" }
    },
    {
      "id": "edge-morno-lgpd-to-nome",
      "from": { "groupId": "grp-morno",     "blockId": "blk-morno-lgpd", "itemId": "item-morno-concordo" },
      "to":   { "groupId": "grp-morno",     "blockId": "blk-morno-input-nome" }
    },
    {
      "id": "edge-morno-nome-to-wpp",
      "from": { "groupId": "grp-morno",     "blockId": "blk-morno-input-nome" },
      "to":   { "groupId": "grp-morno",     "blockId": "blk-morno-input-wpp" }
    },
    {
      "id": "edge-morno-wpp-to-handoff",
      "from": { "groupId": "grp-morno",     "blockId": "blk-morno-input-wpp" },
      "to":   { "groupId": "grp-morno",     "blockId": "blk-morno-handoff" }
    }
  ],
  "groups": [
    {
      "id": "grp-abertura",
      "title": "Grupo 1 — Abertura",
      "graphCoordinates": { "x": 0, "y": 0 },
      "blocks": [
        {
          "id": "blk-abertura-texto",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Oi! Eu ajudo a fazer uma primeira leitura do seu caso de distrato. São 6 perguntas rápidas, leva 1 minuto. No fim, te conto o próximo passo. Combinado?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-abertura-choice",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Responder",
            "isSearchable": false,
            "isMultipleChoice": false
          },
          "items": [
            {
              "id": "item-abertura-sim",
              "content": "Vamos lá",
              "outgoingEdgeId": "edge-abertura-to-motivo"
            }
          ]
        }
      ]
    },
    {
      "id": "grp-motivo",
      "title": "Grupo 2 — Motivo",
      "graphCoordinates": { "x": 400, "y": 0 },
      "blocks": [
        {
          "id": "blk-motivo-texto",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "O que está te levando a querer sair do contrato?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-motivo-choice",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Responder",
            "isSearchable": false,
            "isMultipleChoice": false,
            "variableId": "var-motivo"
          },
          "items": [
            {
              "id": "item-motivo-desistencia",
              "content": "Desisti / mudei de planos",
              "outgoingEdgeId": "edge-motivo-desistencia-to-quando"
            },
            {
              "id": "item-motivo-naopago",
              "content": "Não consigo mais pagar / financiamento reprovado",
              "outgoingEdgeId": "edge-motivo-naopago-to-quando"
            },
            {
              "id": "item-motivo-atraso",
              "content": "A construtora atrasou ou não entregou",
              "outgoingEdgeId": "edge-motivo-atraso-to-quando"
            },
            {
              "id": "item-motivo-vicios",
              "content": "Problemas no imóvel",
              "outgoingEdgeId": "edge-motivo-vicios-to-quando"
            }
          ]
        }
      ]
    },
    {
      "id": "grp-quando",
      "title": "Grupo 3 — Quando comprou",
      "graphCoordinates": { "x": 800, "y": 0 },
      "blocks": [
        {
          "id": "blk-quando-texto",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Você assinou o contrato a partir de 2019?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-quando-choice",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Responder",
            "isSearchable": false,
            "isMultipleChoice": false,
            "variableId": "var-quando-comprou"
          },
          "items": [
            {
              "id": "item-quando-sim",
              "content": "Sim, de 2019 pra cá",
              "outgoingEdgeId": "edge-quando-to-afetacao"
            },
            {
              "id": "item-quando-nao",
              "content": "Antes disso",
              "outgoingEdgeId": "edge-quando-to-afetacao"
            },
            {
              "id": "item-quando-naosei",
              "content": "Não tenho certeza",
              "outgoingEdgeId": "edge-quando-to-afetacao"
            }
          ]
        },
        {
          "id": "blk-set-pos-lei",
          "type": "logic/set-variable",
          "options": {
            "variableId": "var-pos-lei",
            "expressionToEvaluate": "{{quando_comprou}} === 'Sim, de 2019 pra cá' ? 'true' : ({{quando_comprou}} === 'Não tenho certeza' ? 'naosei' : 'false')"
          }
        }
      ]
    },
    {
      "id": "grp-afetacao",
      "title": "Grupo 4 — Patrimônio de Afetação",
      "graphCoordinates": { "x": 1200, "y": 0 },
      "blocks": [
        {
          "id": "blk-afetacao-texto",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Você sabe se o empreendimento tem patrimônio de afetação? (É um regime registrado na matrícula. Se não souber, sem problema.)" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-afetacao-choice",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Responder",
            "isSearchable": false,
            "isMultipleChoice": false,
            "variableId": "var-afetacao"
          },
          "items": [
            {
              "id": "item-afetacao-sim",
              "content": "Sim",
              "outgoingEdgeId": "edge-afetacao-to-valor"
            },
            {
              "id": "item-afetacao-nao",
              "content": "Não",
              "outgoingEdgeId": "edge-afetacao-to-valor"
            },
            {
              "id": "item-afetacao-naosei",
              "content": "Não sei",
              "outgoingEdgeId": "edge-afetacao-to-valor"
            }
          ]
        }
      ]
    },
    {
      "id": "grp-valor",
      "title": "Grupo 5 — Valor Pago",
      "graphCoordinates": { "x": 1600, "y": 0 },
      "blocks": [
        {
          "id": "blk-valor-texto",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Quanto você já pagou à construtora até agora, somando tudo?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-valor-choice",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Responder",
            "isSearchable": false,
            "isMultipleChoice": false,
            "variableId": "var-valor-pago"
          },
          "items": [
            {
              "id": "item-valor-ate30k",
              "content": "Até R$ 30 mil",
              "outgoingEdgeId": "edge-valor-to-docs"
            },
            {
              "id": "item-valor-30a100k",
              "content": "R$ 30 mil a R$ 100 mil",
              "outgoingEdgeId": "edge-valor-to-docs"
            },
            {
              "id": "item-valor-100a300k",
              "content": "R$ 100 mil a R$ 300 mil",
              "outgoingEdgeId": "edge-valor-to-docs"
            },
            {
              "id": "item-valor-acima300k",
              "content": "Acima de R$ 300 mil",
              "outgoingEdgeId": "edge-valor-to-docs"
            }
          ]
        }
      ]
    },
    {
      "id": "grp-docs",
      "title": "Grupo 6 — Documentos",
      "graphCoordinates": { "x": 2000, "y": 0 },
      "blocks": [
        {
          "id": "blk-docs-texto",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Você tem em mãos o contrato e os comprovantes de pagamento?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-docs-choice",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Responder",
            "isSearchable": false,
            "isMultipleChoice": false,
            "variableId": "var-documentos"
          },
          "items": [
            {
              "id": "item-docs-ambos",
              "content": "Tenho os dois",
              "outgoingEdgeId": "edge-docs-to-proposta"
            },
            {
              "id": "item-docs-socontrato",
              "content": "Só o contrato",
              "outgoingEdgeId": "edge-docs-to-proposta"
            },
            {
              "id": "item-docs-socomprovante",
              "content": "Só comprovantes",
              "outgoingEdgeId": "edge-docs-to-proposta"
            },
            {
              "id": "item-docs-nenhum",
              "content": "Não tenho agora",
              "outgoingEdgeId": "edge-docs-to-proposta"
            }
          ]
        }
      ]
    },
    {
      "id": "grp-proposta",
      "title": "Grupo 7 — Proposta da Construtora",
      "graphCoordinates": { "x": 2400, "y": 0 },
      "blocks": [
        {
          "id": "blk-proposta-texto",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "A construtora já te fez alguma proposta de devolução?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-proposta-choice",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Responder",
            "isSearchable": false,
            "isMultipleChoice": false,
            "variableId": "var-proposta"
          },
          "items": [
            {
              "id": "item-proposta-sim",
              "content": "Sim, já recebi",
              "outgoingEdgeId": "edge-proposta-to-score"
            },
            {
              "id": "item-proposta-nao",
              "content": "Ainda não",
              "outgoingEdgeId": "edge-proposta-to-score"
            },
            {
              "id": "item-proposta-negociando",
              "content": "Estou negociando",
              "outgoingEdgeId": "edge-proposta-to-score"
            }
          ]
        }
      ]
    },
    {
      "id": "grp-score",
      "title": "Grupo 8 — Cálculo de Score e Roteamento",
      "graphCoordinates": { "x": 2800, "y": 0 },
      "blocks": [
        {
          "id": "blk-set-score",
          "type": "logic/set-variable",
          "options": {
            "variableId": "var-score",
            "expressionToEvaluate": "(function(){\n  var s = 0;\n  // pos_lei\n  if ({{pos_lei}} === 'true') s += 2;\n  else if ({{pos_lei}} === 'naosei') s += 1;\n  // motivo\n  if ({{motivo}} === 'A construtora atrasou ou não entregou') s += 3;\n  else if ({{motivo}} === 'Problemas no imóvel') s += 3;\n  else if ({{motivo}} === 'Não consigo mais pagar / financiamento reprovado') s += 2;\n  else if ({{motivo}} === 'Desisti / mudei de planos') s += 1;\n  // valor_pago_faixa\n  if ({{valor_pago_faixa}} === 'Acima de R$ 300 mil') s += 3;\n  else if ({{valor_pago_faixa}} === 'R$ 100 mil a R$ 300 mil') s += 2;\n  else if ({{valor_pago_faixa}} === 'R$ 30 mil a R$ 100 mil') s += 1;\n  // tem_documentos\n  if ({{tem_documentos}} === 'Tenho os dois') s += 3;\n  else if ({{tem_documentos}} === 'Só o contrato' || {{tem_documentos}} === 'Só comprovantes') s += 1;\n  // recebeu_proposta\n  if ({{recebeu_proposta}} === 'Sim, já recebi' || {{recebeu_proposta}} === 'Estou negociando') s += 1;\n  return s;\n})()"
          }
        },
        {
          "id": "blk-set-tier",
          "type": "logic/set-variable",
          "options": {
            "variableId": "var-tier",
            "expressionToEvaluate": "Number({{score}}) >= 8 ? 'quente' : (Number({{score}}) >= 4 ? 'morno' : 'frio')"
          }
        },
        {
          "id": "blk-router",
          "type": "logic/condition",
          "items": [
            {
              "id": "item-cond-quente",
              "outgoingEdgeId": "edge-router-to-quente",
              "condition": {
                "logicalOperator": "AND",
                "comparisons": [
                  {
                    "id": "cmp-quente",
                    "variableId": "var-tier",
                    "comparisonOperator": "Equal to",
                    "value": "quente"
                  }
                ]
              }
            },
            {
              "id": "item-cond-morno",
              "outgoingEdgeId": "edge-router-to-morno",
              "condition": {
                "logicalOperator": "AND",
                "comparisons": [
                  {
                    "id": "cmp-morno",
                    "variableId": "var-tier",
                    "comparisonOperator": "Equal to",
                    "value": "morno"
                  }
                ]
              }
            },
            {
              "id": "item-cond-frio",
              "outgoingEdgeId": "edge-router-to-frio",
              "condition": {
                "logicalOperator": "AND",
                "comparisons": [
                  {
                    "id": "cmp-frio",
                    "variableId": "var-tier",
                    "comparisonOperator": "Equal to",
                    "value": "frio"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "id": "grp-quente",
      "title": "Grupo 9A — Lead Quente",
      "graphCoordinates": { "x": 3200, "y": -300 },
      "blocks": [
        {
          "id": "blk-quente-texto1",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Pelo que você me contou, seu caso tem elementos concretos que valem uma análise. Posso te encaminhar para uma conversa com a equipe?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-quente-texto-lgpd",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Para fazer isso, vou precisar do seu nome e WhatsApp. Seus dados serão usados exclusivamente para este contato, conforme a Lei Geral de Proteção de Dados (LGPD). Não compartilhamos com terceiros." }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-quente-lgpd",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Confirmar",
            "isSearchable": false,
            "isMultipleChoice": false
          },
          "items": [
            {
              "id": "item-quente-concordo",
              "content": "Concordo — meus dados serão usados apenas para este contato",
              "outgoingEdgeId": "edge-quente-lgpd-to-nome"
            }
          ]
        },
        {
          "id": "blk-quente-input-nome",
          "type": "inputs/text",
          "options": {
            "variableId": "var-nome",
            "labels": { "placeholder": "Digite seu nome completo" },
            "isLong": false
          }
        },
        {
          "id": "blk-quente-input-wpp",
          "type": "inputs/phone-number",
          "options": {
            "variableId": "var-whatsapp",
            "labels": { "placeholder": "Ex: (11) 99999-9999" },
            "defaultCountryCode": "BR"
          }
        },
        {
          "id": "blk-quente-texto-final",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Ótimo, {{nome}}! A equipe do Pinheiro Lima Advocacia vai entrar em contato pelo seu WhatsApp em breve. Até logo!" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-quente-handoff",
          "type": "logic/redirect",
          "options": {
            "url": "https://wa.me/[WHATSAPP_TIME_A_DEFINIR]?text=🔔%20Novo%20lead%20distrato%20—%20TIER%3A%20{{tier}}%20(score%20{{score}})%0AMotivo%3A%20{{motivo}}%0AContrato%20pós-2018%3A%20{{pos_lei}}%0AAfetação%3A%20{{afetacao}}%0AValor%20pago%3A%20{{valor_pago_faixa}}%0ADocumentos%3A%20{{tem_documentos}}%0AProposta%20recebida%3A%20{{recebeu_proposta}}%0AContato%3A%20{{nome}}%20—%20{{whatsapp}}",
            "isNewTab": true
          }
        }
      ]
    },
    {
      "id": "grp-morno",
      "title": "Grupo 9B — Lead Morno",
      "graphCoordinates": { "x": 3200, "y": 0 },
      "blocks": [
        {
          "id": "blk-morno-texto1",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Seu caso pode ter caminho, mas preciso entender melhor alguns pontos. Posso te mandar uma orientação inicial e, se fizer sentido, marcar uma conversa?" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-morno-texto-lgpd",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Para fazer isso, vou precisar do seu nome e WhatsApp. Seus dados serão usados exclusivamente para este contato, conforme a Lei Geral de Proteção de Dados (LGPD). Não compartilhamos com terceiros." }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-morno-lgpd",
          "type": "inputs/choice",
          "options": {
            "buttonLabel": "Confirmar",
            "isSearchable": false,
            "isMultipleChoice": false
          },
          "items": [
            {
              "id": "item-morno-concordo",
              "content": "Concordo — meus dados serão usados apenas para este contato",
              "outgoingEdgeId": "edge-morno-lgpd-to-nome"
            }
          ]
        },
        {
          "id": "blk-morno-input-nome",
          "type": "inputs/text",
          "options": {
            "variableId": "var-nome",
            "labels": { "placeholder": "Digite seu nome completo" },
            "isLong": false
          }
        },
        {
          "id": "blk-morno-input-wpp",
          "type": "inputs/phone-number",
          "options": {
            "variableId": "var-whatsapp",
            "labels": { "placeholder": "Ex: (11) 99999-9999" },
            "defaultCountryCode": "BR"
          }
        },
        {
          "id": "blk-morno-texto-final",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Perfeito, {{nome}}! Vamos analisar melhor o seu caso. A equipe do Pinheiro Lima Advocacia vai entrar em contato em breve com uma orientação inicial. Até logo!" }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-morno-handoff",
          "type": "logic/redirect",
          "options": {
            "url": "https://wa.me/[WHATSAPP_TIME_A_DEFINIR]?text=🔔%20Novo%20lead%20distrato%20—%20TIER%3A%20{{tier}}%20(score%20{{score}})%0AMotivo%3A%20{{motivo}}%0AContrato%20pós-2018%3A%20{{pos_lei}}%0AAfetação%3A%20{{afetacao}}%0AValor%20pago%3A%20{{valor_pago_faixa}}%0ADocumentos%3A%20{{tem_documentos}}%0AProposta%20recebida%3A%20{{recebeu_proposta}}%0AContato%3A%20{{nome}}%20—%20{{whatsapp}}",
            "isNewTab": true
          }
        }
      ]
    },
    {
      "id": "grp-frio",
      "title": "Grupo 9C — Lead Frio",
      "graphCoordinates": { "x": 3200, "y": 300 },
      "blocks": [
        {
          "id": "blk-frio-texto1",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Com as informações de agora, ainda não dá para dizer muito sobre o seu caso — principalmente sem os documentos." }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-frio-texto2",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "O melhor primeiro passo é reunir o contrato e os comprovantes de pagamento. Quando tiver esses documentos em mãos, é só voltar aqui — aí conseguimos fazer uma leitura muito mais completa do seu caso." }
                ]
              }
            ]
          }
        },
        {
          "id": "blk-frio-texto3",
          "type": "bubbles/text",
          "content": {
            "richText": [
              {
                "type": "p",
                "children": [
                  { "text": "Enquanto isso, confira nosso conteúdo sobre distrato imobiliário para entender melhor seus direitos. Até breve!" }
                ]
              }
            ]
          }
        }
      ]
    }
  ],
  "start": {
    "id": "start-node",
    "type": "start",
    "groupId": "grp-abertura",
    "outgoingEdgeId": null
  }
}
