8
n8n 中文网amn8n.com

智能文章摘要器与邮件广播系统

中级

这是一个Social Media, AI Summarization领域的自动化工作流,包含 7 个节点。主要使用 Set, Cron, OpenAi, EmailSend, HttpRequest 等节点。 WordPress文章摘要生成,集成GPT-4并通过Google Sheets进行邮件广播

前置要求
  • OpenAI API Key
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移

无法加载工作流预览

导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "name": "智能文章摘要器与邮件广播系统",
  "nodes": [
    {
      "name": "计划触发器",
      "type": "n8n-nodes-base.cron",
      "position": [
        200,
        300
      ],
      "parameters": {
        "cronExpression": "0 9 * * *"
      },
      "typeVersion": 1
    },
    {
      "name": "获取最新文章",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        300
      ],
      "parameters": {
        "url": "https://yourwordpresssite.com/wp-json/wp/v2/posts?per_page=1",
        "responseFormat": "json"
      },
      "typeVersion": 1
    },
    {
      "name": "设置文章详情",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        300
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "title",
              "value": "={{$json[0].title.rendered}}"
            },
            {
              "name": "content",
              "value": "={{$json[0].content.rendered}}"
            },
            {
              "name": "link",
              "value": "={{$json[0].link}}"
            }
          ]
        },
        "keepOnlySet": true
      },
      "typeVersion": 2
    },
    {
      "name": "使用OpenAI生成摘要",
      "type": "n8n-nodes-base.openAi",
      "position": [
        800,
        300
      ],
      "parameters": {
        "model": "gpt-4",
        "prompt": "Summarize this blog post in 3 key points:\n\n{{$json[\"content\"]}}"
      },
      "credentials": {
        "openAiApi": "YOUR_OPENAI_CREDENTIAL"
      },
      "typeVersion": 1
    },
    {
      "name": "获取订阅者列表",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1000,
        200
      ],
      "parameters": {
        "range": "Sheet1!A:A",
        "sheetId": "YOUR_SHEET_ID"
      },
      "credentials": {
        "googleSheetsOAuth2Api": "YOUR_GOOGLE_SHEETS_CREDENTIAL"
      },
      "typeVersion": 3
    },
    {
      "name": "批量分割",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1200,
        200
      ],
      "parameters": {
        "batchSize": 1
      },
      "typeVersion": 1
    },
    {
      "name": "发送邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1400,
        200
      ],
      "parameters": {
        "text": "Here’s a summary of the latest article:\n\n{{$node[\"Summarize with OpenAI\"].json[\"text\"]}}\n\nRead full post: {{$node[\"Set Article Details\"].json[\"link\"]}}",
        "subject": "New Summary: {{$node[\"Set Article Details\"].json[\"title\"]}}",
        "toEmail": "={{$json[\"Email\"]}}",
        "fromEmail": "you@example.com"
      },
      "credentials": {
        "smtp": "YOUR_EMAIL_CREDENTIAL"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "SplitInBatches": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Subscribers": {
      "main": [
        [
          {
            "node": "SplitInBatches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch Latest Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Latest Post": {
      "main": [
        [
          {
            "node": "Set Article Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Article Details": {
      "main": [
        [
          {
            "node": "Summarize with OpenAI",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Subscribers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 社交媒体, AI 摘要总结

需要付费吗?

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

工作流信息
难度等级
中级
节点数量7
分类2
节点类型7
难度说明

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

作者
Abbas Ali

Abbas Ali

@abbas12142

Automation Engineer passionate about building smart, scalable workflows with n8n. I specialize in API integrations, webhook handling, and streamlining business tasks using low-code tools. From AI-powered bots to real-time data pipelines, I love solving problems with automation. Let’s turn manual processes into efficient systems!

外部链接
在 n8n.io 查看

分享此工作流