SuperAPI AI 工具集

newsletter-monitor

部署与运维

查看项目

更新于 10-16 05:49

技能介绍

用途:扫描 AgentMail 收件箱中的 newsletter 信号,按可配置的关键词活动(campaign)进行匹配,用于监控会计行业的购买信号,如收购、Sage Intacct 迁移、招聘挑战和技术采用。

主要能力:基于 config/campaigns.json 中的关键词活动做不区分大小写的子串匹配;内置活动包括 acquisitions(CPA 事务所并购)、sage_intacct(迁移与实施信号)、staffing(会计人才与招聘挑战)、technology(会计技术采用)。输出支持 JSON 模式,返回匹配消息的 message_id、from、subject、date、matched_campaigns、matched_keywords、context_snippets(每个匹配附近 200 字符窗口)和 companies_mentioned(匹配附近的大写多词短语);也支持 summary 人类可读报告,按活动分组展示命中邮件、片段和识别出的公司。

使用方式:先设置 API 密钥 export AGENTMAIL_API_KEY="your_key_here";安装依赖 pip3 install agentmail python-dotenv;运行 python3 skills/newsletter-monitor/scripts/scan_newsletters.py --output summary,可按 --campaign 指定活动、--days 限制天数、--output json 输出 JSON、--limit 限制消息数(默认 100)。--keywords 可自定义关键词并覆盖 campaigns.json。收件箱可用 --inbox 覆盖,默认取 AGENTMAIL_INBOX 环境变量或 supergoose@agentmail.to。

下游配合:发现信号后可衔接 company-contact-finder 查找提及公司联系人,或衔接 accounting-news-monitor 结合直接新闻监控扩大信号覆盖。限制:资料未提供收费、价格、准确率或平台支持等细节。