linkfox-sorftime-walmart-category-market

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Walmart 类目市场研究

Walmart 类目市场研究

Use Sorftime data to retrieve the Walmart US category hierarchy, match a natural-language category name, or inspect one category's market report and Best Seller Top 80.
使用 Sorftime 数据获取沃尔玛美国站类目层级结构、匹配自然语言类目名称,或查看某一类目的市场报告及 Best Seller Top 80 榜单。

Core Concepts

核心概念

  • Send exactly one
    operation
    per request. Do not automatically chain operations; each call consumes Sorftime Requests.
  • tree
    returns the complete category hierarchy and needs no other business parameter.
  • searchByName
    accepts a natural-language category name and returns up to three related category matches.
  • marketReport
    requires a known
    nodePath
    . Never guess the path from a category name.
  • All fields are flat at the top level of the JSON body.
    operation
    values are case-sensitive.
  • 每次请求仅发送一个
    operation
    。请勿自动链式调用操作;每次调用都会消耗 Sorftime 请求次数。
  • tree
    返回完整的类目层级结构,无需其他业务参数。
  • searchByName
    接受自然语言类目名称,返回最多 3 个相关类目匹配结果。
  • marketReport
    需要已知的
    nodePath
    。切勿通过类目名称猜测路径。
  • 所有字段均位于 JSON 请求体的顶层。
    operation
    取值区分大小写。

Operation Routing

操作路由

IntentoperationOther parametersSorftime Request
Download the category tree
tree
None5
Match a natural-language category name
searchByName
name
1
Query a category market report
marketReport
nodePath
5
Complete parameter and response details are in
references/api.md
.
意图operation其他参数Sorftime 请求次数
下载类目树
tree
5
匹配自然语言类目名称
searchByName
name
1
查询类目市场报告
marketReport
nodePath
5
完整的参数和响应详情请查阅
references/api.md

调用方式

调用方式

  • API 端点
    POST /sorftime/walmart/categoryMarket
    (完整参数/响应/错误码见
    references/api.md
  • Python 脚本
    python scripts/sorftime_walmart_category_market.py '<JSON 参数>' [--inline]
  • 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为)
  • 始终将完整响应写入
    <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-sorftime-walmart-category-market-<timestamp>.json
    <cwd>
    为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;
    <session>
    取自环境变量
    SESSION_ID
    ,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如
    total
    /
    costToken
    、最大列表字段的长度 + 前 3 条样本)
  • --inline
    强制全量打印到 stdout(同样落盘)
读数据建议:先看摘要判断是否足够;需要具体字段时优先用
jq
ConvertFrom-Json
从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
  • API 端点
    POST /sorftime/walmart/categoryMarket
    (完整参数/响应/错误码见
    references/api.md
  • Python 脚本
    python scripts/sorftime_walmart_category_market.py '<JSON 参数>' [--inline]
  • 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为)
  • 始终将完整响应写入
    <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-sorftime-walmart-category-market-<timestamp>.json
    <cwd>
    为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;
    <session>
    取自环境变量
    SESSION_ID
    ,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如
    total
    /
    costToken
    、最大列表字段的长度 + 前 3 条样本)
  • --inline
    强制全量打印到 stdout(同样落盘)
读数据建议:先看摘要判断是否足够;需要具体字段时优先用
jq
ConvertFrom-Json
从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和积分问题

解决认证和积分问题

发生以下异常情况时,采用
references/onboarding.md
引导解决问题:
  • 未配置 API Key:环境变量未配置
    LINKFOX_AGENT_API_KEY
    ,也未配置
    LINKFOXAGENT_API_KEY
  • 响应 401 或 402 状态码
  • 响应提示积分或余额不足:消息含“积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值”或类似含义
发生以下异常情况时,采用
references/onboarding.md
引导解决问题:
  • 未配置 API Key:环境变量未配置
    LINKFOX_AGENT_API_KEY
    ,也未配置
    LINKFOXAGENT_API_KEY
  • 响应 401 或 402 状态码
  • 响应提示积分或余额不足:消息含“积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值”或类似含义

Usage Examples

使用示例

bash
python scripts/sorftime_walmart_category_market.py '{"operation":"tree"}'
python scripts/sorftime_walmart_category_market.py '{"operation":"searchByName","name":"patio furniture"}'
python scripts/sorftime_walmart_category_market.py '{"operation":"marketReport","nodePath":"4044_623679_1032619_5842891_9823303"}'
Prefer
searchByName
when the user supplies a natural-language category name. Use
tree
only when full hierarchy traversal is required. A tree response can be approximately 10 MB; normally inspect its saved JSON selectively rather than using
--inline
.
bash
python scripts/sorftime_walmart_category_market.py '{"operation":"tree"}'
python scripts/sorftime_walmart_category_market.py '{"operation":"searchByName","name":"patio furniture"}'
python scripts/sorftime_walmart_category_market.py '{"operation":"marketReport","nodePath":"4044_623679_1032619_5842891_9823303"}'
当用户提供自然语言类目名称时,优先使用
searchByName
操作。仅在需要遍历完整层级结构时使用
tree
操作。
tree
操作的响应大小约为 10MB;通常应选择性地查看保存的 JSON 文件,而非使用
--inline
参数。

