Retail Agent Setup — Onboarding Wizard
Overview
This skill transforms a blank OpenClaw agent into a fully configured retail digital employee
tailored to a specific store or chain. Each step produces a concrete artifact that persists in
the agent's memory, making the setup cumulative and resumable.
Setup takes 20–40 minutes end-to-end. Each step can be paused and resumed.
Run retail agent setup or 数字员工配置 to start or continue.
Execution Protocol
- - Run steps in order — each step depends on outputs from the previous
- Pause after each step — show the artifact, ask "Confirm and continue?" before proceeding
- Resumable — if a step was previously completed, show its saved output and ask whether to redo or skip
- Save state — write each step's output to agent memory before moving to the next
- Zero-config entry — if the user just says "set up my retail agent," start at Step 1
The 12 Steps
Step 01 — System Inventory
"What retail systems are you currently using?"
Identify the store's existing tech stack across 5 categories: POS, ERP/WMS, CRM/membership,
e-commerce platforms, and supply chain tools.
Map each system to its API availability (real-time / batch / none).
Reference: step-01-systems.md
Artifact: System inventory card + API availability matrix
Step 02 — Data Infrastructure Assessment
"Where does your data live, and what format is it in?"
Evaluate data across 6 dimensions: products, inventory, sales, staff, customers, and policy docs.
Score completeness and freshness. Prioritize what to connect first.
Reference: step-02-data-infra.md
Artifact: Data map + connection priority list
Step 03 — Data Import & Auto-Structuring
"Send me your data — I'll organize it into a format the agent can use."
Accept uploads (Excel/CSV/PDF/Word/image), API connections, or pasted text.
Auto-parse into structured knowledge base entries. Flag gaps and prompt to fill them.
Script: scripts/parse_products.py — Excel/CSV → structured JSON
Script: scripts/parse_policy.py — PDF/Word → rule tree
Script: scripts/score_knowledge.py — completeness scoring
Reference: step-03-data-import.md
Artifact: Structured knowledge base + completeness score (0–100)
Step 04 — Role Selection
"What role should this digital employee play?"
Choose from 6 preset roles or define a custom role. Each role activates a specific skill bundle
and response style. One agent = one primary role (multi-role is advanced config).
Reference: step-04-role-select.md
Artifact: Role definition file + activated skill bundle list
Step 05 — Skills Configuration
"Which capabilities should this agent have?"
Review recommended skills for the chosen role. Toggle on/off. Configure each enabled skill
(thresholds, data sources, escalation rules).
Reference: step-05-skills-config.md
Artifact: skills-config.json — active skills with their parameters
Step 06 — Knowledge Base Validation
"Let me test what your agent knows."
Auto-generate 10 test questions covering products, inventory, policies, and recommendations.
Run them against the knowledge base. Flag failures. Guide the user to fill gaps.
Script: scripts/gentest_cases.py — generate test questions by vertical
Script: scripts/score_knowledge.py — run and score responses
Reference: step-06-knowledge.md
Artifact: Knowledge base score + gap report
Step 07 — Digital Employee Persona
"Give your digital employee a name and personality."
Configure: name, personality type, tone, reply style, customer address form, brand keywords.
Generate 3 sample dialogues for preview. Confirm before saving.
Reference: step-07-persona.md
Artifact: persona-config.json + 3 preview dialogues
Step 08 — Channel Integration
"How will staff and customers reach this agent?"
Select and configure delivery channels: WeCom (企业微信), WeChat MP/Mini Program,
Lark (飞书), Web kiosk UI, WhatsApp, or SMS/IVR.
Each channel has a dedicated setup guide with step-by-step auth instructions.
Reference: step-08-channels.md
Artifact: Channel connection status + test message confirmation
Step 09 — Permissions & Escalation
"What can the agent decide alone, and what needs a human?"
Define 4-level permission matrix: L0 auto-handle, L1 suggest+confirm, L2 submit for approval,
L3 force escalate to human. Set escalation targets and on-call schedules.
Reference: step-09-permissions.md
Artifact: permissions-matrix.json + escalation routing config
Step 10 — Pre-Launch Testing
"Let's run real-scenario tests before going live."
Run a full scenario test suite based on the store's vertical and configured skills.
Score readiness 0–100. Must reach 80+ to proceed to launch.
Script: scripts/gentest_cases.py
Reference: step-10-test.md
Artifact: Test report + launch-readiness score
Step 11 — Launch & Handoff
"You're ready. Let's go live."
Activate the agent on all configured channels. Generate staff onboarding card (one-pager).
Send welcome message. Schedule first check-in reminder (7 days out).
Reference: step-11-handoff.md
Artifact: Staff guide PDF + activation confirmation
Step 12 — Continuous Improvement
"Going live is the beginning, not the end."
Set up weekly unanswered-question digests and monthly usage reports.
Configure knowledge-gap alerts. Schedule quarterly persona review.
Reference: step-12-iterate.md
Artifact: Cron jobs for digest + alert thresholds set
State Management
Track onboarding progress in agent memory under key retail_setup_state:
CODEBLOCK0
On any new message, check this state first. If setup is incomplete, offer to resume.
Supported Retail Verticals
Apparel · Footwear · Beauty & Skincare · Consumer Electronics · Home & Furniture ·
Maternal & Infant · Convenience Store · Supermarket · Specialty Food · Jewelry ·
Sporting Goods · Books & Stationery · Pet Supplies · Pharmacy · Toy & Hobby
For verticals not listed, use "General Retail" defaults and customize in Step 4.
零售智能助手配置 — 引导式设置向导
概述
本技能可将一个空白的OpenClaw智能助手,转化为完全配置好的、针对特定门店或连锁品牌的零售数字员工。每一步都会生成具体的产物,并持久保存在智能助手的记忆中,使配置过程可累积、可恢复。
整个配置过程需要20–40分钟。 每一步均可暂停和恢复。
运行 retail agent setup 或 数字员工配置 即可开始或继续。
执行协议
- - 按顺序执行步骤 — 每一步都依赖上一步的输出
- 每步结束后暂停 — 展示产物,询问确认并继续?后再进行下一步
- 可恢复 — 如果某一步之前已完成,显示已保存的输出,并询问是重做还是跳过
- 保存状态 — 在进入下一步之前,将每一步的输出写入智能助手的记忆
- 零配置入口 — 如果用户只说配置我的零售智能助手,则从第1步开始
12个步骤
第01步 — 系统盘点
您目前正在使用哪些零售系统?
识别门店在5个类别中的现有技术栈:POS系统、ERP/WMS系统、CRM/会员系统、电商平台和供应链工具。
将每个系统映射到其API可用性(实时/批量/无)。
参考文档: step-01-systems.md
产物: 系统盘点卡片 + API可用性矩阵
第02步 — 数据基础设施评估
您的数据存放在哪里?是什么格式?
从6个维度评估数据:产品、库存、销售、员工、客户和政策文档。对完整性和新鲜度进行评分。确定优先连接的数据。
参考文档: step-02-data-infra.md
产物: 数据地图 + 连接优先级列表
第03步 — 数据导入与自动结构化
将您的数据发送给我 — 我会将其整理成智能助手可用的格式。
接受上传(Excel/CSV/PDF/Word/图片)、API连接或粘贴文本。自动解析为结构化的知识库条目。标记缺失项并提示用户补充。
脚本: scripts/parse_products.py — Excel/CSV → 结构化JSON
脚本: scripts/parse_policy.py — PDF/Word → 规则树
脚本: scripts/score_knowledge.py — 完整性评分
参考文档: step-03-data-import.md
产物: 结构化知识库 + 完整性评分(0–100)
第04步 — 角色选择
这个数字员工应该扮演什么角色?
从6个预设角色中选择,或自定义一个角色。每个角色会激活特定的技能包和回复风格。一个智能助手 = 一个主要角色(多角色属于高级配置)。
参考文档: step-04-role-select.md
产物: 角色定义文件 + 已激活的技能包列表
第05步 — 技能配置
这个智能助手应该具备哪些能力?
查看所选角色的推荐技能。开启/关闭。配置每个已启用的技能(阈值、数据源、升级规则)。
参考文档: step-05-skills-config.md
产物: skills-config.json — 已激活的技能及其参数
第06步 — 知识库验证
让我测试一下您的智能助手知道什么。
自动生成10个涵盖产品、库存、政策和推荐的测试问题。针对知识库运行测试。标记失败项。引导用户补充缺失内容。
脚本: scripts/gentest_cases.py — 按垂直领域生成测试问题
脚本: scripts/score_knowledge.py — 运行并评分回复
参考文档: step-06-knowledge.md
产物: 知识库评分 + 缺失项报告
第07步 — 数字员工形象
为您的数字员工起个名字,赋予个性。
配置:名称、个性类型、语气、回复风格、客户称呼方式、品牌关键词。生成3个示例对话供预览。确认后再保存。
参考文档: step-07-persona.md
产物: persona-config.json + 3个预览对话
第08步 — 渠道集成
员工和客户如何联系这个智能助手?
选择并配置交付渠道:企业微信、微信公众号/小程序、飞书、网页自助终端界面、WhatsApp或短信/IVR。每个渠道都有专用的设置指南,包含分步授权说明。
参考文档: step-08-channels.md
产物: 渠道连接状态 + 测试消息确认
第09步 — 权限与升级
智能助手可以独立决定什么?什么需要人工介入?
定义4级权限矩阵:L0自动处理、L1建议+确认、L2提交审批、L3强制升级至人工。设置升级目标和值班安排。
参考文档: step-09-permissions.md
产物: permissions-matrix.json + 升级路由配置
第10步 — 上线前测试
在上线之前,让我们进行真实场景测试。
根据门店的垂直领域和已配置的技能,运行完整的场景测试套件。评分配备就绪度0–100。必须达到80分以上才能进入上线阶段。
脚本: scripts/gentest_cases.py
参考文档: step-10-test.md
产物: 测试报告 + 上线就绪度评分
第11步 — 上线与交接
您已准备就绪。让我们上线吧。
在所有已配置的渠道上激活智能助手。生成员工入职指南(一页纸)。发送欢迎消息。安排首次检查提醒(7天后)。
参考文档: step-11-handoff.md
产物: 员工指南PDF + 激活确认
第12步 — 持续改进
上线是开始,而不是结束。
设置每周未回答问题摘要和每月使用报告。配置知识缺失警报。安排每季度形象回顾。
参考文档: step-12-iterate.md
产物: 摘要的定时任务 + 警报阈值设置
状态管理
在智能助手记忆中,以键 retailsetupstate 跟踪配置进度:
json
{
version: 1.0,
started_at: ,
completed_steps: [1, 2, 3],
current_step: 4,
artifacts: {
systems: { ... },
data_map: { ... },
knowledge_base: { ... },
role: ...,
skills_config: { ... },
persona: { ... },
channels: [ ... ],
permissions: { ... }
}
}
收到任何新消息时,首先检查此状态。如果配置未完成,则提供恢复选项。
支持的零售垂直领域
服装 · 鞋类 · 美妆护肤 · 消费电子 · 家居家具 ·
母婴 · 便利店 · 超市 · 特色食品 · 珠宝 ·
体育用品 · 图书文具 · 宠物用品 · 药品 · 玩具礼品
对于未列出的垂直领域,使用通用零售默认设置,并在第4步中进行自定义。