Linkfox Sorftime Walmart Product Analysis
调用 Sorftime 按自然语言名称搜索 Walmart 美国站商品,或查询商品详情、商品趋势与按日销量。用户提到 Walmart 商品名称搜索、按名称找产品、相关产品、ProductId、商…
by linkfox-ai · MIT
The skill
调用 Sorftime 按自然语言名称搜索 Walmart 美国站商品,或查询商品详情、商品趋势与按日销量。用户提到 Walmart 商品名称搜索、按名称找产品、相关产品、ProductId、商品详情、价格、评分、类目排名、商品趋势、历史变化、销量趋势、变体销量、按日销量、昨日销量、竞品发现或竞品跟踪时使用。
Walmart 产品分析
Use Sorftime to find Walmart US products by a natural-language name or inspect one product's detail, historical trend, or daily sales-volume series.
Core Concepts
- Send exactly one
operationper request. Never call all four operations as a default workflow. - Use
searchByNameto discover related products,detailfor the current product summary,trendfor historical product changes, andsalesVolumefor dated sales rows. - Every request uses a flat JSON body.
searchByNamerequiresname; the other operations require stringproductId.operationvalues are case-sensitive. - A follow-up operation or a different date range is another paid call. Reuse the 24-hour cache for identical JSON.
Operation Routing
| Intent | operation | Parameters | Sorftime Request |
|---|---|---|---|
| Find related products by name | searchByName |
name, optional pageIndex |
2 |
| Current product details | detail |
productId |
1 |
| Historical product trend | trend |
productId |
2 |
| Daily/variant sales rows | salesVolume |
productId, optional dates/page |
1 |
Read references/api.md before calling for exact date and pagination rules.
Parameter Guide
- Always treat
productIdas a string, even when it contains digits only. searchByNameaccepts a natural-language product name and returns up to 100 related products per page;pageIndexdefaults to 1.salesVolumeaccepts optionalqueryDateandqueryEndDateinyyyy-MM-dd. With neither, it returns the recent 30-day range; with onlyqueryDate, the end defaults to the current day.pageIndexapplies tosearchByNameandsalesVolume, starts at 1, and defaults to 1.- The current available historical range is controlled by Sorftime; do not promise a fixed earliest date.
调用方式
- API 端点:
POST /sorftime/walmart/productAnalysis(完整参数/响应/错误码见references/api.md) - Python 脚本:
python scripts/sorftime_walmart_product_analysis.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗算力;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-sorftime-walmart-product-analysis-<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/套餐到期/需充值/请充值”或类似含义
Usage Examples
python scripts/sorftime_walmart_product_analysis.py '{"operation":"searchByName","name":"wireless earbuds","pageIndex":1}'
python scripts/sorftime_walmart_product_analysis.py '{"operation":"detail","productId":"5169493923"}'
python scripts/sorftime_walmart_product_analysis.py '{"operation":"trend","productId":"5169493923"}'
python scripts/sorftime_walmart_product_analysis.py '{"operation":"salesVolume","productId":"5169493923","queryDate":"2026-07-01","queryEndDate":"2026-07-31","pageIndex":1}'
Display Rules
- State the operation and supplied product name or product ID, and show returned
requestConsumed,costCredit, andcostToken. If_cache.hit=true, make clear that the cached values describe the original live request and no new production charge occurred. - For
searchByName, label results as related products rather than exact matches and report the requested page. - For
detail, present only fields returned by the ProductSummeryObject; do not infer missing attributes. - For
trend, identify time fields and units from the response before summarizing changes. - For
salesVolume, interpret rows as[date, sales, type];type=2marks yesterday's sales record. - Label estimates or observed values accurately; do not present them as guaranteed Walmart transactions.
Important Limitations
- This integration targets Walmart US only.
- The API accepts one product name or one product ID and one operation per call.
- Sorftime controls historical coverage and data availability.
- Pagination or a second operation creates another paid call and requires user authorization.
searchByNameis natural-language related-product discovery, not a multi-filter product database or category-market query.
User Expression & Scenario Quick Reference
Applicable: finding Walmart products from a natural-language product name, or queries centered on a known ProductId and its details, trend, or sales history.
Not applicable: category market research, keyword metrics/reverse lookup, or multi-condition product filtering.
Boundary judgment: Use searchByName only when the user needs related products from a name; use detail for a current snapshot, trend for historical attributes, and salesVolume only for dated sales rows.
算力消耗规则
按动态规则计费:单个 Sorftime Request 当前显示为 6 算力;多 Request 操作由网关按整单计算并取整,最终以入口脚本返回的 costCredit 为准,不要简单用 requestConsumed × 6 代替实际账单。
用户会因算力消耗而支付费用。不要未经确认补调另一 operation 或下一页。
Feedback:
Auto-detect and report feedback via the Feedback API when behavior or results mismatch intent, the user expresses praise or dissatisfaction, or an improvement is apparent. Follow references/api.md without interrupting the user's flow.
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: linkfox-ai/linkfox-sorftime-walmart-product-analysis-51356958800.
Details
- Publisher
- linkfox-ai
- Category
- Business › Sales & CRM
- License
- MIT
- Updated
- 2026-10-16
References
More from linkfox-ai
- Linkfox 1688 Procurement 1688采购全流程技能。用于1688授权链接、授权店铺检查、收货地址、商品SKU、下单预览、创建订单、支付链接、订单状态、物流、物流轨迹、取消订单、确认收货、开发票等已授权采购履约场景。用户提到…
- Linkfox 1688 Product Detail 1688 商品详情查询。通过 offerId 获取商品标题、属性、SKU/库存、1 件零售价、2 件及以上批发阶梯价、外币价、起批量、图片/视频、物流包装、供应商服务、混批、发票与证书等采购信息…
- Linkfox 1688 Search By Image 1688平台以图搜图,通过商品图片精准检索外观相似或同款的1688货源,返回标题、价格、起批量、月销量、复购率、交易评分等核心数据。当用户提到1688以图搜图、1688找货源、以图找同款、跨境找…
- Linkfox Aba Intelligent Query 亚马逊ABA(品牌分析)搜索词数据的查询与分析,涵盖15个站点近3年的周维度数据。当用户提到ABA数据、亚马逊搜索词分析、关键词挖掘、搜索排名趋势、市场机会分析、季节性关键词、高点击低转化分析、…