{
  "nodes": [
    {
      "id": "start",
      "type": "start",
      "position": { "x": 600, "y": 50 },
      "data": { "nextNodeId": "menu_principal" }
    },
    {
      "id": "menu_principal",
      "type": "optionMenu",
      "position": { "x": 600, "y": 200 },
      "data": {
        "message": "Olá! 👋 Bem-vindo à [Nome da Concessionária]\n\nComo podemos te ajudar hoje?",
        "options": [
          { "option": 1, "label": "Ver veículos disponíveis", "nextNodeId": "menu_veiculos" },
          { "option": 2, "label": "Simular financiamento", "nextNodeId": "sim_veiculo_interesse" },
          { "option": 3, "label": "Avaliar meu veículo (troca)", "nextNodeId": "aval_marca" },
          { "option": 4, "label": "Agendar test drive", "nextNodeId": "test_veiculo" },
          { "option": 5, "label": "Falar com vendedor", "nextNodeId": "msg_vendedor" }
        ]
      }
    },
    {
      "id": "menu_veiculos",
      "type": "optionMenu",
      "position": { "x": -200, "y": 450 },
      "data": {
        "message": "Qual tipo de veículo você procura?",
        "options": [
          { "option": 1, "label": "Novos", "nextNodeId": "msg_opcoes_veiculos" },
          { "option": 2, "label": "Seminovos", "nextNodeId": "msg_opcoes_veiculos" },
          { "option": 3, "label": "Utilitários", "nextNodeId": "msg_opcoes_veiculos" },
          { "option": 4, "label": "Até R$ 50 mil", "nextNodeId": "msg_opcoes_veiculos" },
          { "option": 5, "label": "Até R$ 100 mil", "nextNodeId": "msg_opcoes_veiculos" }
        ]
      }
    },
    {
      "id": "msg_opcoes_veiculos",
      "type": "optionMenu",
      "position": { "x": -200, "y": 700 },
      "data": {
        "message": "Perfeito! Vou te mostrar algumas opções 👇\n\nVocê pode:",
        "options": [
          { "option": 1, "label": "Ver catálogo completo", "nextNodeId": "end_fluxo" },
          { "option": 2, "label": "Receber ofertas no WhatsApp", "nextNodeId": "end_fluxo" },
          { "option": 3, "label": "Falar com um vendedor", "nextNodeId": "msg_vendedor" }
        ]
      }
    },
    {
      "id": "sim_veiculo_interesse",
      "type": "dataCapture",
      "position": { "x": 200, "y": 450 },
      "data": {
        "message": "Vamos fazer uma simulação rápida 👍\nQual veículo você tem interesse?",
        "fieldName": "veiculo_interesse",
        "nextNodeId": "sim_valor_veiculo"
      }
    },
    {
      "id": "sim_valor_veiculo",
      "type": "dataCapture",
      "position": { "x": 200, "y": 600 },
      "data": {
        "message": "Qual valor aproximado do veículo?",
        "fieldName": "valor_veiculo",
        "nextNodeId": "sim_valor_entrada"
      }
    },
    {
      "id": "sim_valor_entrada",
      "type": "dataCapture",
      "position": { "x": 200, "y": 750 },
      "data": {
        "message": "Qual valor você pretende dar de entrada?",
        "fieldName": "valor_entrada",
        "nextNodeId": "menu_parcelas"
      }
    },
    {
      "id": "menu_parcelas",
      "type": "optionMenu",
      "position": { "x": 200, "y": 900 },
      "data": {
        "message": "Em quantas parcelas deseja pagar?",
        "options": [
          { "option": 1, "label": "24x", "nextNodeId": "sim_contato" },
          { "option": 2, "label": "36x", "nextNodeId": "sim_contato" },
          { "option": 3, "label": "48x", "nextNodeId": "sim_contato" },
          { "option": 4, "label": "60x", "nextNodeId": "sim_contato" }
        ]
      }
    },
    {
      "id": "sim_contato",
      "type": "dataCapture",
      "position": { "x": 200, "y": 1100 },
      "data": {
        "message": "Agora, me informe seu nome e telefone para envio da simulação 📲",
        "fieldName": "contato_cliente",
        "nextNodeId": "msg_final_simulacao"
      }
    },
    {
      "id": "msg_final_simulacao",
      "type": "message",
      "position": { "x": 200, "y": 1250 },
      "data": {
        "message": "Perfeito! Um especialista vai te retornar com as melhores condições 👍",
        "nextNodeId": "liberar_atendimento"
      }
    },
    {
      "id": "aval_marca",
      "type": "dataCapture",
      "position": { "x": 600, "y": 450 },
      "data": { "message": "Vamos avaliar seu veículo 👇\nQual a marca?", "fieldName": "troca_marca", "nextNodeId": "aval_modelo" }
    },
    {
      "id": "aval_modelo",
      "type": "dataCapture",
      "position": { "x": 600, "y": 600 },
      "data": { "message": "Qual o modelo?", "fieldName": "troca_modelo", "nextNodeId": "aval_ano" }
    },
    {
      "id": "aval_ano",
      "type": "dataCapture",
      "position": { "x": 600, "y": 750 },
      "data": { "message": "Qual o ano?", "fieldName": "troca_ano", "nextNodeId": "aval_km" }
    },
    {
      "id": "aval_km",
      "type": "dataCapture",
      "position": { "x": 600, "y": 900 },
      "data": { "message": "Qual a quilometragem?", "fieldName": "troca_km", "nextNodeId": "aval_sinistro" }
    },
    {
      "id": "aval_sinistro",
      "type": "optionMenu",
      "position": { "x": 600, "y": 1050 },
      "data": {
        "message": "Seu veículo já teve alguma batida ou sinistro?",
        "options": [
          { "option": 1, "label": "Não", "nextNodeId": "aval_midia" },
          { "option": 2, "label": "Sim", "nextNodeId": "aval_midia" }
        ]
      }
    },
    {
      "id": "aval_midia",
      "type": "multimedia",
      "position": { "x": 600, "y": 1250 },
      "data": {
        "mediaType": "image",
        "caption": "Você pode enviar fotos ou vídeos do veículo para uma avaliação mais precisa 📸",
        "nextNodeId": "msg_final_aval"
      }
    },
    {
      "id": "msg_final_aval",
      "type": "message",
      "position": { "x": 600, "y": 1400 },
      "data": {
        "message": "Perfeito! Nossa equipe vai analisar e retornar com uma proposta 👌",
        "nextNodeId": "liberar_atendimento"
      }
    },
    {
      "id": "test_veiculo",
      "type": "dataCapture",
      "position": { "x": 1000, "y": 450 },
      "data": { "message": "Vamos agendar seu test drive 🚗\nQual veículo você deseja testar?", "fieldName": "test_veiculo_nome", "nextNodeId": "test_dia" }
    },
    {
      "id": "test_dia",
      "type": "dataCapture",
      "position": { "x": 1000, "y": 600 },
      "data": { "message": "Qual o melhor dia?", "fieldName": "test_data", "nextNodeId": "test_periodo" }
    },
    {
      "id": "test_periodo",
      "type": "optionMenu",
      "position": { "x": 1000, "y": 750 },
      "data": {
        "message": "Qual período você prefere?",
        "options": [
          { "option": 1, "label": "Manhã", "nextNodeId": "test_contato" },
          { "option": 2, "label": "Tarde", "nextNodeId": "test_contato" }
        ]
      }
    },
    {
      "id": "test_contato",
      "type": "dataCapture",
      "position": { "x": 1000, "y": 950 },
      "data": { "message": "Informe seu nome e telefone para confirmação 📲", "fieldName": "test_contato", "nextNodeId": "msg_final_test" }
    },
    {
      "id": "msg_final_test",
      "type": "message",
      "position": { "x": 1000, "y": 1100 },
      "data": {
        "message": "Pronto! Em breve entraremos em contato para confirmar seu horário 👍",
        "nextNodeId": "liberar_atendimento"
      }
    },
    {
      "id": "msg_vendedor",
      "type": "message",
      "position": { "x": 1400, "y": 450 },
      "data": {
        "message": "Perfeito! Vou te conectar com um de nossos especialistas 👨‍💼\nAguarde um momento...",
        "nextNodeId": "transferencia"
      }
    },
    {
      "id": "transferencia",
      "type": "transfer",
      "position": { "x": 1400, "y": 600 },
      "data": { "targetQueueId": 1, "startChatbotOnTransfer": false }
    },
    {
      "id": "liberar_atendimento",
      "type": "message",
      "position": { "x": 600, "y": 1600 },
      "data": { "message": "Ticket liberado para atendentes", "nextNodeId": "end_fluxo" }
    },
    {
      "id": "end_fluxo",
      "type": "endOfFlow",
      "position": { "x": 600, "y": 1750 },
      "data": {}
    }
  ],
  "edges": [],
  "startNodeId": "start"
}