Carregando...
Copie os cURLs abaixo e importe no n8n como HTTP Request Tools:
curl -X POST 'https://topronta.evogestor.shop/api/agente/identificar-cliente' \
-H 'Content-Type: application/json' \
-d '{"telefone": "{{ $telefone }}", "nome": "{{ $nome }}"}'
curl -X POST 'https://topronta.evogestor.shop/api/agente/cadastrar-cliente' \
-H 'Content-Type: application/json' \
-d '{"nome": "{{ $nome }}", "telefone": "{{ $telefone }}"}'
curl -X GET 'https://topronta.evogestor.shop/api/agente/categorias'
curl -X GET 'https://topronta.evogestor.shop/api/agente/servicos?categoriaId={{ $categoriaId }}'
curl -X GET 'https://topronta.evogestor.shop/api/agente/horarios?data={{ $data }}&servico={{ $servicoId }}'
⚠️ No n8n, use Send Query = true e adicione os parâmetros data e servico em Query Parameters, não na URL!
curl -X POST 'https://topronta.evogestor.shop/api/agente/agendar' \
-H 'Content-Type: application/json' \
-d '{
"clienteNome": "{{ $clienteNome }}",
"clienteTelefone": "{{ $clienteTelefone }}",
"servico": "{{ $servico }}",
"data": "{{ $data }}",
"horario": "{{ $horario }}"
}'
curl -X GET 'https://topronta.evogestor.shop/api/agente/meus-agendamentos?telefone={{ $telefone }}'
curl -X POST 'https://topronta.evogestor.shop/api/agente/cancelar' \
-H 'Content-Type: application/json' \
-d '{"telefone": "{{ $telefone }}", "data": "{{ $data }}"}'