Add contact extraction for discovery results: click to scrape email/phone/WhatsApp/WeChat from company website

This commit is contained in:
TradeMate Dev
2026-05-27 11:24:03 +08:00
parent ab06990e73
commit 6f0d8b0fb4
2 changed files with 56 additions and 7 deletions
+4 -1
View File
@@ -19,7 +19,9 @@ ANALYZE_MATCH_PROMPT = """你是外贸客户分析专家。分析目标公司的
"contact_info": {
"emails": ["找到的邮箱"],
"phones": ["找到的电话"],
"social": ["LinkedIn等社媒链接"]
"social": ["LinkedIn等社媒链接"],
"wechat": "找到的微信号",
"whatsapp": "找到的 WhatsApp 号码"
}
}
@@ -292,6 +294,7 @@ URL: {company_url}
"match_reason": "无法获取网页内容进行分析,建议手动查看",
"url": url,
"provider": "template",
"contact_info": {"emails": [], "phones": [], "social": [], "wechat": "", "whatsapp": ""},
}
def _template_outreach(self, company: Dict[str, Any], product: Dict[str, Any]) -> Dict[str, Any]: