This workflow follows the Agent → HTTP Request recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Periodico_rag_noticias",
"nodes": [
{
"parameters": {
"promptType": "define",
"text": "=Sua \u00fanica e exclusiva tarefa \u00e9 extrair e retornar uma URL, e nada mais.\n\nVoc\u00ea \u00e9 um assistente de IA especialista em extra\u00e7\u00e3o de dados. Analise o conte\u00fado fornecido e siga as regras estritamente.\n\n**Regras de Execu\u00e7\u00e3o:**\n\n1. **Analisar o Conte\u00fado:** Inspecione os dados em `{{ $json.data }}` para encontrar uma lista de not\u00edcias e seus links.\n2. **Filtrar por Palavras-chave:** Encontre a **primeira not\u00edcia da lista** cujo t\u00edtulo contenha pelo menos uma das seguintes palavras:\n * `Presidente`\n * `STF`\n * `Supremo`\n * `Senado`\n * `Camara`\n * `Deputados`\n * `Congresso`\n3. **Extrair a URL completa:** Isole a URL completa correspondente a essa not\u00edcia.\n\n**Formato de Sa\u00edda Obrigat\u00f3rio:**\n\n* **A resposta deve conter APENAS a URL completa.**\n* **N\u00c3O inclua absolutamente nenhum texto adicional**, explica\u00e7\u00f5es, introdu\u00e7\u00f5es, aspas, ou qualquer outra formata\u00e7\u00e3o.\n* Se voc\u00ea escrever qualquer coisa al\u00e9m da URL, a tarefa ser\u00e1 considerada uma falha.\n\nExemplo de sa\u00edda:\n- `https://www.cnnbrasil.com.br/economia/macroeconomia/reciproca-e-verdadeira-diz-haddad-apos-trump-sinalizar-abertura-de-dialogo/`\n- `https://g1.globo.com/mundo/noticia/2025/08/01/lula-pode-falar-comigo-o-momento-que-quiser-diz-trump.ghtml`\n- `https://www.gazetadopovo.com.br/vozes/fernando-jasper/tarifaco-brasil-de-lula-e-moraes-e-o-adversario-ideal-de-trump-e-o-jogo-esta-longe-de-acabar/`",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.1,
"position": [
224,
16
],
"id": "0f79abf1-0361-41bd-b531-203243792d3f",
"name": "AI Agent"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
240,
176
],
"id": "c40413a7-b54a-41bf-bbed-3f88e1fefce1",
"name": "Google Gemini Chat Model",
"credentials": {
"googlePalmApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.data }}",
"options": {
"systemMessage": "=Voc\u00ea \u00e9 o assistente de not\u00edcias e analista pol\u00edtico, \"Syan\" e sua miss\u00e3o \u00e9 enviar um resumo di\u00e1rio das principais not\u00edcias do Brasil e do mundo para uma pessoa chamada `Diego`, sempre \u00e0s 7h da manh\u00e3. Utilize as not\u00edcias coletadas via scraping dos sites de design e organize o conte\u00fado de forma clara, objetiva e din\u00e2mica, com o uso de emojis que reflitam o tema e o tom de cada not\u00edcia.\n\n**Informa\u00e7\u00f5es Detalhadas:**\n\n1. **Extra\u00e7\u00e3o e Formata\u00e7\u00e3o das Not\u00edcias:**\n * **T\u00edtulo da Not\u00edcia:** Apresente um t\u00edtulo curto, impactante e adicione emojis relacionados ao tema.\n * *Exemplos:*\n * Not\u00edcias sobre o Governo Federal (Executivo): \ud83c\udde7\ud83c\uddf7, \ud83c\udfdb\ufe0f\n * Decis\u00f5es do Congresso (Legislativo): \ud83d\udcdc, \ud83d\udde3\ufe0f\n * Julgamentos do STF (Judici\u00e1rio): \u2696\ufe0f, gavel\n * Not\u00edcias sobre elei\u00e7\u00f5es: \ud83d\uddf3\ufe0f, \ud83d\udcca\n * Impacto na economia: \ud83d\udcb0, \ud83d\udcb9, \ud83d\udcc9\n * **Descri\u00e7\u00e3o e An\u00e1lise:** Forne\u00e7a resumos e an\u00e1lises conforme a estrutura abaixo, complementando com emojis que ressaltem a ideia central (ex: \ud83d\udea8 para algo urgente, \ud83d\udccc para um ponto importante).\n * **Link:** Inclua a URL completa para a fonte original.\n\n2. **Estrutura da Mensagem:**\n * Organize cada not\u00edcia no formato detalhado no exemplo abaixo.\n * Caso haja diferentes categorias nos dados de entrada (ex: \"Executivo\", \"Legislativo\", \"Judici\u00e1rio\"), divida as not\u00edcias em se\u00e7\u00f5es para facilitar a leitura.\n * Use o n\u00famero aleat\u00f3rio gerado pelo n\u00f3 de c\u00f3digo em Javascript para variar a ordem das not\u00edcias ou selecionar emojis, garantindo dinamismo na apresenta\u00e7\u00e3o.\n\n3. **Exemplo de Sa\u00edda (Formato Obrigat\u00f3rio):**\n\n ---\n [T\u00cdTULO IMPACTANTE DA NOT\u00cdCIA COM EMOJI]\n\n \ud83d\udccc **Resumo da Not\u00edcia:**\n [Resumo breve da not\u00edcia, focando nos principais atores pol\u00edticos e nas decis\u00f5es tomadas. Use 1 ou 2 frases diretas.]\n\n \ud83e\udd14 **Por que isso \u00e9 importante?**\n [Explica\u00e7\u00e3o do impacto da not\u00edcia no cen\u00e1rio pol\u00edtico, na economia ou na vida dos cidad\u00e3os. Qual a consequ\u00eancia pr\u00e1tica do fato?]\n\n \ud83d\udde3\ufe0f **Pontos-chave:**\n \u2022 [Ponto 1 sobre a not\u00edcia, ex: o argumento principal do relator]\n \u2022 [Ponto 2 sobre a not\u00edcia, ex: a rea\u00e7\u00e3o da oposi\u00e7\u00e3o]\n \u2022 [Ponto 3 sobre a not\u00edcia, ex: o pr\u00f3ximo passo do processo]\n\n \ud83e\udde0 **Nossa An\u00e1lise:**\n [Breve coment\u00e1rio anal\u00edtico sobre o desdobramento, poss\u00edveis consequ\u00eancias futuras ou o contexto hist\u00f3rico do acontecimento.]\n\n \ud83d\udcf0 **Leia na \u00edntegra:**\n \ud83d\udd17 [Link completo da not\u00edcia]\n\n**Notas Adicionais:**\n* Envie a mensagem exatamente nesse formato, garantindo clareza e profundidade na cobertura pol\u00edtica."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.1,
"position": [
944,
16
],
"id": "ebb26ed4-24a8-460a-9abf-eae5df5b1ec6",
"name": "AI Agent1"
},
{
"parameters": {
"modelName": "models/gemini-2.0-flash",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
944,
192
],
"id": "b51825ec-7dbf-4085-b2eb-c27b6ca62a70",
"name": "Google Gemini Chat Model1",
"credentials": {
"googlePalmApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"url": "=https://r.jina.ai/{{ $('AI Agent').item.json.output }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept-Language",
"value": "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "User-Agent",
"value": "={{ $json.random_user_agent }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
752,
16
],
"id": "9a5c567e-b7a0-4eb3-9500-b0f5c2978530",
"name": "HTTP Request1"
},
{
"parameters": {
"url": "https://r.jina.ai/https://istoedinheiro.com.br/",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept-Language",
"value": "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "User-Agent",
"value": "={{ $('Code_user_desktop').item.json.random_user_agent }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-32,
352
],
"id": "0bad34b7-5c24-4a50-a404-dcd1200d2b8d",
"name": "Isto\u00e9dinheiro"
},
{
"parameters": {
"url": "https://r.jina.ai/https://www.gazetadopovo.com.br/economia/",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept-Language",
"value": "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "User-Agent",
"value": "={{ $('Code_user_desktop').item.json.random_user_agent }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-32,
-304
],
"id": "3034e7da-a33e-4578-9c5b-edc9f9fe4423",
"name": "Gazeta do povo"
},
{
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 6,
"triggerAtMinute": 5
},
{
"triggerAtHour": 18,
"triggerAtMinute": 5
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
-1072,
16
],
"id": "7cb21a66-6f85-486a-ad43-f9acfa36f23e",
"name": "Schedule Trigger"
},
{
"parameters": {
"content": "## Pegar a ultima URL sobre not\u00edcias da pol\u00edtica do portal selecionado.",
"height": 480,
"width": 688,
"color": 3
},
"type": "n8n-nodes-base.stickyNote",
"position": [
192,
-144
],
"typeVersion": 1,
"id": "fd60cd75-b943-4f7e-91fb-48f96a71a56f",
"name": "Sticky Note"
},
{
"parameters": {
"content": "## Escolhe aleat\u00f3rio o portal de not\u00edcias",
"height": 384,
"width": 368,
"color": 3
},
"type": "n8n-nodes-base.stickyNote",
"position": [
-512,
-112
],
"typeVersion": 1,
"id": "54d2ee46-5188-4200-b849-5893b281c227",
"name": "Sticky Note1"
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $('Code_switch').item.json.numero }}",
"rightValue": 1,
"operator": {
"type": "number",
"operation": "equals"
},
"id": "fd9ee341-1d81-48f2-826c-a817fd2e4b89"
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "1121b06c-0f43-4fca-858e-ffbff5c00008",
"leftValue": "={{ $('Code_switch').item.json.numero }}",
"rightValue": "2",
"operator": {
"type": "dateTime",
"operation": "equals"
}
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "a8ec3990-d71a-47e5-af07-4f41456c6ea4",
"leftValue": "={{ $('Code_switch').item.json.numero }}",
"rightValue": 3,
"operator": {
"type": "number",
"operation": "equals"
}
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "577c8bc4-62fa-4bc5-a60d-5de211394d7d",
"leftValue": "={{ $('Code_switch').item.json.numero }}",
"rightValue": 4,
"operator": {
"type": "number",
"operation": "equals"
}
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "c3fdcbd3-ff8f-4e2a-80b8-70e86182cd9e",
"leftValue": "={{ $('Code_switch').item.json.numero }}",
"rightValue": 5,
"operator": {
"type": "number",
"operation": "equals"
}
}
],
"combinator": "and"
}
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
-320,
-32
],
"id": "dcf46e25-fb99-4e66-9aa3-d7fe7fed864a",
"name": "Switch"
},
{
"parameters": {
"content": "## Portais de not\u00edcias",
"height": 880,
"color": 5
},
"type": "n8n-nodes-base.stickyNote",
"position": [
-96,
-368
],
"typeVersion": 1,
"id": "a0b157f4-fb0f-4da2-a47e-e38eaf463372",
"name": "Sticky Note2"
},
{
"parameters": {
"content": "## Resumi a not\u00edcia selecionada.",
"height": 480,
"width": 352,
"color": 4
},
"type": "n8n-nodes-base.stickyNote",
"position": [
896,
-144
],
"typeVersion": 1,
"id": "0827e010-967c-4154-90bc-5491cc56c86a",
"name": "Sticky Note3"
},
{
"parameters": {
"content": "## Gatilho agendado diariamente",
"height": 384,
"width": 400,
"color": 7
},
"type": "n8n-nodes-base.stickyNote",
"position": [
-1136,
-112
],
"typeVersion": 1,
"id": "1765b3c6-af66-4d1e-b7b9-84a9b2d53834",
"name": "Sticky Note4"
},
{
"parameters": {
"method": "POST",
"url": "http://waha-diego:3000/api/sendText",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "=chatId",
"value": "=556493174450@c.us"
},
{
"name": "=text",
"value": "={{ $json.text }}"
},
{
"name": "session",
"value": "=default"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1552,
160
],
"id": "96311e42-e6fa-4fbc-b1b1-a36b3216b094",
"name": "Send to Whatsapp WAHA"
},
{
"parameters": {
"chatId": "7006144067",
"text": "={{ $json.text }}",
"additionalFields": {
"parse_mode": "HTML"
}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1552,
-80
],
"id": "fcb4c828-81c1-44e3-a7d1-411320b7f2a6",
"name": "Send to Telegram",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"url": "https://r.jina.ai/https://www.cartacapital.com.br/",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept-Language",
"value": "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "User-Agent",
"value": "={{ $('Code_user_desktop').item.json.random_user_agent }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-32,
16
],
"id": "8c8cdf10-93f7-4411-ba43-df350a4c0d1a",
"name": "CartaCapital"
},
{
"parameters": {
"url": "https://r.jina.ai/https://www.poder360.com.br/",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept-Language",
"value": "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "User-Agent",
"value": "={{ $('Code_user_desktop').item.json.random_user_agent }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-32,
-144
],
"id": "7544ec31-2061-4914-bfd5-e5e0556cd62e",
"name": "Poder360"
},
{
"parameters": {
"jsCode": "const min = 1;\nconst max = 5;\n\nconst numeroAleatorio = Math.floor(Math.random() * (max - min + 1)) + min;\n\nreturn {\n numero: numeroAleatorio\n};"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-480,
16
],
"id": "1a009935-2101-4926-8871-fcbbef45c505",
"name": "Code_switch"
},
{
"parameters": {
"jsCode": "const userAgents = [\n// Android (Chrome em um Google Pixel)\n\"Mozilla/5.0 (Linux; Android 15; Pixel 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Mobile Safari/537.36\",\n// Android (Chrome em um Samsung Galaxy)\n\"Mozilla/5.0 (Linux; Android 15; SM-S938U1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Mobile Safari/537.36\",\n// Android (Firefox)\n\"Mozilla/5.0 (Android 15; Mobile; rv:136.0) Gecko/136.0 Firefox/136.0\",\n// iOS (Safari em um iPhone)\n\"Mozilla/5.0 (iPhone; CPU iPhone OS 19_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/19.0 Mobile/15E148 Safari/604.1\"\n];\nconst randomIndex = Math.floor(Math.random() * userAgents.length);\nconst randomUserAgent = userAgents[randomIndex];\n\n// Retorna o User-Agent para ser usado no pr\u00f3ximo n\u00f3\nreturn { 'random_user_agent': randomUserAgent };"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
576,
16
],
"id": "7a52fc87-6899-4eca-aa5c-ed942b0b0663",
"name": "Code_user_mobile"
},
{
"parameters": {
"jsCode": "const userAgents = [\n \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36\",\n \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0\",\n \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0\",\n \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36\",\n \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15\",\n \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36\"\n];\nconst randomIndex = Math.floor(Math.random() * userAgents.length);\nconst randomUserAgent = userAgents[randomIndex];\n\n// Retorna o User-Agent para ser usado no pr\u00f3ximo n\u00f3\nreturn { 'random_user_agent': randomUserAgent };"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-672,
16
],
"id": "6ff26a5f-cdb9-4dc9-a559-020220b0c949",
"name": "Code_user_desktop",
"alwaysOutputData": true
},
{
"parameters": {
"content": "## Enviar para WhatsApp",
"height": 240,
"width": 288,
"color": 2
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1472,
96
],
"id": "31fb4267-1f9a-434b-af31-17f290af65ea",
"name": "Sticky Note5"
},
{
"parameters": {
"content": "## Enviar para a Telegram",
"height": 224,
"width": 288,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1472,
-144
],
"id": "332e604a-ee64-41dc-a367-3d8c0c94fa33",
"name": "Sticky Note6"
},
{
"parameters": {
"content": "## Criar User_agent aleat\u00f3rio",
"height": 384,
"width": 192
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-720,
-112
],
"id": "e0a94d4a-acbb-4e14-9262-31da99c040fa",
"name": "Sticky Note7"
},
{
"parameters": {
"content": "## Dividi mensagens longas.",
"height": 480,
"width": 192,
"color": 3
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1264,
-144
],
"id": "bd352d1f-32c3-4fba-8f81-57e65918f72a",
"name": "Sticky Note8"
},
{
"parameters": {
"jsCode": "const text = $input.item.json.output;\nconst limit = 4096;\nconst messages = [];\n\n// Adiciona o texto de introdu\u00e7\u00e3o na primeira mensagem\nlet initialText = \"Ol\u00e1 Diego, aqui est\u00e1 seu resumo di\u00e1rio de not\u00edcias. Bye! Falou! \ud83d\udc4b\\n---\\n\";\nlet remainingText = text;\n\n// Calcula o espa\u00e7o restante para a primeira mensagem\nlet firstChunkLimit = limit - initialText.length;\nmessages.push({\n json: {\n text: initialText + remainingText.substring(0, firstChunkLimit)\n }\n});\nremainingText = remainingText.substring(firstChunkLimit);\n\n// Divide o resto do texto em mais mensagens, se necess\u00e1rio\nwhile (remainingText.length > 0) {\n const chunk = remainingText.substring(0, limit);\n messages.push({\n json: {\n text: chunk\n }\n });\n remainingText = remainingText.substring(limit);\n}\n\nreturn messages;"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1296,
16
],
"id": "c22de2fb-cccb-47e4-a99d-17babd5a5c62",
"name": "Code_factory"
},
{
"parameters": {
"url": "https://r.jina.ai/https://revistaoeste.com/politica/",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept-Language",
"value": "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "User-Agent",
"value": "={{ $('Code_user_desktop').item.json.random_user_agent }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-32,
192
],
"id": "bf03cecd-623d-48f0-ad63-c5e30e2e11b4",
"name": "RevistaOeste"
},
{
"parameters": {
"jsCode": "// Fun\u00e7\u00e3o que cria uma pausa (em milissegundos)\nconst sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));\n// Simular um acesso totalmente aleat\u00f3rio ao site.\n\n// Gera um n\u00famero aleat\u00f3rio de milissegundos entre 0 e 180.000 (3 minutos)\nconst randomDelayInMs = Math.floor(Math.random() * 180001);\n\n// Log para voc\u00ea saber quanto tempo esperou (opcional)\nconsole.log(`Aguardando por ${Math.round(randomDelayInMs / 1000)} segundos...`);\n\n// Pausa a execu\u00e7\u00e3o pelo tempo sorteado\nawait sleep(randomDelayInMs);\n\n// Retorna um objeto para o pr\u00f3ximo n\u00f3 poder continuar\nreturn {};"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-896,
16
],
"id": "b5b05031-8cc0-421b-adbe-c9c953addced",
"name": "Code_wait_start"
}
],
"connections": {
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Code_user_mobile",
"type": "main",
"index": 0
}
]
]
},
"AI Agent1": {
"main": [
[
{
"node": "Code_factory",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
]
]
},
"Isto\u00e9dinheiro": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Gazeta do povo": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Code_wait_start",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Gazeta do povo",
"type": "main",
"index": 0
}
],
[
{
"node": "Poder360",
"type": "main",
"index": 0
}
],
[
{
"node": "CartaCapital",
"type": "main",
"index": 0
}
],
[
{
"node": "RevistaOeste",
"type": "main",
"index": 0
}
],
[
{
"node": "Isto\u00e9dinheiro",
"type": "main",
"index": 0
}
]
]
},
"CartaCapital": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Poder360": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Code_switch": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Code_user_mobile": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"Code_user_desktop": {
"main": [
[
{
"node": "Code_switch",
"type": "main",
"index": 0
}
]
]
},
"Code_factory": {
"main": [
[
{
"node": "Send to Whatsapp WAHA",
"type": "main",
"index": 0
},
{
"node": "Send to Telegram",
"type": "main",
"index": 0
}
]
]
},
"RevistaOeste": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Code_wait_start": {
"main": [
[
{
"node": "Code_user_desktop",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"timezone": "America/Sao_Paulo",
"callerPolicy": "workflowsFromSameOwner"
},
"versionId": "a76e7cce-d136-460c-920d-a132a2d4e19b",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "r3BE1te4iav8FRSd",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
googlePalmApitelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Periodico_rag_noticias. Uses agent, lmChatGoogleGemini, httpRequest, telegram. Scheduled trigger; 28 nodes.
Source: https://github.com/ds-borges/ai-agent-roadmap/blob/fd7c415d8e7d3279228db9bdcbd8ab1016039eb7/Web_Scrapping/Newsletter_agent.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Author: Nguyen Thieu Toan Category: Community & Knowledge Automation Tags: Telegram, Reddit, n8n Forum, AI Summarization, Gemini, Groq
This workflow is for beauty salons who want consistent, high‑quality social media content without writing every post manually. It also suits agencies and automation builders who manage multiple beauty
The SOL/USDT Multi-Timeframe AI Market Analyzer and Trader with Telegram Approval is your fully automated Solana trading assistant powered by AI, AFK Crypto, and Telegram.
Who Is This For?
This workflow automates the creation of a daily sports podcast from your favorite news sources. It fetches articles, uses AI to write a digest and a two-person dialogue, and produces a single, merged