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 <noreply@anthropic.com>
This commit is contained in:
Eric
2026-08-21 09:58:43 -03:00
co-authored by Claude Sonnet 5
parent 095a80edc5
commit 95687b19ae
-118
View File
@@ -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": [
[
{