返回顶部
r

retail-knowledge

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
139
下载量
0
收藏
概述
安装方式
版本历史

retail-knowledge

# Retail Knowledge — Q&A Engine ## Overview This skill answers questions using the store's configured knowledge base. It is the foundational skill for all retail digital employee roles. **Depends on:** Knowledge base populated via `retail-agent-setup` Step 03. If no knowledge base is configured, guide the user to run `retail agent setup` first. --- ## Query Routing When a question arrives, classify it and route to the correct knowledge domain: | Query Type | Keywords | Knowledge Domain | |------------|----------|-----------------| | Product info | 产品/商品/成分/规格/面料/尺寸/功效 | `products` | | Policy | 退货/换货/退款/保修/三包/质保 | `policies` | | Promotion | 活动/优惠/折扣/满减/赠品/促销 | `promotions` | | FAQ | 怎么/如何/可以/能否/多久 | `faqs` | | Store info | 地址/营业时间/几点/电话/停车 | `store_info` | | Membership | 积分/会员/等级/VIP/余额 | `membership` | | Recommendation | 推荐/适合/送礼/比较/哪个好 | → hand off to `product-recommender` skill | | Inventory | 有没有/还有/库存/现货 | → hand off to `inventory-query` skill | | Complaint | 坏了/质量问题/投诉/要退 | → hand off to `complaint-handler` skill | --- ## Answer Construction Rules ### Rule 1: Always ground answers in the knowledge base Never invent product specs, policy terms, or promotion details. If the knowledge base doesn't have the answer, use the configured `unknown_response`. ### Rule 2: Be specific Bad: "我们有退货政策" Good: "购买后7天内,商品未使用且保留吊牌,可申请无理由退货。退款将在3个工作日内到账。" ### Rule 3: Cite conditions when relevant For policies and promotions, always mention key conditions and exceptions. Example: "满300减50,不与其他优惠叠加,促销商品除外。" ### Rule 4: Match persona tone Apply the configured `persona_config` (name, tone, address form, emoji usage). **Reference:** [answer-style-guide.md](references/answer-style-guide.md) ### Rule 5: Handle unknowns gracefully If no matching knowledge base entry exists: 1. Say so honestly (use configured `unknown_response`) 2. Offer an alternative: escalate, or suggest the user contact staff 3. Log the query internally for Step 12 gap digest Never say "I don't know" bluntly — soften it while staying honest. --- ## Multi-Turn Conversation Maintain context across turns within a session: - Remember what product was mentioned earlier ("那款" / "刚才说的那个") - Remember stated preferences ("她喜欢素色" → filter subsequent answers) - If user backtracks or changes topic, reset context gracefully **Reference:** [conversation-patterns.md](references/conversation-patterns.md) --- ## Knowledge Base Structure Expect the knowledge base (populated by `retail-agent-setup`) in this format: ```json { "products": [ { "sku": "...", "name": "...", "description": "...", ... } ], "policy_entries": [ { "policy_id": "...", "title": "...", "full_text": "...", ... } ], "promotions": [ { "promo_id": "...", "title": "...", "rules": "...", ... } ], "faqs": [ { "faq_id": "...", "question": "...", "answer": "...", ... } ], "store_info": { "name": "...", "address": "...", "hours": "...", "phone": "..." }, "membership": { "levels": [...], "points_rules": "...", "query_method": "..." } } ``` **Reference:** [kb-schema.md](references/kb-schema.md) — full schema with field descriptions. --- ## Fallback Behavior If the knowledge base is empty or missing a domain: | Missing Domain | Fallback Response | |---------------|-------------------| | No products | "我们的商品信息正在整理中,请联系店员了解详情。" | | No policies | "退换货政策请联系门店工作人员确认。" | | No promotions | "目前暂无特别优惠活动,欢迎关注我们的公众号获取最新信息。" | | No store info | Escalate to configured L1 contact | --- ## Script: Knowledge Base Search Use `scripts/kb_search.py` when the knowledge base is a local JSON file and a direct keyword/semantic search is needed before constructing an answer. **Reference:** [search-strategy.md](references/search-strategy.md) — when to use exact match vs. fuzzy match vs. LLM synthesis.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 retail-knowledge-1776080657 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 retail-knowledge-1776080657 技能

通过命令行安装

skillhub install retail-knowledge-1776080657

下载 Zip 包

⬇ 下载 retail-knowledge v1.0.0

文件大小: 13.45 KB | 发布时间: 2026-4-14 14:13

v1.0.0 最新 2026-4-14 14:13
first release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部