{
  "nodes": [
    {
      "id": "start",
      "type": "start",
      "position": {
        "x": 250,
        "y": 50
      },
      "data": {
        "onDuplicate": null,
        "nextNodeId": "message-1774567552876"
      }
    },
    {
      "id": "message-1774567552876",
      "type": "message",
      "position": {
        "x": 510,
        "y": 60
      },
      "data": {
        "message": "Digite sua mensagem aqui",
        "nextNodeId": "multimedia-1774567560335"
      }
    },
    {
      "id": "multimedia-1774567560335",
      "type": "multimedia",
      "position": {
        "x": 795,
        "y": 45
      },
      "data": {
        "mediaType": "image",
        "mediaUrl": "",
        "caption": "Aqui você pode adicionar Imagens, Videos, Áudios, Documentos",
        "nextNodeId": "messageWithReply-1774567586703",
        "mediaFilename": ""
      }
    },
    {
      "id": "messageWithReply-1774567586703",
      "type": "messageWithReply",
      "position": {
        "x": 1155,
        "y": 45
      },
      "data": {
        "message": "Aqui você pode perguntar algo para o cliente",
        "variableName": "nome_da_variavel",
        "nextNodeId": "optionMenu-1774567647474"
      }
    },
    {
      "id": "optionMenu-1774567647474",
      "type": "optionMenu",
      "position": {
        "x": 1530,
        "y": 60
      },
      "data": {
        "message": "Este é um menu de opções",
        "options": [
          {
            "option": 1,
            "label": "Conversar com IA",
            "nextNodeId": "gemini-1774567659187"
          },
          {
            "option": 2,
            "label": "Continuar",
            "nextNodeId": "message-1774614398894"
          },
          {
            "option": 3,
            "label": "Integrações WebHook",
            "nextNodeId": "webhook-1774567676501"
          }
        ]
      }
    },
    {
      "id": "gemini-1774567659187",
      "type": "gemini",
      "position": {
        "x": 1905,
        "y": -60
      },
      "data": {
        "customMessage": "Olá, eu sou o assistente virtual da empresa! Pode me enviar suas perguntas, estou aqui para ajudar!",
        "preprompt": "",
        "temperature": 0.7,
        "exitKeyword": "#sair",
        "nextNodeId": "message-1774614398894"
      }
    },
    {
      "id": "webhook-1774567676501",
      "type": "webhook",
      "position": {
        "x": 1500,
        "y": 300
      },
      "data": {
        "method": "GET",
        "url": "",
        "headers": "",
        "body": "",
        "variableName": "resposta_api",
        "timeout": 20,
        "nextNodeId": "message-1774614398894"
      }
    },
    {
      "id": "dataCapture-1774567705771",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 1275
      },
      "data": {
        "message": "CPF",
        "fieldProfileId": 1,
        "fieldName": "CPF",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614501978"
      }
    },
    {
      "id": "assignVariable-1774567739710",
      "type": "assignVariable",
      "position": {
        "x": 2580,
        "y": 225
      },
      "data": {
        "variableName": "opcao_cliente",
        "value": "Opção 1",
        "nextNodeId": "message-1774567831807"
      }
    },
    {
      "id": "optionMenu-1774567757201",
      "type": "optionMenu",
      "position": {
        "x": 2205,
        "y": 270
      },
      "data": {
        "message": "Você pode fazer perguntas e atribuir variáveis a ela!",
        "options": [
          {
            "option": 1,
            "label": "Opção 1",
            "nextNodeId": "assignVariable-1774567739710"
          },
          {
            "option": 2,
            "label": "Opção 2",
            "nextNodeId": "assignVariable-1774567799760"
          }
        ]
      }
    },
    {
      "id": "assignVariable-1774567799760",
      "type": "assignVariable",
      "position": {
        "x": 2580,
        "y": 375
      },
      "data": {
        "variableName": "opcao_cliente",
        "value": "Opção 2",
        "nextNodeId": "message-1774567831807"
      }
    },
    {
      "id": "tagAssignment-1774567812275",
      "type": "tagAssignment",
      "position": {
        "x": 2970,
        "y": 360
      },
      "data": {
        "tagId": 2,
        "nextNodeId": "message-1774567854876"
      }
    },
    {
      "id": "message-1774567831807",
      "type": "message",
      "position": {
        "x": 2970,
        "y": 225
      },
      "data": {
        "message": "Atribuir TAGS a clientes...",
        "nextNodeId": "tagAssignment-1774567812275"
      }
    },
    {
      "id": "message-1774567854876",
      "type": "message",
      "position": {
        "x": 3270,
        "y": 225
      },
      "data": {
        "message": "Ou remover TAGS dos clientes...",
        "nextNodeId": "tagRemoval-1774567872863"
      }
    },
    {
      "id": "tagRemoval-1774567872863",
      "type": "tagRemoval",
      "position": {
        "x": 3270,
        "y": 360
      },
      "data": {
        "tagId": 2,
        "nextNodeId": "message-1774567900190"
      }
    },
    {
      "id": "conditionalSchedule-1774567889769",
      "type": "conditionalSchedule",
      "position": {
        "x": 3585,
        "y": 405
      },
      "data": {
        "schedules": [
          {
            "dayOfWeek": 0,
            "startTime": "09:00",
            "endTime": "18:00"
          },
          {
            "dayOfWeek": 1,
            "startTime": "09:00",
            "endTime": "18:00"
          },
          {
            "dayOfWeek": 4,
            "startTime": "09:00",
            "endTime": "18:00"
          }
        ],
        "nextNodeIdWithin": "whisper-1774567931342",
        "nextNodeIdOutside": "message-outOfHours"
      }
    },
    {
      "id": "message-1774567900190",
      "type": "message",
      "position": {
        "x": 3570,
        "y": 195
      },
      "data": {
        "message": "Você também pode definir horário condicional para atendimento e fluxos diferentes dependendo do horário.",
        "nextNodeId": "conditionalSchedule-1774567889769"
      }
    },
    {
      "id": "message-outOfHours",
      "type": "message",
      "position": {
        "x": 3585,
        "y": 600
      },
      "data": {
        "message": "Nosso horário de atendimento é de segunda a sexta, das 09:00 às 18:00. Por favor, retorne o contato no próximo dia útil.",
        "nextNodeId": "endOfFlow-outOfHours"
      }
    },
    {
      "id": "endOfFlow-outOfHours",
      "type": "endOfFlow",
      "position": {
        "x": 3585,
        "y": 840
      },
      "data": {}
    },
    {
      "id": "whisper-1774567931342",
      "type": "whisper",
      "position": {
        "x": 3975,
        "y": 195
      },
      "data": {
        "message": "Crie notas internas utilizando as variáveis disponíveis e também aquelas que você criou dentro do fluxo de chatbot:\n\nVariável customizada: {{nome_da_variavel}}\nOpção do Cliente: {{opcao_cliente}}\nCNPJ: {{da_cnpj}}\n",
        "nextNodeId": "message-1774568069613"
      }
    },
    {
      "id": "delay-1774568045065",
      "type": "delay",
      "position": {
        "x": 3975,
        "y": 600
      },
      "data": {
        "delaySeconds": 5,
        "nextNodeId": "optionMenu-1774568157468"
      }
    },
    {
      "id": "message-1774568069613",
      "type": "message",
      "position": {
        "x": 3975,
        "y": 375
      },
      "data": {
        "message": "Você também pode adicionar um delay/espera durante o fluxo de atendimento!",
        "nextNodeId": "delay-1774568045065"
      }
    },
    {
      "id": "transfer-1774568098021",
      "type": "transfer",
      "position": {
        "x": 5160,
        "y": 420
      },
      "data": {
        "targetQueueId": 5,
        "startChatbotOnTransfer": false
      }
    },
    {
      "id": "message-1774568114280",
      "type": "message",
      "position": {
        "x": 4770,
        "y": 375
      },
      "data": {
        "message": "Transferência de atendimento automática para outros setores, que podem ou não iniciar fluxos de chatbot.",
        "nextNodeId": "transfer-1774568098021"
      }
    },
    {
      "id": "optionMenu-1774568157468",
      "type": "optionMenu",
      "position": {
        "x": 4335,
        "y": 315
      },
      "data": {
        "message": "Por fim, escolha entre, Encerrar Atendimento, Liberar para Atendimento ou Transferir para outro setor",
        "options": [
          {
            "option": 1,
            "label": "Transferir",
            "nextNodeId": "message-1774568114280"
          },
          {
            "option": 2,
            "label": "Encerrar",
            "nextNodeId": "message-1774568214039"
          },
          {
            "option": 3,
            "label": "Liberar",
            "nextNodeId": "message-1774568217328"
          }
        ]
      }
    },
    {
      "id": "endOfFlow-1774568210050",
      "type": "endOfFlow",
      "position": {
        "x": 4860,
        "y": 795
      },
      "data": {}
    },
    {
      "id": "closeTicket-1774568211059",
      "type": "closeTicket",
      "position": {
        "x": 4335,
        "y": 795
      },
      "data": {}
    },
    {
      "id": "message-1774568214039",
      "type": "message",
      "position": {
        "x": 4365,
        "y": 600
      },
      "data": {
        "message": "Ticket será finalizado e irá para a aba de encerrados. Sem interação de atendentes.",
        "nextNodeId": "closeTicket-1774568211059"
      }
    },
    {
      "id": "message-1774568217328",
      "type": "message",
      "position": {
        "x": 4860,
        "y": 630
      },
      "data": {
        "message": "Ticket liberado para atendentes",
        "nextNodeId": "endOfFlow-1774568210050"
      }
    },
    {
      "id": "message-1774614398894",
      "type": "message",
      "position": {
        "x": 1845,
        "y": 405
      },
      "data": {
        "message": "Vamos capturar dados de clientes, abaixo estão todas as opções padrões disponiveis no CRM.",
        "nextNodeId": "dataCapture-1774614435933"
      }
    },
    {
      "id": "dataCapture-1774614435933",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 600
      },
      "data": {
        "message": "CNPJ",
        "fieldProfileId": 8,
        "fieldName": "CNPJ",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614445630"
      }
    },
    {
      "id": "dataCapture-1774614445630",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 765
      },
      "data": {
        "message": "Razão Social",
        "fieldProfileId": 9,
        "fieldName": "Razão Social",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614458323"
      }
    },
    {
      "id": "dataCapture-1774614458323",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 945
      },
      "data": {
        "message": "Nome Fantasia",
        "fieldProfileId": 10,
        "fieldName": "Nome Fantasia",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614473481"
      }
    },
    {
      "id": "dataCapture-1774614473481",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 1110
      },
      "data": {
        "message": "Ramo de Atividade",
        "fieldProfileId": 11,
        "fieldName": "Ramo de Atividade",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774567705771"
      }
    },
    {
      "id": "dataCapture-1774614501978",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 1455
      },
      "data": {
        "message": "Data de Nascimento",
        "fieldProfileId": 2,
        "fieldName": "Data de Nascimento",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614514656"
      }
    },
    {
      "id": "dataCapture-1774614514656",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 1635
      },
      "data": {
        "message": "Gênero",
        "fieldProfileId": 3,
        "fieldName": "Gênero",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614528815"
      }
    },
    {
      "id": "dataCapture-1774614528815",
      "type": "dataCapture",
      "position": {
        "x": 1860,
        "y": 1815
      },
      "data": {
        "message": "Estado Civil",
        "fieldProfileId": 4,
        "fieldName": "Estado Civil",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614538943"
      }
    },
    {
      "id": "dataCapture-1774614538943",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 1860
      },
      "data": {
        "message": "Profissão",
        "fieldProfileId": 5,
        "fieldName": "Profissão/Cargo",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614551421"
      }
    },
    {
      "id": "dataCapture-1774614551421",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 1680
      },
      "data": {
        "message": "Nome da Empresa",
        "fieldProfileId": 6,
        "fieldName": "Empresa",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614562552"
      }
    },
    {
      "id": "dataCapture-1774614562552",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 1500
      },
      "data": {
        "message": "Telefone Comercial",
        "fieldProfileId": 7,
        "fieldName": "Telefone Comercial",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614574465"
      }
    },
    {
      "id": "dataCapture-1774614574465",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 1290
      },
      "data": {
        "message": "Endereço: CEP",
        "fieldProfileId": 12,
        "fieldName": "CEP",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614585526"
      }
    },
    {
      "id": "dataCapture-1774614585526",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 1110
      },
      "data": {
        "message": "Endereço: Logradouro",
        "fieldProfileId": 13,
        "fieldName": "Logradouro",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614597557"
      }
    },
    {
      "id": "dataCapture-1774614597557",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 945
      },
      "data": {
        "message": "Endereço: Número",
        "fieldProfileId": 14,
        "fieldName": "Número",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614612902"
      }
    },
    {
      "id": "dataCapture-1774614612902",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 765
      },
      "data": {
        "message": "Endereço: Complemento",
        "fieldProfileId": 15,
        "fieldName": "Complemento",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614626079"
      }
    },
    {
      "id": "dataCapture-1774614626079",
      "type": "dataCapture",
      "position": {
        "x": 2190,
        "y": 600
      },
      "data": {
        "message": "Endereço: Bairro",
        "fieldProfileId": 16,
        "fieldName": "Bairro",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614642716"
      }
    },
    {
      "id": "dataCapture-1774614642716",
      "type": "dataCapture",
      "position": {
        "x": 2520,
        "y": 600
      },
      "data": {
        "message": "Endereço: Cidade",
        "fieldProfileId": 17,
        "fieldName": "Cidade",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "dataCapture-1774614655384"
      }
    },
    {
      "id": "dataCapture-1774614655384",
      "type": "dataCapture",
      "position": {
        "x": 2520,
        "y": 765
      },
      "data": {
        "message": "Observações do cliente",
        "fieldProfileId": 19,
        "fieldName": "Observações",
        "maxRetries": 3,
        "existingDataAction": "skip",
        "nextNodeId": "optionMenu-1774567757201"
      }
    }
  ],
  "edges": [],
  "startNodeId": "start"
}