Claude销售增长营收AI 评分 · 待评分AI 辅助编辑·未发现明显提示词注入风险Web

每周用 Claude 把抓取新闻收成 HTML 简报邮件

每周精选五条去重后的热门新闻,生成一份干净的 HTML 简报邮件。

有一点经验步骤提示词流程
给谁
行业简报编辑
你会得到
一封周刊 HTML 邮件
你需要
n8n + Claude + Bright Data + Gmail

硬约束

每周一调度触发;Bright Data 抓取 Google News 前五条去重后新闻,获取 Markdown 全文并清洗广告与导航;Claude 生成 HTML 简报;Gmail 发送。硬约束:先发给自己审阅 HTML 与链接;确认收件人已明确 opt-in;遵守被抓取网站的 robots.txt 与服务条款;启用前先用单篇文章和单个收件人做 Smoke-test。

他们做了什么

该模板由 toolmonsters 发布,是一个 n8n 工作流。它每周一通过 Bright Data 抓取指定主题的 Google News 搜索结果页,自动过滤 YouTube 链接、按标题去重后保留前五条新闻。随后工作流逐条抓取这五篇文章的完整 Markdown 正文,并清理导航、广告、图片和多余链接。汇总后的内容交由 Anthropic Claude 生成一封整洁的 HTML 简报,最后通过 Gmail 发送给配置的收件人。

效果如何

来源提供了完整模板配置,但没有实际送达率、打开率或节省时间数据。本站本次核对了节点与连线,未实际执行;清洗截断可能遗漏正文,需按步骤检查。

值得知道

首次运行务必先发送给自己,检查 HTML、链接和语气无误后再扩展至订阅列表。收件人必须明确同意接收,未经许可的群发邮件会违反服务商条款与反垃圾邮件法规。抓取新闻网站可能与其服务条款或 robots.txt 冲突,且不应绕过付费墙获取内容。由于 Claude 可能对原文进行误读或截断,发布前必须经人工审核。

步骤

  1. 导入原始模板并保持停用

    使用来源页的 Use for free 导入模板 16675,保留全部节点、两段 Code 脚本和连线。模板包含 @brightdata/n8n-nodes-brightdata 社区节点;如实例不能识别该节点,先解决节点安装与兼容性,再继续。本文未实机验证,不把导入成功当作运行成功。

  2. 配置三类凭据

    在两个 Bright Data 节点选择自己的 Bright Data 凭据和可用 Web Unlocker zone(模板为 n8n_unlocker)。在 Compose Newsletter with Claude 选择 Anthropic API 凭据和账户实际可用的 Claude 模型;模板预选值不能代表你的账户可用。为 Gmail 节点绑定 Gmail OAuth2 凭据。

  3. 设置查询和每周调度

    Extract Google News 的 URL 为 https://www.google.com/search?q=AI+automation&tbm=nws&gl=us&hl=en&brd_json=1。修改 q、gl、hl 和 country 以匹配主题与地区,保留新闻及 JSON 返回参数。When Week Starts 默认每周一;按需要调整周期并检查实例时区,先不要启用定时运行。

  4. 确认筛选与循环

    Select Top 5 News Stories 读取输入 news 数组,排除 youtube.com/youtu.be,要求 title 和 link,按标题精确去重后取前五条。Loop Over News Stories 的循环分支连接 Fetch Article Content,完成分支连接 Compile All Articles;不要交换这两个分支。

  5. 抓取并检查清洗结果

    Fetch Article Content 使用 ={{ $json.link }},返回格式为 markdown。Sanitize Article Content 保留末尾 H1 段、移除 Markdown 链接和图片,仅保留长度大于 50 字符的行,并截取前 2500 字符;输出 title/link/source/content 后返回循环节点。此算法可能丢掉正文,检查每篇 content,空白或缺关键内容时停止,不能直接发出。

  6. 汇总并配置原始写作指令

    Compile All Articles 使用 aggregateAllItemData 汇总为 data。Claude 节点的 system 和 messages 分别保留下面两段原始指令与表达式;它根据每篇 title/link/source/content 生成 HTML,并要求每篇两三句摘要与 Read more 链接。

    运行提示词 · 来源原文。options.system

    =You are a newsletter editor. You write concise, engaging newsletters from industry news articles.
    
    For each article you receive, write:
    - A bold headline (use the article title)
    - Two or three sentences summarizing the key points IN YOUR OWN WORDS, based on the article content provided
    - A "Read more" link using the article's link
    
    Format the whole thing as clean HTML ready to drop into an email: <h2> for the newsletter title at the top, <h3> for each headline, <p> for summaries, <a> for the links. Start with a short one-sentence intro before the first story.
    
    Output ONLY the HTML. No markdown code fences, no preamble, no explanation.

    运行提示词 · 来源原文。messages.values[0].content

    =Here are today's top 5 industry news articles. Write the newsletter.
    
    {{ JSON.stringify($json.data.map(a => ({ title: a.title, link: a.link, source: a.source, content: a.content }))) }}
  7. 先发给自己并人工验收

    Email Newsletter via Gmail 的 sendTo 替换为自己的测试邮箱,subject 模板值为 Your AI Industry Brief,message 保留 ={{ $json.content[0].text }}。编辑验收建议:先手动执行,逐节点检查返回结构、五篇内容、HTML 和链接;确认 Gmail 正文按 HTML 显示,再考虑已同意订阅的收件人及启用周一调度。原模板没有人工审批节点。

可复制提示词

运行提示词 · 来源原文。Compose Newsletter with Claude → options.system

这一段是提示词,页面不会在这里插入广告。

=You are a newsletter editor. You write concise, engaging newsletters from industry news articles.

For each article you receive, write:
- A bold headline (use the article title)
- Two or three sentences summarizing the key points IN YOUR OWN WORDS, based on the article content provided
- A "Read more" link using the article's link

Format the whole thing as clean HTML ready to drop into an email: <h2> for the newsletter title at the top, <h3> for each headline, <p> for summaries, <a> for the links. Start with a short one-sentence intro before the first story.

Output ONLY the HTML. No markdown code fences, no preamble, no explanation.

原模板 system 字段,保留开头的 =;用户消息见第六步。

来源

Send weekly curated news newsletters with Bright Data, Claude, and Gmail | n8n · n8n · Web · 2026-10-19

留言与反馈

试过这个方法吗?分享效果、遇到的问题或改进建议。留言审核后公开,请勿填写敏感信息。

正在加载…

    相关用例