fix(n8n): usa canal/API dedicados deste projeto para o envio (nao mais compartilhado)
O envio estava saindo pelo canal do bot de agendamento (sub-workflow
enviar_texto, projeto diferente) -- por isso recebia num numero e
respondia por outro. Cria credencial httpHeaderAuth propria ('ZPRO API
Token - Orcamento de Exames') e troca o envio para uma chamada HTTP direta
dentro deste workflow, isolada do projeto de agendamento.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -246,72 +246,34 @@
|
||||
"name": "Simple Memory"
|
||||
},
|
||||
{
|
||||
"id": "enviar-orcamento-zpro",
|
||||
"id": "enviar-orcamento-zpro-http",
|
||||
"name": "Enviar orçamento (Z-PRO)",
|
||||
"type": "n8n-nodes-base.executeWorkflow",
|
||||
"typeVersion": 1.3,
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.4,
|
||||
"position": [
|
||||
900,
|
||||
-128
|
||||
],
|
||||
"parameters": {
|
||||
"workflowId": {
|
||||
"__rl": true,
|
||||
"mode": "id",
|
||||
"value": "Y4ndG7GuIUrmVRxV",
|
||||
"cachedResultName": "MCP Server - Mensageria ZPRO - enviar_texto"
|
||||
},
|
||||
"workflowInputs": {
|
||||
"mappingMode": "defineBelow",
|
||||
"value": {
|
||||
"number": "={{ $json.number }}",
|
||||
"body": "={{ $json.body }}",
|
||||
"externalKey": "={{ $json.externalKey }}",
|
||||
"isClosed": "={{ $json.isClosed }}"
|
||||
},
|
||||
"matchingColumns": [],
|
||||
"schema": [
|
||||
{
|
||||
"id": "number",
|
||||
"displayName": "number",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"canBeUsedToMatch": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "body",
|
||||
"displayName": "body",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"canBeUsedToMatch": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "externalKey",
|
||||
"displayName": "externalKey",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"canBeUsedToMatch": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "isClosed",
|
||||
"displayName": "isClosed",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"canBeUsedToMatch": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
],
|
||||
"attemptToConvertTypes": false,
|
||||
"convertFieldsToString": false
|
||||
"method": "POST",
|
||||
"url": "https://apigchat.gtigrupo.com.br/v2/api/external/fc30a773-0089-43b9-8b05-a5d92c48eb9b/",
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth",
|
||||
"sendBody": true,
|
||||
"contentType": "json",
|
||||
"specifyBody": "json",
|
||||
"jsonBody": "={{ JSON.stringify({ body: $json.body, number: $json.number, externalKey: $json.externalKey, isClosed: $json.isClosed }) }}",
|
||||
"options": {
|
||||
"timeout": 15000
|
||||
}
|
||||
}
|
||||
},
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "6IxSBH9y4fXsIoyA",
|
||||
"name": "ZPRO API Token - Orçamento de Exames"
|
||||
}
|
||||
},
|
||||
"onError": "continueErrorOutput"
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
|
||||
Reference in New Issue
Block a user