← 返回
未分类

Promotion Engine

Retail promotion calculator and discount lookup for digital employees. Computes final prices after applying discounts, bundles, thresholds, and membership ti...
零售促销计算器与折扣查询,为数字员工计算折扣、捆绑、满减阈值及会员等级后的最终价格。
fangwei-frank fangwei-frank 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 317
下载
💾 0
安装
1
版本
#latest

概述

Promotion Engine

Overview

This skill looks up active promotions and calculates final prices.

It always shows its work (calculation steps) so customers trust the answer.

Depends on: promotions[] in knowledge base + membership{} config.


Query Types

QueryExampleAction
------------------------
"What promotions are active?""现在有什么活动?"List all active promos
"How much will I pay?""买两件怎么算?"Calculate total
"Is this on sale?""这款打折吗?"Check promo applicability
"How do I get the best deal?""怎么买最划算?"Optimize purchase strategy
"Can I stack promos?""会员折扣和满减可以一起用吗?"Check stackability

Calculation Steps

Always show calculation steps. Customers distrust "magic numbers."

Step 1: Identify applicable promotions

For each item in the cart/query:

  1. Check promotions[] for active promos (not expired)
  2. Filter by applicable_to scope (does this product qualify?)
  3. Check excluded list (is this product excluded?)
  4. Check membership tier for additional discounts

Step 2: Apply promotion rules

Use scripts/calculate_promotion.py for accurate computation.

Promotion types:

TypeRule formatExample
---------------------------
threshold满X减Y满300减50
discountX折 or X% off8折, 20% off
bundle买X件享Y价买2件第2件半价
gift满X赠品满200赠小样
member_price会员专属价VIP价¥199

Step 3: Handle stacking

Check stackable field on each promotion.

  • stackable: true → can combine with others
  • stackable: false → use highest-value single promo
  • When in doubt: use the rule that benefits the customer more

Step 4: Present result

Show original price → applicable promos → final price → total savings.


Answer Format

Single item query

这款连衣裙 原价:¥399
✨ 夏日大促:满300减50
会员折扣:9折(VIP专享)

最终价格:¥309(节省¥90)

Cart calculation

您的购物清单:
  白色连衣裙 ×1   ¥399
  条纹衬衫   ×1   ¥259
  小计:¥658

✨ 满300减50 → -¥50
✨ 满600再减80 → -¥80(两件合计超过600!)

最终合计:¥528(节省¥130 🎉)

No active promotions

目前[产品/全场]暂无特别优惠活动。
当前售价:¥[price]

Edge Cases

Conflicting promos: Always apply the rule that benefits the customer most. State which was applied.

Expired promo mentioned by customer: "这个活动已于[date]结束了,目前[有/没有]新的优惠。"

Promo not in KB but customer claims it exists: "我目前没有查到这个活动的信息,建议向店员确认一下,以免信息有误。"

Membership tier unknown: "您的会员等级我暂时查不到,建议核实后,会员专属折扣会自动应用。"


Script

Use scripts/calculate_promotion.py for accurate numeric calculation.

Reference: promo-rules-guide.md — detailed rule parsing.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 10:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Discord

steipete
当需要通过discord工具控制Discord时使用:发送消息、添加反应、发布或上传表情包、上传表情、创建投票、管理帖子/置顶/搜索、获取权限或成员/角色/频道信息,或在Discord私信或频道中处理管理操作。
★ 78 📥 37,993
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,222
business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 25,972