Update disparador.json

This commit is contained in:
Tanci 2024-06-24 15:29:29 -03:00 committed by GitHub
parent 3df818d3cb
commit 2e6dec9356
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
{
"name": "Disparador 1.0",
"name": "Disparador 1.0.1",
"nodes": [
{
"parameters": {
@ -12,7 +12,7 @@
]
}
},
"id": "e5541023-ccaf-40fb-9806-4144ec8f2ab2",
"id": "6200dded-efbe-4735-a9a8-bf9846e7b17e",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
@ -33,7 +33,7 @@
]
}
},
"id": "55c886d7-6a05-40e4-943d-6c0044a0d0b0",
"id": "1ae6809d-0caa-457b-8bb6-42d462adcbe9",
"name": "Horario",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
@ -48,7 +48,7 @@
"height": 456.3958547081602,
"width": 1221.218469617133
},
"id": "de3bbaed-e759-45d0-b1f9-b7ea334e80c5",
"id": "4be04fbc-a001-4c70-b392-f5464e6b857a",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
@ -64,7 +64,7 @@
"width": 847.4993167412657,
"color": 4
},
"id": "13e60f45-6fb1-481b-9e9a-c966f23177c0",
"id": "f08c4494-0cb6-40f9-ac6e-085a6c6b28f6",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
@ -83,7 +83,7 @@
"includeInputFields": true
}
},
"id": "d47902b1-3ef3-4b27-80a5-acff014c5040",
"id": "ae7f2e2b-b1e4-45d3-8fb0-43579fe294b7",
"name": "Altera fuso horário",
"type": "n8n-nodes-base.dateTime",
"typeVersion": 2,
@ -127,7 +127,7 @@
},
"options": {}
},
"id": "f039539b-5b9a-44c2-907b-c7201840d1ef",
"id": "6ece6b5a-556d-4927-9bf6-1ecfc0aaa128",
"name": "Info_Base",
"type": "n8n-nodes-base.set",
"typeVersion": 2,
@ -140,10 +140,10 @@
"parameters": {
"content": "# Busca contatos / Envia campanha\n",
"height": 580.894584655091,
"width": 4024.1965405967862,
"width": 4534.358334878044,
"color": 3
},
"id": "b60b6cc3-d4df-4099-9b90-efbdb21f5c94",
"id": "49aada24-1740-4101-b632-3722ea658927",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
@ -158,7 +158,7 @@
"query": "select * from campaigns c where campaign_type = 1 and status_envia = 0 LIMIT 1",
"additionalFields": {}
},
"id": "2d8af245-ab7d-45d9-aeb0-2b74278645ec",
"id": "b8606e09-dd8a-43b6-9ba3-d71aa29f7f52",
"name": "Buscar campanhas",
"type": "n8n-nodes-base.postgres",
"typeVersion": 1,
@ -169,7 +169,7 @@
},
{
"parameters": {},
"id": "3c11e651-683f-4310-b31c-ac88decb3d66",
"id": "916b3991-01c2-4db9-9cf0-6403fe978c8e",
"name": "Merge6",
"type": "n8n-nodes-base.merge",
"typeVersion": 2.1,
@ -180,25 +180,25 @@
},
{
"parameters": {},
"id": "83b38f63-8e55-47fe-aa08-bf81631c9861",
"id": "532cf0ce-cc58-4758-86df-f475e331d23c",
"name": "Repetir ação",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
3680,
1160
4180,
1180
]
},
{
"parameters": {
"jsCode": "// Este exemplo gera um tempo de espera aleatório entre 10 e 60 segundos\nconst minWait = 8; // Tempo mínimo de espera em segundos\nconst maxWait = 15; // Tempo máximo de espera em segundos\nconst randomWaitTime = Math.floor(Math.random() * (maxWait - minWait + 1)) + minWait;\n\nreturn [\n {\n json: {\n waitTime: randomWaitTime\n }\n }\n];\n"
},
"id": "39a95858-f4ec-44c7-a2a1-e866cda253f6",
"id": "1b9c8ef5-f86c-448f-9044-d440982092c2",
"name": "Time Randon1",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
2160,
2040,
1080
]
},
@ -206,26 +206,26 @@
"parameters": {
"amount": "={{ $json.waitTime }}"
},
"id": "b5eaf87e-9207-4db1-b8f1-186d706544bd",
"id": "22f536aa-6927-4623-ae03-5d372e7b4825",
"name": "Tempo de espera1",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
2340,
2220,
1080
],
"webhookId": "03dba265-ef4f-4f0d-83f9-32cb29f1257f"
"webhookId": "6bc26e38-68a7-4962-8f74-5fdff94bfe5b"
},
{
"parameters": {
"jsCode": "return items.map(item => {\n if (item.json.phone_number) {\n item.json.phone_number = item.json.phone_number.substring(1);\n }\n return item;\n});"
},
"id": "c8d22dbe-3d00-425d-83af-7b252602e603",
"id": "cb126c5a-22dc-487b-b547-7c9ac4c7d066",
"name": "Limpa numero1",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1800,
1680,
1080
]
},
@ -235,7 +235,7 @@
"query": "SELECT c.*\nFROM contacts c\nJOIN taggings tg ON c.id = tg.taggable_id\nWHERE tg.tag_id = {{ $json.etiqueta }};",
"options": {}
},
"id": "0946aec7-209e-404e-b42d-024ea8b15433",
"id": "f038636a-84a9-478f-8e22-409cbe7d5807",
"name": "Busca contatos",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
@ -255,7 +255,7 @@
]
}
},
"id": "a929111f-d896-4645-bc1d-7204b8236cf3",
"id": "5f8c9e2c-2e37-4cfb-92e1-20a0a55efbf4",
"name": "IF6",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
@ -270,7 +270,7 @@
"include": "allOtherFields",
"options": {}
},
"id": "d5f84df8-9266-4810-8e1a-73097012a533",
"id": "d49e9ca5-2780-42b7-8f99-d8c72daadbff",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
@ -286,7 +286,7 @@
"width": 728.217926985971,
"color": 2
},
"id": "c636be1e-e240-4e2f-a7e0-e24b2864fb54",
"id": "90ab96a1-8593-4606-9784-a290d5892f3e",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
@ -309,12 +309,12 @@
},
"options": {}
},
"id": "ca8ca461-1e8f-4930-991a-8989b037d29e",
"id": "8b453827-03ff-472e-aaf3-868640d0f936",
"name": "numero editado1",
"type": "n8n-nodes-base.set",
"typeVersion": 3.3,
"position": [
1980,
1860,
1080
]
},
@ -322,7 +322,7 @@
"parameters": {
"options": {}
},
"id": "eaed5ec7-1965-410f-afaf-05ca1b62f56a",
"id": "206a9d0d-bd00-4a83-a64d-78a1e52fd80c",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
@ -358,12 +358,12 @@
},
"options": {}
},
"id": "c9a25485-24ec-4525-bbf0-8b0454cb9eb5",
"id": "935720e3-47b6-4d90-8b11-a3a4c41dc27a",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
1360,
1240,
1080
]
},
@ -375,12 +375,12 @@
"queryReplacement": "={{ $('Info_Base').item.json.chatwoot_account_id }}"
}
},
"id": "63318453-74b0-4bb4-89b2-dc7809c4a2ca",
"id": "63aad44f-a567-4d10-863b-64329a76c5b4",
"name": "Conta Disparo",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
1200,
1080,
1080
]
},
@ -391,12 +391,12 @@
"width": 653.3075078799386,
"color": 4
},
"id": "1a3086cc-bf83-4c19-8965-16ccaa0a93e0",
"id": "8974cf02-bc83-4e65-b92c-44039bc982dd",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
860,
740,
1020
]
},
@ -407,12 +407,12 @@
"width": 911.0441675732073,
"color": 4
},
"id": "611aedf2-52c7-4bba-8f8f-32f97d61ba26",
"id": "4511b20c-b9a9-43a3-8e4f-dae5a32b7fe9",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1580,
1460,
1020
]
},
@ -424,12 +424,12 @@
"queryReplacement": "="
}
},
"id": "818e7c81-9e65-4028-b299-df2569741a01",
"id": "61597641-77cc-46dd-b63a-c5425b701daf",
"name": "Limitador",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
880,
760,
1080
]
},
@ -440,13 +440,13 @@
"width": 374.41687218580967,
"color": 2
},
"id": "630366a2-3360-439b-9d21-207bd1dad98c",
"id": "a598f9d9-7c75-461c-86e0-b94fd5083e8e",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
3260,
840
3020,
860
]
},
{
@ -456,13 +456,13 @@
"width": 382.34450749002,
"color": 2
},
"id": "a5b377f0-760a-48aa-bc8f-4f4a02d2db4c",
"id": "69e3aa34-cb8e-4005-890c-9c30dcb5d02c",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
3260,
1080
3020,
1100
]
},
{
@ -473,13 +473,13 @@
"queryReplacement": "="
}
},
"id": "3fda323e-df1d-4190-99ba-cffd5de3ac79",
"id": "7ddb1fe0-1cca-40f5-8c0f-25358d6c7934",
"name": "Busca falhas",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
3300,
900
3060,
920
]
},
{
@ -488,12 +488,12 @@
"query": "UPDATE accounts\nSET limite_disparo ={{ $json.limite_disparo -1 }}\nWHERE id ={{ $('Info_Base').item.json.chatwoot_account_id }};",
"options": {}
},
"id": "4c7860ed-34b2-40c6-86dd-77041fe638fe",
"id": "396e1190-ef6b-4295-ae34-695d77358173",
"name": "Subtrair",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
1040,
920,
1080
]
},
@ -503,13 +503,13 @@
"query": "UPDATE campaigns\nSET falhou = {{ $json.falhou +1 }}\nWHERE id = {{ $('IF6').item.json.id }};",
"options": {}
},
"id": "2dae8844-1abc-42a4-88b8-90fb252677cd",
"id": "a8be1590-768a-415c-bb39-296a22076aaf",
"name": "Adiciona falhas",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
3460,
900
3220,
920
]
},
{
@ -518,13 +518,13 @@
"query": "SELECT enviou\nFROM campaigns\nWHERE id = {{ $('IF6').item.json.id }};",
"options": {}
},
"id": "5e12488b-36d9-4966-a127-179365b9092b",
"id": "25e075c0-b46e-4762-9dcb-af0fea44e389",
"name": "Busca envios",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
3300,
1140
3060,
1160
]
},
{
@ -565,7 +565,7 @@
},
"options": {}
},
"id": "b6ea3768-9c0c-4719-aff5-f798ae48c30c",
"id": "3164c4b6-18de-425e-acc9-827495522430",
"name": "Campanha",
"type": "n8n-nodes-base.set",
"typeVersion": 3.3,
@ -580,7 +580,7 @@
"height": 272.1581724156961,
"width": 500.60281237764696
},
"id": "4fec3975-a7f9-4d01-b366-1ee13c038e08",
"id": "0015f320-dc25-42f8-aca6-1db2386598a7",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
@ -597,7 +597,7 @@
"queryReplacement": "="
}
},
"id": "5c47b2ed-4cfe-483f-96c2-84abefa170c0",
"id": "2ce2d02d-4b1c-448d-966c-664989b2770b",
"name": "Resumo relatorio",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
@ -628,13 +628,13 @@
"jsonBody": "={\"number\":\"{{ $('numero editado1').item.json.numberdispara }}@s.whatsapp.net\",\"options\":{\"delay\":3000,\"presence\":\"composing\"},\"mediaMessage\":{\"mediatype\":\"image\",\"caption\":\"{{ $json.mensagem }}\",\"media\":\"{{ $json[\"anexo\"] }}\"}}",
"options": {}
},
"id": "7122a3ba-3d33-4dbb-9120-05c81f1d2de5",
"id": "2d622329-4c3d-4256-bfec-1ca0ffd93d88",
"name": "Envia msg2",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
3060,
1140
2820,
1160
],
"retryOnFail": false,
"maxTries": 2,
@ -664,13 +664,13 @@
"jsonBody": "={\"number\":\"{{ $('numero editado1').item.json.numberdispara }}@s.whatsapp.net\",\"options\":{\"delay\":3000,\"presence\":\"composing\"},\"textMessage\":{\"text\":\"{{ $('Edita Mensagem').item.json.var_msg }}\"}} ",
"options": {}
},
"id": "5097496d-ff68-4e98-bbfa-f4e00f179219",
"id": "0d90b729-8882-44d1-9ed5-c6764fe47f47",
"name": "Envia msg",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
2980,
860
2740,
880
],
"retryOnFail": false,
"maxTries": 2,
@ -684,7 +684,7 @@
"height": 272.1581724156961,
"width": 421.4323377312729
},
"id": "85ee1933-16a4-4ac1-b1e0-67b4fafe5fc4",
"id": "80d33d2f-fd6e-4ef1-a7af-3a07924735d6",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
@ -715,7 +715,7 @@
"jsonBody": "={\"number\":\"5511988884444@s.whatsapp.net\",\"options\":{\"delay\":3000,\"presence\":\"composing\"},\"textMessage\":{\"text\":\"📢 Campanha *{{ $('Buscar campanhas').item.json.title }}* enviada com sucesso! 📢\\n\\n✔ Total de envios: {{ $json[\"enviou\"] }}\\n❌ Número de falhas: {{ $json[\"falhou\"] }}\\n\\nObrigado por utilizar nossos serviços!\"}}",
"options": {}
},
"id": "392dbaaa-317a-41b9-b9fd-023e2e6549dc",
"id": "5af8d13b-ec07-4678-a211-c56d4f0e3101",
"name": "Envia relatorio",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
@ -736,7 +736,7 @@
"queryReplacement": "="
}
},
"id": "7f31dcc4-e879-459e-8971-12263d5451fa",
"id": "8f36408b-d688-49e0-a8e1-ce72ad8f3625",
"name": "Resumo relatorio1",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
@ -767,7 +767,7 @@
"jsonBody": "={\"number\":\"5511988884444@s.whatsapp.net\",\"options\":{\"delay\":3000,\"presence\":\"composing\"},\"textMessage\":{\"text\":\"⚠️ *Atenção!* Algumas mensagens da campanha podem não ter sido enviadas. ⚠️\\n\\n✔ Total de envios: {{ $json[\"enviou\"] }}\\n❌ Número de falhas: {{ $json[\"falhou\"] }}\\n\\nO limite de disparos diários foi excedido. Por favor, verifique os envios ou entre em contato com o suporte para mais informações.\\n\\nObrigado pela compreensão!\"}}",
"options": {}
},
"id": "9133ce4c-2401-4d66-bfdd-b89f27c7fa5b",
"id": "e6ebb80c-df69-4711-9b39-990c5bb547d2",
"name": "Envia relatorio1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
@ -786,7 +786,7 @@
"query": "=UPDATE campaigns SET status_envia = 1 WHERE id = {{ $json.id }}",
"additionalFields": {}
},
"id": "cf83eec6-e3c7-49d9-bb6e-8a37fdbdd11c",
"id": "586aa133-ff10-4a08-8658-4caf40e6de71",
"name": "Update Campanha",
"type": "n8n-nodes-base.postgres",
"typeVersion": 1,
@ -810,12 +810,12 @@
},
"options": {}
},
"id": "657c60a2-65b9-40e2-8bf9-97af4dcdef6b",
"id": "c8072727-522c-475a-8950-7bb13d7373e5",
"name": "contato1",
"type": "n8n-nodes-base.set",
"typeVersion": 3.3,
"position": [
1640,
1520,
1080
]
},
@ -825,13 +825,13 @@
"query": "UPDATE campaigns\nSET enviou = {{ $json.enviou +1 }}\nWHERE id = {{ $('IF6').item.json.id }};",
"options": {}
},
"id": "f220f8d3-c698-4419-a284-58752cc3cdd5",
"id": "c74887ec-9e10-40a7-9787-6f29aed9e7b8",
"name": "Adiciona envios",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.4,
"position": [
3460,
1140
3220,
1160
]
},
{
@ -840,13 +840,13 @@
"height": 199.63817652105178,
"width": 313.99126283929667
},
"id": "70d94614-303b-4ef7-a171-7a8365baf049",
"id": "ea0f760a-425a-41ae-a852-46ecdd63e332",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2880,
800
2640,
820
]
},
{
@ -855,13 +855,13 @@
"height": 216.81471968017428,
"width": 313.99126283929667
},
"id": "39d8957c-cb09-499e-9382-7a7088f7518e",
"id": "bb1da829-8a2e-477d-a1e4-cb5f7a641528",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2880,
1080
2640,
1100
]
},
{
@ -888,12 +888,12 @@
},
"options": {}
},
"id": "07eae5ff-51c2-49fa-946e-dee18d11fe04",
"id": "396ed791-bce3-44a5-bb27-df0b2085161a",
"name": "If1",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
2560,
2440,
1080
]
},
@ -921,7 +921,7 @@
},
"options": {}
},
"id": "b6804408-e2a2-4bfb-a398-a8df0edd6897",
"id": "7620299b-abd7-4ec0-8d04-ae34719bbe2d",
"name": "If2",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
@ -944,7 +944,7 @@
},
"options": {}
},
"id": "fad04b30-333a-4ef7-bf39-f4d7211b3dcb",
"id": "e8441037-7278-448b-ad5e-031afab0a80c",
"name": "Edita Mensagem",
"type": "n8n-nodes-base.set",
"typeVersion": 3.3,
@ -975,13 +975,153 @@
"includeBinary": true
}
},
"id": "3167bce1-ed34-47f0-a964-393064b910de",
"id": "912a1ef5-8816-47f7-ade3-ba6fa3c477f7",
"name": "Edit Fields2",
"type": "n8n-nodes-base.set",
"typeVersion": 3.2,
"position": [
2920,
1140
2680,
1160
]
},
{
"parameters": {
"url": "={{ $('Info_Base').item.json.chatwoot_url }}/api/v1/accounts/{{ $('Info_Base').item.json.chatwoot_account_id }}/contacts/{{ $json.payload[0].id }}/conversations",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "api_access_token",
"value": "={{ $('Info_Base').item.json.chatwoot_token }}"
}
]
},
"options": {}
},
"id": "2a55749c-7ff1-4743-95e4-bdea0edaabe3",
"name": "Abre conversa de contato existente",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
3680,
1040
]
},
{
"parameters": {
"url": "={{ $('Info_Base').item.json.chatwoot_url }}/api/v1/accounts/{{ $('Info_Base').item.json.chatwoot_account_id }}/contacts/search",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "q",
"value": "={{ $('contato1').item.json.phone_number }}"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "api_access_token",
"value": "={{ $('Info_Base').item.json.chatwoot_token }}"
}
]
},
"options": {}
},
"id": "bd0f4c9f-f04f-4fdf-806d-128f7cb95e6b",
"name": "Busca Contato Existe",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
3520,
1040
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Info_Base').item.json.chatwoot_url }}/api/v1/accounts/{{ $('Info_Base').item.json.chatwoot_account_id }}/conversations/{{ $('Abre conversa de contato existente').item.json.payload[0].id }}/toggle_status",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "api_access_token",
"value": "={{ $('Info_Base').item.json.chatwoot_token }}"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n\"status\": \"resolved\"\n}",
"options": {}
},
"id": "53f7edfd-9a71-4938-8da8-e78c347dd61d",
"name": "Resolve Conversa",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
4000,
1040
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "f36a7740-f515-41a5-8a06-0d8438005e11",
"leftValue": "={{ $json.payload[0].status }}",
"rightValue": "open",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
},
{
"id": "a9ee241b-e05e-4ffe-ba4f-98076524b5a4",
"leftValue": "={{ $json.payload[0].status }}",
"rightValue": "pending",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "273480c3-7cc1-4c2b-a60d-4a1e9146778d",
"name": "If3",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
3840,
1040
]
},
{
"parameters": {
"content": "## Resolve Conversa\n** Se a conversa estiver aberta mantém / Se não houver conversa aberta ele fecha",
"height": 331.5360284004761,
"width": 639.1511430088007
},
"id": "8410d7fa-4d01-4b6d-85d6-4816ba16a48d",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
3480,
940
]
}
],
@ -1219,7 +1359,7 @@
"main": [
[
{
"node": "Repetir ação",
"node": "Busca Contato Existe",
"type": "main",
"index": 0
}
@ -1321,7 +1461,7 @@
"main": [
[
{
"node": "Repetir ação",
"node": "Busca Contato Existe",
"type": "main",
"index": 0
}
@ -1385,17 +1525,64 @@
}
]
]
},
"Abre conversa de contato existente": {
"main": [
[
{
"node": "If3",
"type": "main",
"index": 0
}
]
]
},
"Busca Contato Existe": {
"main": [
[
{
"node": "Abre conversa de contato existente",
"type": "main",
"index": 0
}
]
]
},
"If3": {
"main": [
[
{
"node": "Repetir ação",
"type": "main",
"index": 0
}
],
[
{
"node": "Resolve Conversa",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "da3e012a-a2b1-4425-8c74-385866433cfb",
"versionId": "4098f114-0f4b-4a55-8290-b716149185bd",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "33738330930e3881dd5571eca013f36ddf8aab20e4ea5c1f2ebaf4a2b4668ac6"
},
"id": "S0BXRPffHorRWRb8",
"tags": []
"id": "LLTG80erAd39vd1f",
"tags": [
{
"createdAt": "2024-06-24T17:54:45.734Z",
"updatedAt": "2024-06-24T17:54:45.734Z",
"id": "W4QFAwjDhUwUJMhH",
"name": "Dev"
}
]
}