{
  "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 Escola/Curso]\n\nComo podemos te ajudar hoje?",
        "options": [
          { "option": 1, "label": "Ver cursos disponíveis", "nextNodeId": "menu_cursos" },
          { "option": 2, "label": "Valores e formas de pagamento", "nextNodeId": "val_curso" },
          { "option": 3, "label": "Modalidades (online/presencial)", "nextNodeId": "mod_formato" },
          { "option": 4, "label": "Agendar visita / aula experimental", "nextNodeId": "ag_curso" },
          { "option": 5, "label": "Falar com um consultor", "nextNodeId": "msg_consultor" }
        ]
      }
    },
    {
      "id": "menu_cursos",
      "type": "optionMenu",
      "position": { "x": -200, "y": 400 },
      "data": {
        "message": "Qual área você tem interesse?",
        "options": [
          { "option": 1, "label": "Profissionalizantes", "nextNodeId": "msg_opcoes_cursos" },
          { "option": 2, "label": "Idiomas", "nextNodeId": "msg_opcoes_cursos" },
          { "option": 3, "label": "Informática", "nextNodeId": "msg_opcoes_cursos" },
          { "option": 4, "label": "Cursos rápidos", "nextNodeId": "msg_opcoes_cursos" },
          { "option": 5, "label": "Outros", "nextNodeId": "msg_opcoes_cursos" }
        ]
      }
    },
    {
      "id": "msg_opcoes_cursos",
      "type": "optionMenu",
      "position": { "x": -200, "y": 600 },
      "data": {
        "message": "Perfeito! Aqui estão algumas opções 👇",
        "options": [
          { "option": 1, "label": "Ver detalhes dos cursos", "nextNodeId": "end_fluxo" },
          { "option": 2, "label": "Receber informações no WhatsApp", "nextNodeId": "end_fluxo" },
          { "option": 3, "label": "Falar com um consultor", "nextNodeId": "msg_consultor" }
        ]
      }
    },
    {
      "id": "val_curso",
      "type": "dataCapture",
      "position": { "x": 200, "y": 400 },
      "data": {
        "message": "Qual curso você deseja saber os valores?",
        "fieldName": "curso_valores",
        "nextNodeId": "val_prefere"
      }
    },
    {
      "id": "val_prefere",
      "type": "optionMenu",
      "position": { "x": 200, "y": 550 },
      "data": {
        "message": "Você prefere:",
        "options": [
          { "option": 1, "label": "Pagamento à vista", "nextNodeId": "val_contato" },
          { "option": 2, "label": "Parcelado", "nextNodeId": "val_contato" },
          { "option": 3, "label": "Ver promoções disponíveis", "nextNodeId": "val_contato" }
        ]
      }
    },
    {
      "id": "val_contato",
      "type": "dataCapture",
      "position": { "x": 200, "y": 750 },
      "data": {
        "message": "Perfeito! Vou te passar as melhores condições 👇\n\nAgora me informe seu nome e telefone para envio completo 📲",
        "fieldName": "contato_valores",
        "nextNodeId": "val_msg_final"
      }
    },
    {
      "id": "val_msg_final",
      "type": "message",
      "position": { "x": 200, "y": 900 },
      "data": {
        "message": "Em breve um consultor entra em contato com você 👍",
        "nextNodeId": "liberar_atendimento"
      }
    },
    {
      "id": "mod_formato",
      "type": "optionMenu",
      "position": { "x": 600, "y": 400 },
      "data": {
        "message": "Qual formato você prefere?",
        "options": [
          { "option": 1, "label": "Online", "nextNodeId": "mod_curso" },
          { "option": 2, "label": "Presencial", "nextNodeId": "mod_curso" },
          { "option": 3, "label": "Híbrido", "nextNodeId": "mod_curso" }
        ]
      }
    },
    {
      "id": "mod_curso",
      "type": "dataCapture",
      "position": { "x": 600, "y": 600 },
      "data": {
        "message": "Qual curso você deseja fazer?",
        "fieldName": "curso_modalidade",
        "nextNodeId": "mod_opcoes"
      }
    },
    {
      "id": "mod_opcoes",
      "type": "optionMenu",
      "position": { "x": 600, "y": 750 },
      "data": {
        "message": "Perfeito! Vou te mostrar as opções disponíveis 👇",
        "options": [
          { "option": 1, "label": "Ver horários", "nextNodeId": "end_fluxo" },
          { "option": 2, "label": "Ver valores", "nextNodeId": "end_fluxo" },
          { "option": 3, "label": "Falar com um consultor", "nextNodeId": "msg_consultor" }
        ]
      }
    },
    {
      "id": "ag_curso",
      "type": "dataCapture",
      "position": { "x": 1000, "y": 400 },
      "data": {
        "message": "Vamos agendar sua visita ou aula experimental 👇\nQual curso você tem interesse?",
        "fieldName": "curso_agendamento",
        "nextNodeId": "ag_dia"
      }
    },
    {
      "id": "ag_dia",
      "type": "dataCapture",
      "position": { "x": 1000, "y": 550 },
      "data": {
        "message": "Qual o melhor dia?",
        "fieldName": "dia_agendamento",
        "nextNodeId": "ag_periodo"
      }
    },
    {
      "id": "ag_periodo",
      "type": "optionMenu",
      "position": { "x": 1000, "y": 700 },
      "data": {
        "message": "Qual período você prefere?",
        "options": [
          { "option": 1, "label": "Manhã", "nextNodeId": "ag_contato" },
          { "option": 2, "label": "Tarde", "nextNodeId": "ag_contato" },
          { "option": 3, "label": "Noite", "nextNodeId": "ag_contato" }
        ]
      }
    },
    {
      "id": "ag_contato",
      "type": "dataCapture",
      "position": { "x": 1000, "y": 900 },
      "data": {
        "message": "Agora me informe seu nome e telefone para confirmação 📲",
        "fieldName": "contato_agendamento",
        "nextNodeId": "ag_msg_final"
      }
    },
    {
      "id": "ag_msg_final",
      "type": "message",
      "position": { "x": 1000, "y": 1050 },
      "data": {
        "message": "Pronto! Nossa equipe vai entrar em contato para confirmar seu agendamento 👍",
        "nextNodeId": "liberar_atendimento"
      }
    },
    {
      "id": "msg_consultor",
      "type": "message",
      "position": { "x": 1400, "y": 400 },
      "data": {
        "message": "Perfeito! Vou te conectar com um especialista 🎓\nAguarde um momento...",
        "nextNodeId": "transferencia"
      }
    },
    {
      "id": "transferencia",
      "type": "transfer",
      "position": { "x": 1400, "y": 550 },
      "data": { "targetQueueId": 1, "startChatbotOnTransfer": false }
    },
    {
      "id": "liberar_atendimento",
      "type": "message",
      "position": { "x": 600, "y": 1400 },
      "data": { "message": "Ticket liberado para atendentes", "nextNodeId": "end_fluxo" }
    },
    {
      "id": "end_fluxo",
      "type": "endOfFlow",
      "position": { "x": 600, "y": 1550 },
      "data": {}
    }
  ],
  "edges": [],
  "startNodeId": "start"
}