Résumé de nouvelles

Avancé

Ceci est unAI Summarization, Multimodal AIworkflow d'automatisation du domainecontenant 21 nœuds.Utilise principalement des nœuds comme ZaloUser, N8nTrigger, Set, Limit, Merge. Résumé d'actualités quotidiennes avec OpenAI et Perplexity AI, envoyé via Zalo et Telegram

Prérequis
  • Token Bot Telegram
  • Clé API OpenAI
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "lsU5Gl4n2A1ubHRO",
  "meta": {
    "instanceId": "eb2e35a6e4ba3ff63ef980c031da61d993b4f2faa0ccc19283b4ab43f9ca13e6",
    "templateCredsSetupCompleted": true
  },
  "name": "News Sum",
  "tags": [],
  "nodes": [
    {
      "id": "680fa1a7-aa28-4b7f-88bb-179a0336d55a",
      "name": "Filtre",
      "type": "n8n-nodes-base.filter",
      "position": [
        -40,
        2300
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "30d4f694-9378-42b4-b1d5-cbc38fb3e7fe",
              "operator": {
                "type": "dateTime",
                "operation": "after"
              },
              "leftValue": "={{ $json.pubDate }}",
              "rightValue": "={{ $today.minus({ days: 1 }) }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "60cbd601-be37-4c18-b227-1dbd124d714a",
      "name": "Éditer les champs",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        2220
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
              "name": "title",
              "type": "string",
              "value": "={{ $json.title }}"
            },
            {
              "id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
              "name": "pubDate",
              "type": "string",
              "value": "={{ $json.pubDate }}"
            },
            {
              "id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
              "name": "conteudo",
              "type": "string",
              "value": "={{ $json['content:encoded'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "8e6b3ec4-1217-499b-9328-574426e7b53b",
      "name": "Éditer les champs1",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        2420
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
              "name": "title",
              "type": "string",
              "value": "={{ $json.title }}"
            },
            {
              "id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
              "name": "pubDate",
              "type": "string",
              "value": "={{ $json.pubDate }}"
            },
            {
              "id": "bae1b890-716b-442c-8714-b4ece09063d7",
              "name": "conteudo",
              "type": "string",
              "value": "={{ $json.contentSnippet }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "ddba353c-401a-4c5b-81bc-7447bdf9ba21",
      "name": "Éditer les champs2",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        2620
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
              "name": "title",
              "type": "string",
              "value": "={{ $json.title }}"
            },
            {
              "id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
              "name": "pubDate",
              "type": "string",
              "value": "={{ $json.pubDate }}"
            },
            {
              "id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
              "name": "conteudo",
              "type": "string",
              "value": "={{ $json.contentSnippet }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "2a7aa8d0-3dae-41c9-a0a0-11b4ea3611e1",
      "name": "Éditer les champs3",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        1980
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e2ffe594-180d-4e1d-b869-8056ac67015d",
              "name": "title",
              "type": "string",
              "value": "={{ $json.title }}"
            },
            {
              "id": "87c5a171-9ab9-4043-a72a-32aec218fe63",
              "name": "pubDate",
              "type": "string",
              "value": "={{ $json.pubDate }}"
            },
            {
              "id": "978b05c9-6e6b-4a18-bc06-4de785b19413",
              "name": "conteudo",
              "type": "string",
              "value": "={{ $json.content }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "49912d81-488a-409a-9767-f4cc639fa39a",
      "name": "Fusionner",
      "type": "n8n-nodes-base.merge",
      "position": [
        -240,
        2280
      ],
      "parameters": {
        "numberInputs": 4
      },
      "typeVersion": 3.1
    },
    {
      "id": "48c5ee9e-8d9a-4cff-8e81-cb6276d6d3f7",
      "name": "Limite",
      "type": "n8n-nodes-base.limit",
      "position": [
        180,
        2300
      ],
      "parameters": {
        "maxItems": 20
      },
      "typeVersion": 1
    },
    {
      "id": "60dd06a8-adb7-44a0-84c5-60dfbff6a709",
      "name": "Agréger",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        360,
        2300
      ],
      "parameters": {
        "include": "specifiedFields",
        "options": {},
        "aggregate": "aggregateAllItemData",
        "fieldsToInclude": "title, pubDate, conteudo"
      },
      "typeVersion": 1
    },
    {
      "id": "f19c5e7b-f86e-4fcb-aa16-24769969d8dc",
      "name": "Déclencheur planifié",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1100,
        2300
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2b8f7f73-535f-4612-8a98-c9d4d30ce82f",
      "name": "Note autocollante",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        2460
      ],
      "parameters": {
        "content": "## About Limit\nlimits the analysis to the 20 most recent articles"
      },
      "typeVersion": 1
    },
    {
      "id": "d886ef81-bfc9-4d7d-ba51-ee73a7be73ee",
      "name": "Mon RSS 01",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        1980
      ],
      "parameters": {
        "url": "https://rss.app/feeds/txgQZnXzgMDnuhVX.xml",
        "options": {
          "ignoreSSL": false
        }
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "4179ded2-4d6d-4023-8edc-042fa2a5ab48",
      "name": "Mon RSS 02",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        2220
      ],
      "parameters": {
        "url": "https://rss.app/feeds/tcEnk7rveNrAqN6Y.xml",
        "options": {}
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "e4868740-d6b3-4880-a003-c3952a0bc7d1",
      "name": "Mon RSS 03",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        2420
      ],
      "parameters": {
        "url": "https://news.google.com/rss/search?q=kinh+tế&hl=vi&gl=VN&ceid=VN:vi",
        "options": {}
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "59a2e7b9-eac7-41e3-a76d-8a976fbc2964",
      "name": "Mon RSS 04",
      "type": "n8n-nodes-base.rssFeedRead",
      "onError": "continueRegularOutput",
      "position": [
        -680,
        2620
      ],
      "parameters": {
        "url": "https://rss.app/feeds/tqLgD0PBHuJhlfLA.xml",
        "options": {
          "ignoreSSL": true
        }
      },
      "typeVersion": 1.1,
      "alwaysOutputData": true
    },
    {
      "id": "c1c0e3d2-3ba3-4821-919e-809c27e5ef24",
      "name": "Message an assistant",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        560,
        2300
      ],
      "parameters": {
        "text": "=I've received news articles via RSS. Please analyze them and provide a concise 400 words summary of the top 15 to 19 main highlights. My goal is to get a quick overview of what's most relevant in these articles. Translate to vietnamese, remove '*'\n1.{{ $json.data[0].title }}{{ $json.data[0].conteudo }}\n2.{{ $json.data[1].title }}{{ $json.data[1].conteudo }}\n3.{{ $json.data[2].title }}{{ $json.data[2].conteudo }}\n4.{{ $json.data[3].title }}{{ $json.data[3].conteudo }}\n5.{{ $json.data[4].title }}{{ $json.data[4].conteudo }}\n6.{{ $json.data[5].title }}{{ $json.data[5].conteudo }}\n7.{{ $json.data[6].title }}{{ $json.data[6].conteudo }}\n8.{{ $json.data[7].title }}{{ $json.data[7].conteudo }}\n9.{{ $json.data[8].title }}{{ $json.data[8].conteudo }}\n10.{{ $json.data[9].title }}{{ $json.data[9].conteudo }}\n11.{{ $json.data[10].title }}{{ $json.data[10].conteudo }}\n12.{{ $json.data[11].title }}{{ $json.data[11].conteudo }}\n13.{{ $json.data[12].title }}{{ $json.data[12].conteudo }}\n",
        "prompt": "define",
        "options": {},
        "resource": "assistant",
        "assistantId": {
          "__rl": true,
          "mode": "list",
          "value": "asst_fJUOGvgGLIi3rMs4rkQ3Wyhw",
          "cachedResultName": "News Sum"
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "7kz46LiiQlJ8S4vd",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "7c70426f-9fe0-497d-93e0-ba8622fbeb1b",
      "name": "Zalo Trigger",
      "type": "CUSTOM.n8nTrigger",
      "position": [
        -1060,
        2100
      ],
      "webhookId": "308fa188-ef3b-4a83-b4a2-61103c02e477",
      "parameters": {
        "eventTypes": [
          1
        ]
      },
      "credentials": {
        "zaloUserOAuth2Api": {
          "id": "3SgTcNnk1Qz8b3OE",
          "name": "Zalo User account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c0cc0e60-1c96-4660-a860-33a4728d2123",
      "name": "Gửi tin nhắn cá nhân & nhóm1",
      "type": "CUSTOM.ZaloUser",
      "position": [
        1020,
        2300
      ],
      "parameters": {
        "resource": "otherActions",
        "messenger_quote": {},
        "messenger_content": "={{ $json.output }}",
        "messenger_friend_id": "=5689866405750973941",
        "messenger_group_type": 1
      },
      "credentials": {
        "zaloUserOAuth2Api": {
          "id": "3SgTcNnk1Qz8b3OE",
          "name": "Zalo User account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "80a5dfab-4491-4154-830d-0cd2b88c860d",
      "name": "Message a model in Perplexity1",
      "type": "n8n-nodes-base.perplexityTool",
      "position": [
        560,
        2540
      ],
      "parameters": {
        "model": "sonar-reasoning",
        "options": {},
        "messages": {
          "message": [
            {
              "content": "\"Bạn là một nhà báo tài chính, kinh tế, chính trị chuyên sâu, hãy viết bản tin kinh tế tổng hợp 400 chữ.\""
            }
          ]
        },
        "simplify": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify_Output', ``, 'boolean') }}",
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "0Dh19D8wjnb9WNfy",
          "name": "Perplexity account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6655f305-5ca1-49ba-aa6f-4e7b5ef53c28",
      "name": "Simple Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        720,
        2520
      ],
      "parameters": {
        "sessionKey": "data",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "a3d5fa20-52a3-4d78-b4ff-b4de5f9c6824",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1100,
        2500
      ],
      "webhookId": "e45b625d-ec2c-4a7c-aa98-217881b2e017",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "LdwJ13TjT1oJsgCd",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a7cc9671-9fdb-43c5-9df1-bb2bd7ac66b6",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1020,
        2500
      ],
      "webhookId": "bc039d14-5deb-4b45-aa70-25e31745f137",
      "parameters": {
        "text": "={{ $json.output }}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "LdwJ13TjT1oJsgCd",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1b2c6800-4379-4de6-b105-59841a4cc6c7",
  "connections": {
    "48c5ee9e-8d9a-4cff-8e81-cb6276d6d3f7": {
      "main": [
        [
          {
            "node": "60dd06a8-adb7-44a0-84c5-60dfbff6a709",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "49912d81-488a-409a-9767-f4cc639fa39a": {
      "main": [
        [
          {
            "node": "680fa1a7-aa28-4b7f-88bb-179a0336d55a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "680fa1a7-aa28-4b7f-88bb-179a0336d55a": {
      "main": [
        [
          {
            "node": "48c5ee9e-8d9a-4cff-8e81-cb6276d6d3f7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "60dd06a8-adb7-44a0-84c5-60dfbff6a709": {
      "main": [
        [
          {
            "node": "c1c0e3d2-3ba3-4821-919e-809c27e5ef24",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d886ef81-bfc9-4d7d-ba51-ee73a7be73ee": {
      "main": [
        [
          {
            "node": "2a7aa8d0-3dae-41c9-a0a0-11b4ea3611e1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4179ded2-4d6d-4023-8edc-042fa2a5ab48": {
      "main": [
        [
          {
            "node": "60cbd601-be37-4c18-b227-1dbd124d714a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e4868740-d6b3-4880-a003-c3952a0bc7d1": {
      "main": [
        [
          {
            "node": "8e6b3ec4-1217-499b-9328-574426e7b53b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "59a2e7b9-eac7-41e3-a76d-8a976fbc2964": {
      "main": [
        [
          {
            "node": "ddba353c-401a-4c5b-81bc-7447bdf9ba21",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "60cbd601-be37-4c18-b227-1dbd124d714a": {
      "main": [
        [
          {
            "node": "49912d81-488a-409a-9767-f4cc639fa39a",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "8e6b3ec4-1217-499b-9328-574426e7b53b": {
      "main": [
        [
          {
            "node": "49912d81-488a-409a-9767-f4cc639fa39a",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "ddba353c-401a-4c5b-81bc-7447bdf9ba21": {
      "main": [
        [
          {
            "node": "49912d81-488a-409a-9767-f4cc639fa39a",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "2a7aa8d0-3dae-41c9-a0a0-11b4ea3611e1": {
      "main": [
        [
          {
            "node": "49912d81-488a-409a-9767-f4cc639fa39a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7c70426f-9fe0-497d-93e0-ba8622fbeb1b": {
      "main": [
        [
          {
            "node": "d886ef81-bfc9-4d7d-ba51-ee73a7be73ee",
            "type": "main",
            "index": 0
          },
          {
            "node": "4179ded2-4d6d-4023-8edc-042fa2a5ab48",
            "type": "main",
            "index": 0
          },
          {
            "node": "e4868740-d6b3-4880-a003-c3952a0bc7d1",
            "type": "main",
            "index": 0
          },
          {
            "node": "59a2e7b9-eac7-41e3-a76d-8a976fbc2964",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6655f305-5ca1-49ba-aa6f-4e7b5ef53c28": {
      "ai_memory": [
        [
          {
            "node": "c1c0e3d2-3ba3-4821-919e-809c27e5ef24",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "f19c5e7b-f86e-4fcb-aa16-24769969d8dc": {
      "main": [
        [
          {
            "node": "d886ef81-bfc9-4d7d-ba51-ee73a7be73ee",
            "type": "main",
            "index": 0
          },
          {
            "node": "4179ded2-4d6d-4023-8edc-042fa2a5ab48",
            "type": "main",
            "index": 0
          },
          {
            "node": "e4868740-d6b3-4880-a003-c3952a0bc7d1",
            "type": "main",
            "index": 0
          },
          {
            "node": "59a2e7b9-eac7-41e3-a76d-8a976fbc2964",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a3d5fa20-52a3-4d78-b4ff-b4de5f9c6824": {
      "main": [
        [
          {
            "node": "d886ef81-bfc9-4d7d-ba51-ee73a7be73ee",
            "type": "main",
            "index": 0
          },
          {
            "node": "4179ded2-4d6d-4023-8edc-042fa2a5ab48",
            "type": "main",
            "index": 0
          },
          {
            "node": "e4868740-d6b3-4880-a003-c3952a0bc7d1",
            "type": "main",
            "index": 0
          },
          {
            "node": "59a2e7b9-eac7-41e3-a76d-8a976fbc2964",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a7cc9671-9fdb-43c5-9df1-bb2bd7ac66b6": {
      "main": [
        []
      ]
    },
    "c1c0e3d2-3ba3-4821-919e-809c27e5ef24": {
      "main": [
        [
          {
            "node": "c0cc0e60-1c96-4660-a860-33a4728d2123",
            "type": "main",
            "index": 0
          },
          {
            "node": "a7cc9671-9fdb-43c5-9df1-bb2bd7ac66b6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "80a5dfab-4491-4154-830d-0cd2b88c860d": {
      "ai_tool": [
        [
          {
            "node": "c1c0e3d2-3ba3-4821-919e-809c27e5ef24",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Avancé - Résumé IA, IA Multimodale

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Avancé
Nombre de nœuds21
Catégorie2
Types de nœuds15
Description de la difficulté

Adapté aux utilisateurs avancés, avec des workflows complexes contenant 16+ nœuds

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34