diff --git a/disparador.json b/disparador.json index 2bb0b1e..35bd385 100644 --- a/disparador.json +++ b/disparador.json @@ -1,5 +1,5 @@ { - "name": "Disparador 1.3", + "name": "Disparador 1.3.1", "nodes": [ { "parameters": { @@ -12,7 +12,7 @@ ] } }, - "id": "4452959e-df86-49c1-9198-9637d5db5899", + "id": "8fce1296-5035-4782-9ab6-1e1e1f1e1642", "name": "Schedule Trigger", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1, @@ -33,7 +33,7 @@ ] } }, - "id": "d1b0e00d-8655-416e-be1b-185602fc3c5b", + "id": "ef18df6b-05f0-437e-aa20-5296c4feb0f8", "name": "Horario", "type": "n8n-nodes-base.if", "typeVersion": 1, @@ -48,23 +48,23 @@ "height": 456.3958547081602, "width": 1221.218469617133 }, - "id": "02db442a-cd4e-4a5a-89dc-296c93eadc84", + "id": "19fd0560-dff1-4cc8-a3e3-7ec6389a929f", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ - -2231.8637163263666, + -2240, 840 ] }, { "parameters": { - "content": "# Disparador de Campanha para ChatWoot\n## Evolution API\n\n\nv 1.3", + "content": "# Disparador de Campanha para ChatWoot\n## Evolution API\n\n\nv 1.3.1", "height": 163.30528430133387, "width": 847.4993167412657, "color": 4 }, - "id": "bde3b3f2-9623-401b-830f-c5da7e263d94", + "id": "a696c0ff-0e8a-4121-a8f0-6bc24992d3e3", "name": "Sticky Note10", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -83,7 +83,7 @@ "includeInputFields": true } }, - "id": "04923613-b480-41ae-9f91-a6cdcebe62c5", + "id": "7e7948ea-0584-4292-86df-746137366cf8", "name": "Altera fuso horário", "type": "n8n-nodes-base.dateTime", "typeVersion": 2, @@ -92,6 +92,58 @@ 1040 ] }, + { + "parameters": { + "keepOnlySet": true, + "values": { + "string": [ + { + "name": "chatwoot_url", + "value": "https://urlchatwoot.com" + }, + { + "name": "evolution_url", + "value": "https://urlevo.com" + }, + { + "name": "global_api_key", + "value": "global api evo" + }, + { + "name": "instance_name", + "value": "=nome da tenancia evo" + }, + { + "name": "chatwoot_token", + "value": "=token perfil chatwoot" + }, + { + "name": "email_relatorio", + "value": "email@email.com" + } + ], + "number": [ + { + "name": "chatwoot_account_id", + "value": "=id conta chatwoot" + }, + { + "name": "recebe_relatorio", + "value": 551199996666 + } + ] + }, + "options": {} + }, + "id": "be515822-2179-46ac-a625-85f61675b5fb", + "name": "Info_Base", + "type": "n8n-nodes-base.set", + "typeVersion": 2, + "position": [ + -2000, + 1040 + ] + }, { "parameters": { "content": "# Busca contatos / Envia campanha\n", @@ -99,7 +151,7 @@ "width": 5345.205229325977, "color": 3 }, - "id": "63df87d4-ebdb-42a5-99d9-4c38eef9f38d", + "id": "b2092ba7-5b7e-40d1-ba9b-7fc2a0c04eee", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -111,10 +163,12 @@ { "parameters": { "operation": "executeQuery", - "query": "select * from campaigns c where campaign_type = 1 and status_envia = 0 LIMIT 1", - "additionalFields": {} + "query": "SELECT * \nFROM campaigns c \nWHERE account_id = ID_CHATWOOT\nAND status_envia = 0\nAND inbox_id = ID_DO_DISPARADOR\nLIMIT 1;", + "additionalFields": { + "queryParams": "=" + } }, - "id": "bf04807b-ffa9-4050-b8c5-fefe644b5638", + "id": "9d73d2f8-0762-4aef-97b0-fd3b889f3b40", "name": "Buscar campanhas", "type": "n8n-nodes-base.postgres", "typeVersion": 1, @@ -131,7 +185,7 @@ }, { "parameters": {}, - "id": "7d61bf85-d647-4d21-a5ef-ddafa1a61cd2", + "id": "e920f471-2c25-4a44-97c1-92af8b909286", "name": "Repetir ação", "type": "n8n-nodes-base.noOp", "typeVersion": 1, @@ -144,7 +198,7 @@ "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": "f427a3df-2316-43ae-953a-fc42daf93153", + "id": "bdbffb4f-7ee4-4fa2-94bc-54ecc3fe9923", "name": "Time Randon1", "type": "n8n-nodes-base.code", "typeVersion": 2, @@ -157,7 +211,7 @@ "parameters": { "amount": "={{ $json.waitTime }}" }, - "id": "3b39659b-09b4-4afa-b02b-6b0cb37e31f7", + "id": "2d6d2fe2-a618-46d4-8408-9faf49682ee0", "name": "Tempo de espera1", "type": "n8n-nodes-base.wait", "typeVersion": 1.1, @@ -165,8 +219,7 @@ 2420, 1060 ], - "webhookId": "dc200d84-f36d-46c9-812f-da7ed75f0f75", - "disabled": true + "webhookId": "12c42019-31f5-4506-8efd-b992dc5d5e31" }, { "parameters": { @@ -174,7 +227,7 @@ "query": "SELECT c.*\nFROM contacts c\nJOIN taggings tg ON c.id = tg.taggable_id\nWHERE tg.tag_id = {{ $json.etiqueta }}\nAND tg.taggable_type = 'Contact'\nAND c.account_id = {{ $('Info_Base').item.json.chatwoot_account_id }};", "options": {} }, - "id": "f7717d60-3cce-4140-b1b8-460c815253b6", + "id": "38fd4c79-b997-4562-98b6-31c240b80ba2", "name": "Busca contatos", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -200,7 +253,7 @@ ] } }, - "id": "8ef0df3f-a6c3-4dd7-a61f-251de01b01f6", + "id": "58a3dbdb-0eb2-414b-ac55-5feeab2c0003", "name": "IF6", "type": "n8n-nodes-base.if", "typeVersion": 1, @@ -215,7 +268,7 @@ "include": "allOtherFields", "options": {} }, - "id": "62022390-4093-4298-876d-cb5ab65e91bf", + "id": "6eebf64f-d9e1-456e-bc45-e58df35b51fc", "name": "Item Lists1", "type": "n8n-nodes-base.itemLists", "typeVersion": 3, @@ -231,7 +284,7 @@ "width": 728.217926985971, "color": 2 }, - "id": "17041050-2a07-4398-8103-072ffb01aa4a", + "id": "ef3b0989-9abc-4f3b-a768-b055076b4178", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -244,7 +297,7 @@ "parameters": { "options": {} }, - "id": "d7690c38-6a64-4493-9a4c-545c84ffa870", + "id": "92631519-1207-4439-9c4d-90f2e40fc472", "name": "Loop Over Items", "type": "n8n-nodes-base.splitInBatches", "typeVersion": 3, @@ -280,7 +333,7 @@ }, "options": {} }, - "id": "a843cb96-5697-4f69-9247-8c054b989816", + "id": "63cf2edf-e36b-493a-be99-332467cb4738", "name": "If", "type": "n8n-nodes-base.if", "typeVersion": 2, @@ -296,7 +349,7 @@ "width": 541.3647232510804, "color": 4 }, - "id": "f240fd62-5b0a-4d9d-ab12-306246b481a8", + "id": "3b97588c-77a7-4592-9fe8-4ebeee573e6b", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -312,7 +365,7 @@ "width": 404.53569195365, "color": 4 }, - "id": "9731ca27-f42b-43c1-96ea-5d3f10d9b818", + "id": "097487f3-76f6-4501-9857-503a2f5f6886", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -328,7 +381,7 @@ "width": 374.41687218580967, "color": 2 }, - "id": "c3f1bf2b-ad3f-4bcc-a81b-b9d90143a7ad", + "id": "981a407d-9e7c-48ce-b37a-000739c7fc7d", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -344,7 +397,7 @@ "width": 376.16757486051324, "color": 2 }, - "id": "f283ed02-2487-4738-ace6-1df7db7de2ce", + "id": "1ba895be-ffbe-4e2c-9ead-54b1d12d07a7", "name": "Sticky Note7", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -361,7 +414,7 @@ "queryReplacement": "=" } }, - "id": "7890db73-fc8e-4400-8d7d-483eb9f652be", + "id": "8be6f23f-2f16-4050-95b7-190e751d5563", "name": "Busca falhas", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -382,7 +435,7 @@ "query": "UPDATE accounts\nSET limite_disparo ={{ $json.limite_disparo -1 }}\nWHERE id ={{ $('Info_Base').item.json.chatwoot_account_id }};", "options": {} }, - "id": "9b34f824-acca-434a-8813-f20f45d16750", + "id": "7bc90e10-3ffb-495c-bc1b-b894bd106350", "name": "Subtrair", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -403,7 +456,7 @@ "query": "UPDATE campaigns\nSET falhou = {{ $json.falhou +1 }}\nWHERE id = {{ $('IF6').item.json.id }};", "options": {} }, - "id": "94f201ed-3c97-443f-805a-d02a3a3ce822", + "id": "894694b9-4b54-4b64-9ff6-cecc6ab1dd8a", "name": "Adiciona falhas", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -424,7 +477,7 @@ "query": "SELECT enviou\nFROM campaigns\nWHERE id = {{ $('IF6').item.json.id }};", "options": {} }, - "id": "d9d31efc-ce26-48d7-8b3e-fdc7e6d819a0", + "id": "e7d2bbe8-b14b-4d0c-b3a9-4588e1f242aa", "name": "Busca envios", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -483,7 +536,7 @@ }, "options": {} }, - "id": "acfd9367-1a7f-4160-9a3c-e353c114ed5c", + "id": "af6cd466-d970-4cf5-a6c8-a3139a513a3e", "name": "Campanha", "type": "n8n-nodes-base.set", "typeVersion": 3.3, @@ -498,7 +551,7 @@ "height": 260.9879652172832, "width": 572.0821989473383 }, - "id": "78b47cf8-c13c-401a-a7bd-cc7d775c7b09", + "id": "fb938aec-8992-4085-acee-d058a057cc28", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -515,7 +568,7 @@ "queryReplacement": "=" } }, - "id": "a7774a5b-6460-4f5f-9264-02987a3959a9", + "id": "9b774442-7171-4483-88cf-0239f11a6388", "name": "Resumo relatorio", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -530,85 +583,13 @@ } } }, - { - "parameters": { - "method": "POST", - "url": "={{ $('Info_Base').item.json.evolution_url }}/message/sendMedia/{{ $('Info_Base').item.json.instance_name }}", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "accept", - "value": "application/json, text/plain, */*" - }, - { - "name": "apikey", - "value": "={{ $('Info_Base').item.json.global_api_key }}" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"number\":\"{{ $('Busca contatos').item.json.phone_number }}\",\n \"options\":{\"delay\":3000,\"presence\":\"composing\"},\n \"mediaMessage\":{\"mediatype\":\"image\",\"caption\":\"{{ $json.mensagem }}\",\n \"media\":\"{{ $json[\"anexo\"] }}\"}\n}\n", - "options": {} - }, - "id": "39654931-d40a-4ccb-af5f-a401c434e453", - "name": "Envia msg2", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.1, - "position": [ - 3100, - 1160 - ], - "retryOnFail": false, - "maxTries": 2, - "waitBetweenTries": 2000, - "executeOnce": true, - "onError": "continueErrorOutput" - }, - { - "parameters": { - "method": "=POST", - "url": "={{ $('Info_Base').item.json.evolution_url }}/message/sendText/{{ $('Info_Base').item.json.instance_name }}", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "accept", - "value": "application/json, text/plain, */*" - }, - { - "name": "apikey", - "value": "={{ $('Info_Base').item.json.global_api_key }}" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"number\":\"{{ $('Busca contatos').item.json.phone_number }}\",\n \"options\":{\"delay\":3000,\"presence\":\"composing\"},\n \"textMessage\":{\"text\":\"{{ $('Edita Mensagem').item.json.var_msg.replace(/\\n/g, '\\\\n') }}\"}\n} ", - "options": {} - }, - "id": "f5c1102f-c895-4848-bdcd-47a963484975", - "name": "Envia msg", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.1, - "position": [ - 3020, - 880 - ], - "retryOnFail": false, - "maxTries": 2, - "waitBetweenTries": 2000, - "executeOnce": true, - "onError": "continueErrorOutput" - }, { "parameters": { "content": "# Limite exedido", "height": 253.00924578984532, "width": 566.1013825500216 }, - "id": "4a469859-4a64-47dc-b52a-734fd2328a32", + "id": "3e1ab826-2d6e-49ce-8b8a-9371efd77a4b", "name": "Sticky Note9", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -639,7 +620,7 @@ "jsonBody": "={\"number\":\"{{ $('Info_Base').item.json[\"recebe_relatorio\"] }}@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#️⃣ Limite restante: {{ $json[\"limite_disparo\"] }}\\n\\nObrigado por utilizar nossos serviços!\"}}", "options": {} }, - "id": "7ce334eb-8692-4a5f-b8c9-1237157f4bd9", + "id": "3ebf8469-c629-4619-82d2-7bbbff26b462", "name": "Envia relatorio", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.1, @@ -652,48 +633,13 @@ "waitBetweenTries": 2000, "executeOnce": true }, - { - "parameters": { - "method": "POST", - "url": "={{ $('Info_Base').item.json.evolution_url }}/message/sendText/{{ $('Info_Base').item.json.instance_name }}", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "accept", - "value": "application/json, text/plain, */*" - }, - { - "name": "apikey", - "value": "={{ $('Info_Base').item.json.global_api_key }}" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\"number\":\"{{ $('Info_Base').item.json[\"recebe_relatorio\"] }}@s.whatsapp.net\",\"options\":{\"delay\":3000,\"presence\":\"composing\"},\"textMessage\":{\"text\":\"⚠️ *Atenção!* Algumas mensagens da campanha *{{ $('Buscar campanhas').item.json.title }}* podem não ter sido enviadas. ⚠️\\n\\n✔️ Total de envios: {{ $json[\"enviou\"] }}\\n❌ Número de falhas: {{ $json[\"falhou\"] }}\\n#️⃣ Limite restante: {{ $json[\"limite_disparo\"] }}\\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": "cc4e81c1-2678-4ed0-8658-223cb69798b5", - "name": "Envia relatorio1", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.1, - "position": [ - 1280, - 280 - ], - "retryOnFail": false, - "maxTries": 2, - "waitBetweenTries": 2000, - "executeOnce": true - }, { "parameters": { "operation": "executeQuery", "query": "=UPDATE campaigns SET status_envia = 1 WHERE id = {{ $json.id }}", "additionalFields": {} }, - "id": "a5d2f541-47fa-4b37-875c-d1cd9957b3f9", + "id": "fef339d3-2ca7-410b-acc4-1148514e14aa", "name": "Update Campanha", "type": "n8n-nodes-base.postgres", "typeVersion": 1, @@ -707,8 +653,7 @@ "id": "CbrIGpLnj1oilB4h", "name": "Chatwoot" } - }, - "disabled": true + } }, { "parameters": { @@ -716,7 +661,7 @@ "query": "UPDATE campaigns\nSET enviou = {{ $json.enviou +1 }}\nWHERE id = {{ $('IF6').item.json.id }};", "options": {} }, - "id": "e5d89e25-495a-43ed-92da-1fa75dae4ac7", + "id": "b870df1b-8270-49a5-8c5d-0b3e73a88e7b", "name": "Adiciona envios", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -737,7 +682,7 @@ "height": 199.63817652105178, "width": 313.99126283929667 }, - "id": "804fc136-12b5-4f40-b48b-28e5fc635c7a", + "id": "2a839077-92c1-4e11-8108-b7a6266e0b63", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -752,7 +697,7 @@ "height": 221.17684873191945, "width": 313.99126283929667 }, - "id": "c3b19e5e-b472-4c8a-aa6f-d39cb7855a2f", + "id": "40738a1e-c572-490b-ab05-5757d1f7bb8b", "name": "Sticky Note11", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -785,7 +730,7 @@ }, "options": {} }, - "id": "31e4e1fc-d9ac-475c-a8dc-43210c65c9c1", + "id": "9ebeed5b-0ef7-4ac1-9efc-212eac9c4f6d", "name": "If1", "type": "n8n-nodes-base.if", "typeVersion": 2, @@ -828,7 +773,7 @@ }, "options": {} }, - "id": "22b9cf8c-175f-445e-8637-f2f6833e0541", + "id": "f9897be3-97b2-41d1-863c-9d8bf16e8ad2", "name": "If2", "type": "n8n-nodes-base.if", "typeVersion": 2, @@ -851,7 +796,7 @@ }, "options": {} }, - "id": "a3fd6f99-34fe-43b3-a85a-1711aef68bc7", + "id": "88549ccf-02b5-41db-bf7c-ca69e5d18152", "name": "Edita Mensagem", "type": "n8n-nodes-base.set", "typeVersion": 3.3, @@ -882,7 +827,7 @@ "includeBinary": true } }, - "id": "250bb120-7022-406b-9d54-545a7afe2696", + "id": "9f151dce-25fd-4333-89d1-2f443004d7c5", "name": "Edit Fields2", "type": "n8n-nodes-base.set", "typeVersion": 3.2, @@ -891,95 +836,13 @@ 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": "7e6a3f17-0b0b-472c-9041-eed7747e5df3", - "name": "Abre conversa de contato existente", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 3, - "position": [ - 3960, - 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": "={{ $('Busca contatos').item.json.phone_number }}" - } - ] - }, - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "api_access_token", - "value": "={{ $('Info_Base').item.json.chatwoot_token }}" - } - ] - }, - "options": {} - }, - "id": "187271b6-05f9-4d6a-813b-4609734e2370", - "name": "Busca Contato Existe", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 3, - "position": [ - 3800, - 1040 - ] - }, - { - "parameters": { - "method": "POST", - "url": "={{ $('Info_Base').item.json.chatwoot_url }}/api/v1/accounts/{{ $('Info_Base').item.json.chatwoot_account_id }}/conversations/{{ $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": "f84fca45-e817-4f02-ae2a-0c5170de67af", - "name": "Resolve Conversa", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 3, - "position": [ - 4860, - 1040 - ] - }, { "parameters": { "content": "## Resolve Conversa\n** Se a conversa estiver aberta mantém / Se for uma conversa nova ele fecha!", "height": 331.5360284004761, "width": 1227.4972493046307 }, - "id": "6aaa8d71-6d7c-4e66-bd00-dd95decfb97a", + "id": "f4ce64b8-8c25-4903-871e-02cc6191b4c0", "name": "Sticky Note12", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -1008,7 +871,7 @@ }, "options": {} }, - "id": "b5b5f680-da2e-4883-8d83-24b46023a94f", + "id": "9e5f8336-9dcf-4c93-b690-9654438df7e2", "name": "Salva conversa", "type": "n8n-nodes-base.set", "typeVersion": 3.3, @@ -1041,7 +904,7 @@ }, "options": {} }, - "id": "a32d9ad2-b090-48fe-8429-7a1491be38a1", + "id": "338288df-3cf8-4197-9fa0-a2f36ef373ad", "name": "If3", "type": "n8n-nodes-base.if", "typeVersion": 2, @@ -1054,7 +917,7 @@ "parameters": { "amount": 2 }, - "id": "5649307b-7a02-45c4-91fa-0e1d28fee271", + "id": "533fd799-add0-4c9f-85e3-d747a8d5dd49", "name": "Wait", "type": "n8n-nodes-base.wait", "typeVersion": 1.1, @@ -1062,30 +925,7 @@ 4540, 1040 ], - "webhookId": "d3ab4c19-a79f-4561-b2a2-dd4678da799c" - }, - { - "parameters": { - "url": "={{ $('Info_Base').item.json.chatwoot_url }}/api/v1/accounts/1/contacts/{{ $json[\"id_contato\"] }}/conversations", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "api_access_token", - "value": "={{ $('Info_Base').item.json.chatwoot_token }}" - } - ] - }, - "options": {} - }, - "id": "bb717465-9540-4911-bc52-9e2d85dc5f7e", - "name": "Busca conversa", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 3, - "position": [ - 4700, - 1040 - ] + "webhookId": "91b155c8-7a16-4845-addb-3fc02670ae20" }, { "parameters": { @@ -1093,7 +933,7 @@ "height": 246.1701698163285, "width": 704.4608631799392 }, - "id": "38d5fc83-3555-4d5d-84e7-872ddd7c4c71", + "id": "42e61ff9-fa35-4238-a489-055d9b456f5c", "name": "Sticky Note13", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, @@ -1102,88 +942,6 @@ 380 ] }, - { - "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": "f5ebfada-7816-4fac-825d-cd5f39bd64fb", - "name": "Seleciona conversa", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 3, - "position": [ - 2100, - 460 - ] - }, - { - "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": "=+{{ $('Info_Base').item.json[\"recebe_relatorio\"] }}" - } - ] - }, - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "api_access_token", - "value": "={{ $('Info_Base').item.json.chatwoot_token }}" - } - ] - }, - "options": {} - }, - "id": "f10e0111-9a63-47be-9a4e-f619137592e2", - "name": "Busca Contato do Relatorio", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 3, - "position": [ - 1940, - 460 - ] - }, - { - "parameters": { - "method": "POST", - "url": "={{ $('Info_Base').item.json.chatwoot_url }}/api/v1/accounts/{{ $('Info_Base').item.json.chatwoot_account_id }}/conversations/{{ $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": "77090159-6fe6-4106-adca-548ca3b3cb37", - "name": "Fecha Conversa", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 3, - "position": [ - 2260, - 460 - ] - }, { "parameters": { "method": "POST", @@ -1206,7 +964,7 @@ "jsonBody": "={\"number\":\"{{ $('Info_Base').item.json[\"recebe_relatorio\"] }}@s.whatsapp.net\",\"options\":{\"delay\":3000,\"presence\":\"composing\"},\"textMessage\":{\"text\":\"📢 Notificação Importante 📢\\n\\n🚀 A campanha *{{ $('Buscar campanhas').item.json.title }}* foi iniciada com sucesso! 🎉\\n\\n📲 As mensagens estão sendo enviadas. Fique atento para atualizações.\\n\\nObrigado por utilizar nossos serviços! 😊\"}}", "options": {} }, - "id": "2fccdd81-f998-41d9-b270-f2c7651e67ad", + "id": "2cc37d31-0165-429f-a32a-638cf61566f7", "name": "Envia Notificação", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.1, @@ -1217,8 +975,7 @@ "retryOnFail": false, "maxTries": 2, "waitBetweenTries": 2000, - "executeOnce": true, - "disabled": true + "executeOnce": true }, { "parameters": { @@ -1228,7 +985,7 @@ "queryReplacement": "=" } }, - "id": "ffda661c-e4b7-4dff-a730-cfadf3345723", + "id": "d81c9c40-c696-4e8f-8944-b96471177948", "name": "Notifica limite excedido", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -1251,7 +1008,7 @@ "queryReplacement": "=" } }, - "id": "d4ce6ee0-86fc-4bef-88f8-2bc2944e3e88", + "id": "ed14d0aa-29f0-4ba4-b0ba-22d75133284c", "name": "Busca limite diario", "type": "n8n-nodes-base.postgres", "typeVersion": 2.4, @@ -1274,7 +1031,7 @@ "text": "=⚠️ Atenção! Algumas mensagens da campanha {{ $('Buscar campanhas').item.json.title }} podem não ter sido enviadas. ⚠️\n\n✔️ Total de envios: {{ $('Notifica limite excedido').item.json.enviou }}\n❌ Número de falhas: {{ $('Notifica limite excedido').item.json.falhou }}\n#️⃣ Limite restante: {{ $('Notifica limite excedido').item.json.limite_disparo }} \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": "00c67c94-3ea8-44c5-bd31-ea32bba06b3a", + "id": "e96bdf4a-a19b-4a8f-b9b4-fb6a8fcf2be1", "name": "Send Email", "type": "n8n-nodes-base.emailSend", "typeVersion": 2, @@ -1298,7 +1055,7 @@ "text": "=📢 Campanha {{ $('Buscar campanhas').item.json.title }} enviada com sucesso! 📢\n\n✔️ Total de envios: {{ $('Resumo relatorio').item.json.enviou }}\n❌ Número de falhas: {{ $('Resumo relatorio').item.json.falhou }} \n#️⃣ Limite restante: {{ $('Resumo relatorio').item.json.limite_disparo }} \n\nObrigado por utilizar nossos serviços!", "options": {} }, - "id": "f792c86c-d19a-415c-9988-96dc89a81c33", + "id": "2f7f12bd-98cb-4dbc-a9a9-3f3eea53a0eb", "name": "Send Email1", "type": "n8n-nodes-base.emailSend", "typeVersion": 2, @@ -1314,37 +1071,6 @@ }, "continueOnFail": true }, - { - "parameters": { - "method": "POST", - "url": "={{ $('Info_Base').item.json.evolution_url }}/chat/whatsappNumbers/{{ $('Info_Base').item.json.instance_name }}", - "sendHeaders": true, - "headerParameters": { - "parameters": [ - { - "name": "Content-Type", - "value": "application/json" - }, - { - "name": "apikey", - "value": "={{ $('Info_Base').item.json.global_api_key }}" - } - ] - }, - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={\n \"numbers\": [\n \"{{ $('Busca contatos').item.json.phone_number }}\"\n ]\n} ", - "options": {} - }, - "id": "25dd968c-418e-4b5f-ab54-61d0f87081e2", - "name": "HTTP Request1", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.2, - "position": [ - 1140, - 1060 - ] - }, { "parameters": { "conditions": { @@ -1369,7 +1095,7 @@ }, "options": {} }, - "id": "f72c7a2f-885e-4d81-8661-05691018be19", + "id": "bc83dead-76f4-478e-af22-a6beff4227c5", "name": "If4", "type": "n8n-nodes-base.if", "typeVersion": 2, @@ -1380,7 +1106,7 @@ }, { "parameters": {}, - "id": "58cf13cc-7b5d-4e37-a3c3-b26ea6caefb0", + "id": "5e296314-c057-4659-91af-fd9fec4943b1", "name": "Wait1", "type": "n8n-nodes-base.wait", "typeVersion": 1.1, @@ -1388,59 +1114,338 @@ 1780, 460 ], - "webhookId": "7a91c17d-7a90-40c6-905f-2e6479420bf6" + "webhookId": "cecee368-df5c-4a08-b959-22039c50284a" }, { "parameters": { - "keepOnlySet": true, - "values": { - "string": [ + "method": "=POST", + "url": "={{ $('Info_Base').item.json.evolution_url }}/message/sendText/{{ $('Info_Base').item.json.instance_name }}", + "sendHeaders": true, + "headerParameters": { + "parameters": [ { - "name": "chatwoot_url", - "value": "https://suaurldochatwootaqui.com.br" + "name": "accept", + "value": "application/json, text/plain, */*" }, { - "name": "evolution_url", - "value": "https://suaurldaevoaqui.com.br" - }, - { - "name": "global_api_key", - "value": "global api key da evolution" - }, - { - "name": "instance_name", - "value": "=Nome da caixa da Evo api" - }, - { - "name": "chatwoot_token", - "value": "=token da tenancia do chatwoot" - }, - { - "name": "email_relatorio", - "value": "email pra receber relatorio" + "name": "apikey", + "value": "={{ $('Info_Base').item.json.global_api_key }}" } - ], - "number": [ + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"number\":\"{{ $('Busca contatos').item.json.phone_number }}\",\n \"options\":{\"delay\":3000,\"presence\":\"composing\"},\n \"textMessage\":{\"text\":\"{{ $('Edita Mensagem').item.json.var_msg.replace(/\\n/g, '\\\\n') }}\"}\n} ", + "options": {} + }, + "id": "03e43bb1-657c-423a-8530-b9157c6dd418", + "name": "Envia msg", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.1, + "position": [ + 3020, + 880 + ], + "retryOnFail": false, + "maxTries": 2, + "waitBetweenTries": 2000, + "executeOnce": true, + "onError": "continueRegularOutput" + }, + { + "parameters": { + "method": "POST", + "url": "={{ $('Info_Base').item.json.evolution_url }}/message/sendMedia/{{ $('Info_Base').item.json.instance_name }}", + "sendHeaders": true, + "headerParameters": { + "parameters": [ { - "name": "chatwoot_account_id", - "value": "=id da tenancia" + "name": "accept", + "value": "application/json, text/plain, */*" }, { - "name": "recebe_relatorio", - "value": 5511944446666 + "name": "apikey", + "value": "={{ $('Info_Base').item.json.global_api_key }}" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"number\":\"{{ $('Busca contatos').item.json.phone_number }}\",\n \"options\":{\"delay\":3000,\"presence\":\"composing\"},\n \"mediaMessage\":{\"mediatype\":\"image\",\"caption\":\"{{ $json.mensagem }}\",\n \"media\":\"{{ $json[\"anexo\"] }}\"}\n}\n", + "options": {} + }, + "id": "fe6ec433-ac28-4f2c-a4ac-99ad86085a9f", + "name": "Envia msg2", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.1, + "position": [ + 3100, + 1160 + ], + "retryOnFail": false, + "maxTries": 2, + "waitBetweenTries": 2000, + "executeOnce": true, + "onError": "continueRegularOutput" + }, + { + "parameters": { + "method": "POST", + "url": "={{ $('Info_Base').item.json.evolution_url }}/chat/whatsappNumbers/{{ $('Info_Base').item.json.instance_name }}", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "apikey", + "value": "={{ $('Info_Base').item.json.global_api_key }}" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"numbers\": [\n \"{{ $('Busca contatos').item.json.phone_number }}\"\n ]\n} ", + "options": {} + }, + "id": "e3c5af48-c661-4376-95c3-34b82958c812", + "name": "HTTP Request1", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.2, + "position": [ + 1140, + 1060 + ] + }, + { + "parameters": { + "method": "POST", + "url": "={{ $node['Info_Base'].json.chatwoot_url }}/api/v1/accounts/{{ $node['Info_Base'].json.chatwoot_account_id }}/conversations/{{ $json.payload[0].id }}/toggle_status", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "api_access_token", + "value": "={{ $node['Info_Base'].json.chatwoot_token }}" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n\"status\": \"resolved\"\n}", + "options": {} + }, + "id": "1a792741-39e2-4330-bf21-bba6329c182d", + "name": "Resolve Conversa", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 3, + "position": [ + 4860, + 1040 + ], + "onError": "continueRegularOutput" + }, + { + "parameters": { + "url": "={{ $node['Info_Base'].json.chatwoot_url }}/api/v1/accounts/1/contacts/{{ $json[\"id_contato\"] }}/conversations", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "api_access_token", + "value": "={{ $node['Info_Base'].json.chatwoot_token }}" } ] }, "options": {} }, - "id": "b79915aa-62a5-43e7-a256-d3c2a3d8d025", - "name": "Info_Base1", - "type": "n8n-nodes-base.set", - "typeVersion": 2, + "id": "f73fe5a2-8899-48de-b58f-3a7439e28f99", + "name": "Busca conversa", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 3, "position": [ - -2000, + 4700, + 1040 + ], + "onError": "continueRegularOutput" + }, + { + "parameters": { + "url": "={{ $node['Info_Base'].json.chatwoot_url }}/api/v1/accounts/{{ $node['Info_Base'].json.chatwoot_account_id }}/contacts/{{ $json.payload[0].id }}/conversations", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "api_access_token", + "value": "={{ $node['Info_Base'].json.chatwoot_token }}" + } + ] + }, + "options": {} + }, + "id": "29a3f3d0-cab3-49ad-adfd-0fbdfb6a7fdf", + "name": "Abre conversa de contato existente", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 3, + "position": [ + 3960, + 1040 + ], + "onError": "continueRegularOutput" + }, + { + "parameters": { + "url": "={{ $node['Info_Base'].json.chatwoot_url }}/api/v1/accounts/{{ $node['Info_Base'].json.chatwoot_account_id }}/contacts/search", + "sendQuery": true, + "queryParameters": { + "parameters": [ + { + "name": "q", + "value": "={{ $node['Busca contatos'].json.phone_number }}" + } + ] + }, + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "api_access_token", + "value": "={{ $node['Info_Base'].json.chatwoot_token }}" + } + ] + }, + "options": {} + }, + "id": "547b1cdd-3ac2-43f7-9e67-b2623e7a4dd3", + "name": "Busca Contato Existe", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 3, + "position": [ + 3800, 1040 ] + }, + { + "parameters": { + "method": "POST", + "url": "={{ $node['Info_Base'].json.chatwoot_url }}/api/v1/accounts/{{ $node['Info_Base'].json.chatwoot_account_id }}/conversations/{{ $json.payload[0].id }}/toggle_status", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "api_access_token", + "value": "={{ $node['Info_Base'].json[\"chatwoot_token\"] }}" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n\"status\": \"resolved\"\n}", + "options": {} + }, + "id": "bc9deb8b-56c7-491a-a11e-abb0d7b75ff9", + "name": "Fecha Conversa", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 3, + "position": [ + 2260, + 460 + ], + "onError": "continueRegularOutput" + }, + { + "parameters": { + "url": "={{ $node['Info_Base'].json.chatwoot_url }}/api/v1/accounts/{{ $node['Info_Base'].json.chatwoot_account_id }}/contacts/{{ $json.payload[0].id }}/conversations", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "api_access_token", + "value": "={{ $node['Info_Base'].json.chatwoot_token }}" + } + ] + }, + "options": {} + }, + "id": "9c5369d0-bcf8-457d-9443-6b0da8b2ed4e", + "name": "Seleciona conversa", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 3, + "position": [ + 2100, + 460 + ], + "onError": "continueRegularOutput" + }, + { + "parameters": { + "url": "={{ $node['Info_Base'].json.chatwoot_url }}/api/v1/accounts/{{ $node['Info_Base'].json.chatwoot_account_id }}/contacts/search", + "sendQuery": true, + "queryParameters": { + "parameters": [ + { + "name": "q", + "value": "=+{{ $node['Info_Base'].json[\"recebe_relatorio\"] }}" + } + ] + }, + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "api_access_token", + "value": "={{ $node['Info_Base'].json.chatwoot_token }}" + } + ] + }, + "options": {} + }, + "id": "de0ac4ad-d6ef-4d33-9ec8-94a1404cb3f1", + "name": "Busca Contato do Relatorio", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 3, + "position": [ + 1940, + 460 + ], + "onError": "continueRegularOutput" + }, + { + "parameters": { + "method": "POST", + "url": "={{ $('Info_Base').item.json.evolution_url }}/message/sendText/{{ $('Info_Base').item.json.instance_name }}", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "apikey", + "value": "={{ $('Info_Base').item.json.global_api_key }}" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\"number\":\"{{ $('Info_Base').item.json[\"recebe_relatorio\"] }}@s.whatsapp.net\",\"options\":{\"delay\":3000,\"presence\":\"composing\"},\"textMessage\":{\"text\":\"⚠️ *Atenção!* Algumas mensagens da campanha *{{ $('Buscar campanhas').item.json.title }}* podem não ter sido enviadas. ⚠️\\n\\n✔️ Total de envios: {{ $json[\"enviou\"] }}\\n❌ Número de falhas: {{ $json[\"falhou\"] }}\\n#️⃣ Limite restante: {{ $json[\"limite_disparo\"] }}\\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": "df52e073-b806-41ba-bccc-accf793658fb", + "name": "Envia relatorio1", + "type": "n8n-nodes-base.httpRequest", + "typeVersion": 4.1, + "position": [ + 1280, + 280 + ], + "retryOnFail": false, + "maxTries": 2, + "waitBetweenTries": 2000, + "executeOnce": true } ], "pinData": {}, @@ -1449,7 +1454,7 @@ "main": [ [ { - "node": "Info_Base1", + "node": "Info_Base", "type": "main", "index": 0 } @@ -1483,6 +1488,17 @@ ] ] }, + "Info_Base": { + "main": [ + [ + { + "node": "Buscar campanhas", + "type": "main", + "index": 0 + } + ] + ] + }, "Buscar campanhas": { "main": [ [ @@ -1667,28 +1683,6 @@ ] ] }, - "Envia msg2": { - "main": [ - [ - { - "node": "Busca envios", - "type": "main", - "index": 0 - } - ] - ] - }, - "Envia msg": { - "main": [ - [ - { - "node": "Busca envios", - "type": "main", - "index": 0 - } - ] - ] - }, "Adiciona envios": { "main": [ [ @@ -1740,39 +1734,6 @@ ] ] }, - "Busca Contato Existe": { - "main": [ - [ - { - "node": "Abre conversa de contato existente", - "type": "main", - "index": 0 - } - ] - ] - }, - "Resolve Conversa": { - "main": [ - [ - { - "node": "Repetir ação", - "type": "main", - "index": 0 - } - ] - ] - }, - "Abre conversa de contato existente": { - "main": [ - [ - { - "node": "If3", - "type": "main", - "index": 0 - } - ] - ] - }, "Salva conversa": { "main": [ [ @@ -1813,55 +1774,6 @@ ] ] }, - "Busca conversa": { - "main": [ - [ - { - "node": "Resolve Conversa", - "type": "main", - "index": 0 - } - ] - ] - }, - "Envia relatorio1": { - "main": [ - [ - { - "node": "Send Email", - "type": "main", - "index": 0 - }, - { - "node": "Wait1", - "type": "main", - "index": 0 - } - ] - ] - }, - "Busca Contato do Relatorio": { - "main": [ - [ - { - "node": "Seleciona conversa", - "type": "main", - "index": 0 - } - ] - ] - }, - "Seleciona conversa": { - "main": [ - [ - { - "node": "Fecha Conversa", - "type": "main", - "index": 0 - } - ] - ] - }, "Envia relatorio": { "main": [ [ @@ -1918,17 +1830,6 @@ ] ] }, - "HTTP Request1": { - "main": [ - [ - { - "node": "If4", - "type": "main", - "index": 0 - } - ] - ] - }, "If4": { "main": [ [ @@ -1958,11 +1859,115 @@ ] ] }, - "Info_Base1": { + "Envia msg": { "main": [ [ { - "node": "Buscar campanhas", + "node": "Busca envios", + "type": "main", + "index": 0 + } + ] + ] + }, + "Envia msg2": { + "main": [ + [ + { + "node": "Busca envios", + "type": "main", + "index": 0 + } + ] + ] + }, + "HTTP Request1": { + "main": [ + [ + { + "node": "If4", + "type": "main", + "index": 0 + } + ] + ] + }, + "Resolve Conversa": { + "main": [ + [ + { + "node": "Repetir ação", + "type": "main", + "index": 0 + } + ] + ] + }, + "Busca conversa": { + "main": [ + [ + { + "node": "Resolve Conversa", + "type": "main", + "index": 0 + } + ] + ] + }, + "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 + } + ] + ] + }, + "Seleciona conversa": { + "main": [ + [ + { + "node": "Fecha Conversa", + "type": "main", + "index": 0 + } + ] + ] + }, + "Busca Contato do Relatorio": { + "main": [ + [ + { + "node": "Seleciona conversa", + "type": "main", + "index": 0 + } + ] + ] + }, + "Envia relatorio1": { + "main": [ + [ + { + "node": "Send Email", + "type": "main", + "index": 0 + }, + { + "node": "Wait1", "type": "main", "index": 0 } @@ -1974,12 +1979,12 @@ "settings": { "executionOrder": "v1" }, - "versionId": "6011a582-ecaa-4d05-8bad-fbbb0b97b523", + "versionId": "70f6dcc5-c4db-4b0a-bb81-9ae9076bd8dd", "meta": { "templateCredsSetupCompleted": true, "instanceId": "33738330930e3881dd5571eca013f36ddf8aab20e4ea5c1f2ebaf4a2b4668ac6" }, - "id": "bmwifouK4HVcc03B", + "id": "4VsLUjqTMlyS0AW3", "tags": [ { "createdAt": "2024-06-24T17:54:45.734Z",