8
n8n 中文网amn8n.com

AI最新24小时更新

中级

这是一个Miscellaneous, AI Summarization, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 Html, Gmail, Perplexity, ScheduleTrigger 等节点。 使用Perplexity AI和Gmail自动化的每日AI新闻摘要

前置要求
  • Google 账号和 Gmail API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "NMgxhyjjjGgOGdTE",
  "meta": {
    "instanceId": "3caab7a077d6a24bf913833250143556c3033c05ff2ea30885e13d0164c0cec2",
    "templateCredsSetupCompleted": true
  },
  "name": "AI最新24小时更新",
  "tags": [],
  "nodes": [
    {
      "id": "b2ccab91-022a-4f4a-aea6-52aa17cfc1f3",
      "name": "由 Github 模型提供支持",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -80,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 10
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3703b88f-e3b2-4d44-b270-a2e4225fe21a",
      "name": "向模型发送消息",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        240,
        0
      ],
      "parameters": {
        "model": "sonar-pro",
        "options": {},
        "messages": {
          "message": [
            {
              "role": "system",
              "content": "You are a cutting-edge AI news and Tech news\n\nEvery time you run, you must:\n\n1. Search for and retrieve the most recent developments in Artificial Intelligence published within the last 24 hours.\n\n2. Ensure all data is accurate, fresh, and from trusted sources.\n\nFor each AI news item:\n- Include the full headline.\n- Provide a one-sentence summary explaining the development.\n- Include the full URL (no shortened links or footnote markers).\n\n\n\n**IMPORTANT OUTPUT REQUIREMENTS:**\n- Return the response as a single self-contained HTML document with inline CSS styling, suitable for sending as an email.\n- Style headlines in bold, summaries in normal text, and links as clickable.\n- Use light background color for the email body and card-style boxes for each news item.\n\n**HTML Output Structure:**\n<html>\n  <head>\n    <style>\n      body { \n        font-family: 'Segoe UI', Arial, sans-serif; \n        background-color: #f4f6f9; \n        margin: 0; \n        padding: 20px; \n        color: #333;\n      }\n      h2 { \n        color: #2c3e50; \n        border-bottom: 2px solid #007bff; \n        padding-bottom: 8px; \n        margin-bottom: 20px;\n      }\n      .card { \n        background: #ffffff; \n        padding: 20px; \n        margin-bottom: 20px; \n        border-radius: 12px; \n        box-shadow: 0 4px 10px rgba(0,0,0,0.08); \n        transition: transform 0.2s ease-in-out;\n      }\n      .card:hover {\n        transform: translateY(-3px);\n      }\n      .card h3 { \n        margin-top: 0; \n        color: #007bff; \n        font-size: 18px;\n      }\n      .card p { \n        line-height: 1.6; \n        font-size: 14px;\n      }\n      .footer {\n        text-align: center;\n        margin-top: 30px;\n        font-size: 12px;\n        color: #888;\n      }\n    </style>\n  </head>\n  <body>\n    <h2>🧠 Latest AI News (Past 24 Hours)</h2>\n    <!-- Example News Item -->\n    <div class=\"card\">\n      <h3>Headline Example</h3>\n      <p><strong>Summary:</strong> This is a 4–5 line detailed summary of the AI news update. It provides clear context, insights, and relevance for the reader, written in a concise but engaging way to highlight the latest developments.</p>\n      <p><a href=\"FULL_URL\">🔗 Read more</a></p>\n    </div>\n  </body>\n</html>\n"
            },
            {
              "content": "what are the latest headline in ai development in the 24 hours?\ninclude any model launches or market news."
            }
          ]
        },
        "simplify": true,
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "ldxp3g6atwBuUxxJ",
          "name": "Perplexity account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "911914a8-c51d-4baf-b777-33052415108e",
      "name": "发送消息",
      "type": "n8n-nodes-base.gmail",
      "position": [
        624,
        -64
      ],
      "webhookId": "ba37f1fd-a666-4d58-a0f0-13ce6ba9498e",
      "parameters": {
        "sendTo": "xyz@gmail.com",
        "message": "={{ $json.message }}",
        "options": {},
        "subject": "Latest Tech and AI news update 🚀"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "zystIXitEOECXALa",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "b8d259f9-030a-4bb1-9d35-08cc8ce3aa90",
      "name": "生成新闻预览",
      "type": "n8n-nodes-base.html",
      "position": [
        624,
        432
      ],
      "parameters": {
        "html": "{{ $json.message }}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "587c682c-00b9-4125-94fd-aaf87bb8609c",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -416
      ],
      "parameters": {
        "height": 560,
        "content": "### **1. 计划触发器**"
      },
      "typeVersion": 1
    },
    {
      "id": "86f03734-8291-41d7-9f5d-06dbbe779f74",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        -416
      ],
      "parameters": {
        "color": 3,
        "width": 400,
        "height": 560,
        "content": "### **2. 消息模型(Perplexity API)**"
      },
      "typeVersion": 1
    },
    {
      "id": "e5d11515-3484-42b3-9e1d-33f41aeba9e3",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        -416
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 512,
        "content": "### **3. 发送消息(Gmail)**"
      },
      "typeVersion": 1
    },
    {
      "id": "0c273c05-2445-47fc-9f03-7465f97f99b2",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        112
      ],
      "parameters": {
        "color": 6,
        "width": 320,
        "height": 480,
        "content": "### **4. HTML节点**"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ef7f4a79-3e2c-41ff-b8ef-f2a10f87e206",
  "connections": {
    "Message a model": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 杂项, AI 摘要总结, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量8
分类3
节点类型5
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Yashraj singh sisodiya

Yashraj singh sisodiya

@theyashsisodiya

an AI automation enthusiast.

外部链接
在 n8n.io 查看

分享此工作流