Personalized Hacker News Diges
🦸

Personalized Hacker News Diges

Tags
AI Agent
n8n
Author
💡
搭建ai agent实现定期从hacker news抓取感兴趣的新闻,整理成简报格式,自动发送到邮箱
本地部署n8n
notion image
notion image
notion image
 
💡
什么是RSS: RSS 是 Really Simple Syndication(简易信息聚合)的缩写,是一种基于 XML 的标准格式,用于描述和同步网站内容更新。它可以把网站的最新文章、新闻、博客等内容打包成“RSS Feed”,用户通过 RSS 阅读器订阅后,就能集中查看多个网站的更新,而无需逐一访问
notion image
打开link中的网页,读取其中的内容,交给AI进行总结归纳
所以需要爬虫功能读取刚才的网站链接——firecrawl——n8n目前没有,所以需要部署插件
notion image
notion image
browser-搜索firecrawl
notion image
复制名称-install
notion image
notion image
安装完成之后需要重启n8n,回到命令行ctrl+C中断再重启npx n8n
notion image
notion image
notion image
notion image
notion image
notion image
notion image
前面加了limit限制3个item
notion image
下一步接入大模型分析右侧输出的内容,目前是杂乱的
notion image
notion image
添加ai model进行test
notion image
点击pin按钮可以把这些数据作为测试数据保留,在测试后面的节点时,不需要从头跑一遍工作流了
notion image
notion image
添加Aggregate节点对前面三个数据做数据汇总,测试三条数据合并为一条,但ai给出时markdown的格式,我们需要转换为html格式,添加节点markdown
notion image
notion image
output是一个队列,所以需要把output合并为大的字符串,所以需要添加join
notion image
notion image
最后一步发邮件,添加Send Email节点,outlook邮箱需要enable SMTP AUTH:
notion image
notion image
最后把触发器从手动触发改为定时触发
notion image
notion image
notion image
最后结果
notion image