← 返回 Skills 市场
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install email-quote-automation
功能描述
自动收取奖牌定制客户询价邮件,翻译非中文内容,计算报价并生成专业回复模板,支持本地存档和定时处理。
使用说明 (SKILL.md)
\r \r
奖牌定制询价邮件自动处理技能\r
\r
概述\r
\r 本技能用于奖牌定制企业电商渠道的邮件询价自动化处理:\r
- 定时收取邮件 - 从邮箱收取新的客户询价邮件\r
- 自动翻译 - 非中文邮件自动翻译为中文\r
- 保存归档 - 原始邮件和翻译内容保存到本地\r
- 生成报价 - 根据报价公式和材质参数表自动计算价格生成回复模板\r \r
核心功能\r
\r
1. 邮件收取\r
- 支持IMAP协议连接邮箱服务器\r
- 支持SSL/TLS加密连接\r
- 可配置定时检查间隔(默认每30分钟检查一次)\r
- 只处理未读邮件,标记已处理\r \r
2. 自动翻译\r
- 检测邮件内容语言\r
- 非中文内容调用翻译API翻译为简体中文\r
- 保存原文和译文两份文件\r \r
3. 本地存储结构\r
email_storage/\r
├── raw/ # 原始邮件(.eml格式)\r
├── text/ # 提取文本内容\r
├── translated/ # 翻译后的中文内容\r
└── quotes/ # 生成的报价回复模板\r
```\r
\r
### 4. 报价计算\r
- 根据材质、尺寸、数量、工艺计算价格\r
- 应用阶梯折扣政策\r
- 自动生成专业报价回复邮件模板\r
\r
## 配置说明\r
\r
在使用前需要编辑 `scripts/config.py` 设置:\r
- 邮箱IMAP服务器地址、端口、用户名、密码\r
- 翻译API配置(可选使用百度翻译、Google翻译等)\r
- 本地存储路径\r
- 报价数据文件路径\r
\r
## 使用方法\r
\r
### 手动运行一次检查\r
```bash\r
python scripts/email_check.py\r
```\r
\r
### 启动定时服务\r
```bash\r
python scripts/email_daemon.py\r
```\r
\r
## 报价规则参考\r
\r
报价数据文件已内置在技能中:\r
- 材质参数表:`shopdata/材质报价参数信息表.xlsx`\r
- 报价公式:`shopdata/报价公式.txt`\r
\r
### 核心计算公式\r
**最终价格 = 基础单价 × 尺寸系数 + 工艺附加费**\r
\r
然后根据订单数量应用阶梯折扣:\r
- 1-5个:原价\r
- 6-20个:9.5折\r
- 21-100个:8.5折\r
- 101个以上:7折起\r
\r
### 尺寸系数\r
- S (15cm以下): 0.8\r
- M (15-25cm): 1.0\r
- L (25-40cm): 1.5\r
- XL (40cm以上): 单独核价\r
\r
### 材质基础单价\r
| 材质系列 | 零售单价 | 批量单价 |\r
|---------|---------|---------|\r
| 金箔/实木类 | ¥85 起 | ¥45 起 |\r
| 水晶/琉璃类 | ¥120 起 | ¥65 起 |\r
| 金属开模类 | ¥180 起 | ¥90 起 (需模具费) |\r
| 亚克力/复合类 | ¥55 起 | ¥28 起 |\r
\r
## 脚本说明\r
\r
### scripts/\r
- `config.py` - 配置文件(需要用户配置)\r
- `email_check.py` - 单次检查新邮件\r
- `email_daemon.py` - 定时后台服务\r
- `email_utils.py` - 邮件处理工具函数\r
- `translator.py` - 翻译模块\r
- `quote_calculator.py` - 报价计算模块\r
\r
### references/\r
- `pricing_data.json` - 缓存的报价参数数据\r
- `email_template.html` - 回复邮件HTML模板\r
\r
安全使用建议
Review carefully before installing. Use a dedicated inquiry mailbox or folder, configure an app password instead of your main password, add filters so only intended customer inquiries are processed, disable or control translation for sensitive emails, secure the local email_storage directory, and verify your pricing data before relying on generated quotes.
功能分析
Type: OpenClaw Skill
Name: email-quote-automation
Version: 1.0.0
The skill bundle is a legitimate automation tool for processing e-commerce email inquiries and generating quotations. It includes scripts for fetching emails via IMAP (email_utils.py), translating content using Google or Baidu APIs (translator.py), and calculating prices based on business logic (quote_calculator.py). While the tool requires sensitive email credentials in config/config.py, this is a functional requirement for its stated purpose, and there is no evidence of credential exfiltration, malicious execution, or prompt injection attempts in SKILL.md.
能力标签
能力评估
Purpose & Capability
The email fetching, translation, local archiving, and quote generation are coherent with the stated purpose, but the implementation processes all unread INBOX messages rather than only scoped customer inquiries, and the pricing-data description is partly inconsistent with the supplied files.
Instruction Scope
The usage instructions are clear, but the scripts do not require per-email approval before fetching, translating, saving, generating a quote, or marking messages as read.
Install Mechanism
There is no install spec, but the README instructs manual Python dependency installation from requirements.txt; this is normal for a script-based tool but users should verify the unknown source and dependencies.
Credentials
The environment access is high-impact: it requires mailbox login credentials, reads email contents, stores copies locally, and uses an external translation library by default.
Persistence & Privilege
The optional daemon is disclosed and user-started, but it runs continuously until stopped and will keep polling the mailbox on the configured interval.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install email-quote-automation - 安装完成后,直接呼叫该 Skill 的名称或使用
/email-quote-automation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with full email inquiry automation for medal customization business.
- Automatically retrieves customer inquiry emails at configurable intervals (default every 30 minutes)
- Detects and translates non-Chinese emails to Simplified Chinese using API
- Saves original and translated email content to local storage, organized by type
- Calculates quotes based on provided formulas and material parameter tables; applies tiered discounts
- Auto-generates and saves professional quote reply templates
- Fully configurable IMAP, translation, and pricing data paths via config file
元数据
常见问题
email-quote-automation 是什么?
自动收取奖牌定制客户询价邮件,翻译非中文内容,计算报价并生成专业回复模板,支持本地存档和定时处理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。
如何安装 email-quote-automation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install email-quote-automation」即可一键安装,无需额外配置。
email-quote-automation 是免费的吗?
是的,email-quote-automation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
email-quote-automation 支持哪些平台?
email-quote-automation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 email-quote-automation?
由 fankcoder(@fankcoder)开发并维护,当前版本 v1.0.0。
推荐 Skills