feat: add product strategy, agent skills (3 SKILL.md), and Chrome browser extension

This commit is contained in:
wlt
2026-06-24 10:37:58 +08:00
parent 2ccaafe470
commit 7b03d803b5
19 changed files with 2279 additions and 0 deletions
+85
View File
@@ -0,0 +1,85 @@
# TradeMate Customer Discovery Skill
Search and discover potential foreign trade customers from the web.
## Description
Automatically searches Google for potential buyers in your target market, extracts company information and contact details (email, phone, WhatsApp), and scores leads by relevance. Helps foreign trade professionals find new customers without manual browsing.
## Triggers
- "find customers" / "找客户"
- "discover leads" / "发现潜在客户"
- "search buyers" / "搜索买家"
- "customer discovery" / "客户发现"
## Workflow
### 1. Search for Potential Customers
```
POST /api/v1/discovery/search
Content-Type: application/json
Authorization: Bearer <token>
{
"keyword": "<product or industry keyword>",
"market": "US|UK|DE|FR|AU|...", // target country code
"max_results": 10
}
```
Response:
```json
{
"results": [
{
"title": "Company Name",
"url": "https://company-website.com",
"description": "...",
"emails": ["info@company.com"],
"phones": ["+1-xxx-xxx-xxxx"],
"social": {
"whatsapp": "...",
"wechat": "..."
},
"relevance_score": 85
}
],
"total": 10
}
```
### 2. Save High-Scoring Leads
High-scoring leads (score >= 70) are automatically saved as Customer records in the TradeMate CRM via the Agent pipeline:
```
POST /api/v1/agent/start
Content-Type: application/json
Authorization: Bearer <token>
{
"product_name": "<your product>",
"product_description": "<product description>",
"target_market": "<target country>"
}
```
## Configuration
Requires a running TradeMate backend instance with:
- Google Custom Search API configured
- Valid API token with discovery credits
```bash
export TRADEMATE_API_URL=http://localhost:8000
export TRADEMATE_API_KEY=<your-api-token>
```
## Notes
- Each search consumes discovery credits (check balance via `GET /api/v1/credits/balance`)
- Free tier: limited searches per day
- Pro tier: expanded daily quota
- Enterprise tier: unlimited searches + auto-save to CRM
+106
View File
@@ -0,0 +1,106 @@
# TradeMate Marketing Content Skill
Generate marketing copy and keyword suggestions for foreign trade products.
## Description
AI-powered marketing content generation for export products. Creates professional marketing copy in multiple languages and styles, generates SEO keywords, and analyzes competitor positioning. Designed for foreign trade professionals who need compelling product descriptions for international buyers.
## Triggers
- "generate marketing" / "生成营销文案"
- "write product description" / "写产品描述"
- "marketing keywords" / "营销关键词"
- "product copy" / "产品文案"
## Workflow
### 1. Generate Marketing Copy
```
POST /api/v1/marketing/generate
Content-Type: application/json
Authorization: Bearer <token>
{
"product_name": "<product name>",
"description": "<product description>",
"category": "<category>",
"target": "<target market, e.g. US importers>",
"style": "professional|friendly|luxury",
"count": 3,
"language": "en|zh"
}
```
Response:
```json
{
"results": [
{
"content": "Professional marketing copy...",
"style": "professional",
"provider": "sensenova"
}
],
"product": "...",
"target": "...",
"count": 3,
"credits_remaining": 45
}
```
### 2. Generate Keywords
```
POST /api/v1/marketing/keywords
Content-Type: application/json
Authorization: Bearer <token>
{
"product_name": "<product name>",
"description": "<product description>",
"category": "<category>",
"language": "en",
"count": 10
}
```
Response:
```json
{
"keywords": ["keyword1", "keyword2", ...],
"product": "...",
"credits_remaining": 45
}
```
### 3. Competitor Analysis
```
POST /api/v1/marketing/competitor-analysis
Content-Type: application/json
Authorization: Bearer <token>
{
"product_name": "<product name>",
"description": "<product description>",
"competitors": ["competitor1", "competitor2"]
}
```
## Configuration
Requires a running TradeMate backend instance:
```bash
export TRADEMATE_API_URL=http://localhost:8000
export TRADEMATE_API_KEY=<your-api-token>
```
## Notes
- Each generation consumes 5 marketing credits
- Free tier: limited daily generations
- Multiple AI providers (Sensenova / NVIDIA) with automatic fallback
- Supports English and Chinese output
+97
View File
@@ -0,0 +1,97 @@
# TradeMate Translate & Reply Skill
Translate foreign trade inquiries and generate professional replies.
## Description
AI-powered translation and smart reply generation for foreign trade professionals. Supports Chinese-English bidirectional translation with trade-specific context, and generates reply suggestions in multiple tones (professional/friendly).
## Triggers
- "translate this" / "翻译"
- "reply to inquiry" / "回复询盘"
- "generate reply" / "生成回复"
- "translate for trade" / "外贸翻译"
## Workflow
### 1. Translate Text
```
POST /api/v1/translate
Content-Type: application/json
Authorization: Bearer <token>
{
"text": "<text to translate>",
"target_lang": "zh|en",
"context": "trade" // optional, adds trade-specific context
}
```
Response:
```json
{
"translated_text": "...",
"source_lang": "en",
"provider_used": "sensenova",
"from_cache": false
}
```
### 2. Generate Reply
```
POST /api/v1/translate/reply
Content-Type: application/json
Authorization: Bearer <token>
{
"inquiry": "<customer inquiry text>",
"tone": "professional|friendly",
"count": 2,
"context": {
"product": "<optional product name>",
"price": "<optional price info>"
}
}
```
Response:
```json
{
"suggestions": [
{"reply": "...", "tone": "professional", "provider": "sensenova"},
{"reply": "...", "tone": "friendly", "provider": "sensenova"}
],
"count": 2
}
```
### 3. Extract Info from Inquiry
```
POST /api/v1/translate/extract
Content-Type: application/json
Authorization: Bearer <token>
{
"text": "<inquiry text>",
"extract_type": "inquiry"
}
```
## Configuration
Requires a running TradeMate backend instance. Set environment variables:
```bash
export TRADEMATE_API_URL=http://localhost:8000
export TRADEMATE_API_KEY=<your-api-token>
```
## Notes
- Free tier: limited daily translations
- Pro tier: unlimited usage
- Uses Sensenova (商汤) as default AI provider, falls back to NVIDIA