From 95687b19aef8c15d8f9dadbdac2cbdb5f549c2a6 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 21 Aug 2026 09:58:43 -0300 Subject: [PATCH] revert(n8n): remove consulta de ticket inutil (retornava ticket antigo/errado) showticketchatbot nao busca o ticket/mensagem da sessao atual de forma confiavel -- no teste retornou um ticket fechado de mais de um mes atras, sobre assunto nao relacionado. Volta ao fluxo direto sem essa consulta. Co-Authored-By: Claude Sonnet 5 --- n8n/orcamento-exames-imagem.workflow.json | 118 ---------------------- 1 file changed, 118 deletions(-) diff --git a/n8n/orcamento-exames-imagem.workflow.json b/n8n/orcamento-exames-imagem.workflow.json index a0758d1..f9ac38c 100644 --- a/n8n/orcamento-exames-imagem.workflow.json +++ b/n8n/orcamento-exames-imagem.workflow.json @@ -226,95 +226,6 @@ 912, -128 ] - }, - { - "id": "buscar-ticket-zpro", - "name": "Buscar ticket (Z-PRO)", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.4, - "position": [ - -240, - 160 - ], - "parameters": { - "method": "POST", - "url": "https://apigchat.gtigrupo.com.br/v2/api/external/ab2d51db-54e3-48c2-8b97-114a20340809/showticketchatbot", - "authentication": "genericCredentialType", - "genericAuthType": "httpHeaderAuth", - "sendBody": true, - "contentType": "json", - "specifyBody": "json", - "jsonBody": "={{ JSON.stringify({ number: $json.telefone }) }}", - "options": { - "timeout": 15000 - } - }, - "credentials": { - "httpHeaderAuth": { - "id": "8XHGuA4cg9z1jUq8", - "name": "ZPRO API Token - Canal QR - MC AGENDAMENTO" - } - }, - "onError": "continueErrorOutput" - }, - { - "id": "mesclar-dados-ticket", - "name": "Mesclar dados do ticket", - "type": "n8n-nodes-base.set", - "typeVersion": 3.4, - "position": [ - -100, - 160 - ], - "parameters": { - "assignments": { - "assignments": [ - { - "id": "merge-sessionid", - "name": "sessionId", - "type": "string", - "value": "={{ $('Extrair campos do webhook').item.json.sessionId }}" - }, - { - "id": "merge-telefone", - "name": "telefone", - "type": "string", - "value": "={{ $('Extrair campos do webhook').item.json.telefone }}" - }, - { - "id": "merge-nomecontato", - "name": "nomeContato", - "type": "string", - "value": "={{ $('Extrair campos do webhook').item.json.nomeContato }}" - }, - { - "id": "merge-entrada", - "name": "entrada", - "type": "string", - "value": "={{ $('Extrair campos do webhook').item.json.entrada }}" - }, - { - "id": "merge-imagemurl", - "name": "imagemUrl", - "type": "string", - "value": "={{ $('Extrair campos do webhook').item.json.imagemUrl }}" - }, - { - "id": "merge-tipomidia", - "name": "tipoMidia", - "type": "string", - "value": "={{ $('Extrair campos do webhook').item.json.tipoMidia }}" - }, - { - "id": "merge-ticketapiraw", - "name": "ticketApiRaw", - "type": "string", - "value": "={{ JSON.stringify($json) }}" - } - ] - }, - "options": {} - } } ], "connections": { @@ -417,35 +328,6 @@ ] }, "Extrair campos do webhook": { - "main": [ - [ - { - "node": "Buscar ticket (Z-PRO)", - "type": "main", - "index": 0 - } - ] - ] - }, - "Buscar ticket (Z-PRO)": { - "main": [ - [ - { - "node": "Mesclar dados do ticket", - "type": "main", - "index": 0 - } - ], - [ - { - "node": "Mesclar dados do ticket", - "type": "main", - "index": 0 - } - ] - ] - }, - "Mesclar dados do ticket": { "main": [ [ {