Display Rules

展示规则

  1. State the selected operation and show
    requestConsumed
    and
    costToken
    when returned.
  2. For
    tree
    , show matched category names, their ID hierarchy, and the derived
    nodePath
    ; never dump the full tree into conversation.
  3. For
    searchByName
    , show at most the returned three
    NodeId
    and
    CategoryName
    pairs; label them as related matches rather than exact classification.
  4. For
    marketReport
    , summarize only returned metrics and present Best Seller products compactly.
  5. Label Best Seller data as a maximum Top 80 scope, not the entire category catalog.
  6. Preserve upstream field meanings and never invent missing category relationships or metrics.
  1. 说明所选操作,并在返回结果时展示
    requestConsumed
    costToken
    字段。
  2. 对于
    tree
    操作,展示匹配的类目名称、其 ID 层级结构及推导得到的
    nodePath
    ;切勿将完整类目树内容直接放入对话中。
  3. 对于
    searchByName
    操作,最多展示返回的 3 组
    NodeId
    CategoryName
    配对;需标注为相关匹配结果,而非精确分类。
  4. 对于
    marketReport
    操作,仅总结返回的指标,并简洁展示 Best Seller 商品信息。
  5. 标注 Best Seller 数据的范围为最多 Top 80,而非整个类目商品目录。
  6. 保留上游字段的含义,切勿编造不存在的类目关系或指标。

Important Limitations

重要限制

  • All three operations target Walmart US (
    domain=21
    is applied by the backend).
  • Sorftime may omit categories unsuitable for third-party sellers; absence does not prove Walmart has no such category.
  • marketReport
    accepts a numeric underscore-delimited
    nodePath
    , not a free-text category name.
  • searchByName
    returns no more than three related categories and does not guarantee an exact match.
  • tree
    and
    marketReport
    consume 5 upstream requests each;
    searchByName
    consumes 1. Do not retry or run another operation without user authorization.
  • This skill does not cover product or keyword data.
  • 所有三个操作均针对沃尔玛美国站(后端自动应用
    domain=21
    )。
  • Sorftime 可能会排除不适合第三方卖家的类目;类目缺失并不代表沃尔玛没有该类目。
  • marketReport
    接受以数字下划线分隔的
    nodePath
    ,而非自由文本类目名称。
  • searchByName
    最多返回 3 个相关类目,无法保证精确匹配。
  • tree
    marketReport
    各消耗 5 次上游请求;
    searchByName
    消耗 1 次。未经用户授权,请勿重试或执行其他操作。
  • 本 Skill 不涵盖商品或关键词数据。

User Expression & Scenario Quick Reference

用户表述与场景速查

Applicable: Walmart category tree, natural-language category matching, category NodeId/path, category market, and category Best Seller requests.
Not applicable: product detail/trend/sales, keyword metrics, or saved-keyword management.
Boundary judgment: If the primary object is a Walmart product ID, use product analysis. Use
searchByName
for a category name,
tree
for hierarchy traversal, and
marketReport
for a known category path.
适用场景:Walmart 类目树、自然语言类目匹配、类目 NodeId/路径、类目市场及类目 Best Seller 相关请求。
不适用场景:商品详情/趋势/销量、关键词指标或关键词管理相关请求。
边界判断:若核心对象为 Walmart 商品 ID,请使用商品分析工具。对于类目名称,使用
searchByName
操作;对于层级遍历,使用
tree
操作;对于已知类目路径,使用
marketReport
操作。

积分消耗规则

积分消耗规则

按动态规则计费:消耗积分 = Sorftime内部查询次数 × 12。Sorftime内部查询次数:不同 operation 需要的查询次数可能不同,实际次数由 Sorftime 决定。
用户会因积分消耗而支付费用。必须提醒用户并让用户决定是否继续执行另一个 operation。
Feedback:
Auto-detect and report feedback via the Feedback API when the skill behavior or result mismatches intent, the user expresses praise or dissatisfaction, or an improvement is apparent. Call it as specified in
references/api.md
without interrupting the user's flow.

For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.
按动态规则计费:消耗积分 = Sorftime内部查询次数 × 12。Sorftime内部查询次数:不同 operation 需要的查询次数可能不同,实际次数由 Sorftime 决定。
用户会因积分消耗而支付费用。必须提醒用户并让用户决定是否继续执行另一个 operation。
反馈机制
当 Skill 的行为或结果与用户意图不符、用户表达赞扬或不满,或存在明显改进空间时,自动通过 Feedback API 检测并上报反馈。请按照
references/api.md
中的指定方式调用该 API,且不要中断用户的操作流程。

如需更多高质量、专业的跨境电商 Skill,请访问 LinkFox Skills.