← 返回
未分类

Spx Tracking

Query SPX Express shipment tracking by tracking number. Call this skill when the user mentions a tracking number matching the SPX format (CNMY..., SPXMY...),...
通过追踪号查询SPX Express货运追踪信息。当用户提及符合SPX格式的追踪号(如CNMY...、SPXMY...等)时调用此技能。
wiziscool wiziscool 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 413
下载
💾 0
安装
1
版本
#delivery#latest#logistics#spex#spx#tracking

概述

SPX Express Tracking

Query SPX Express (spx.com.my) shipment tracking and return structured results.

Invocation

python skills/spx-tracking/scripts/spx_tracking.py <tracking_number> [--format json|text|summary] [--cookie "..."] [--timeout 15]

Arguments

ArgumentDescription
------
tracking_numberSPX tracking number (format: CNMY..., SPXMY...)
--formatjson (default) — structured data; text — human-readable; summary — one-line status
--cookieBrowser cookie for authenticated requests (optional, sensitive — contains session data, never log or echo to user)
--timeoutRequest timeout in seconds (default: 15)

Dependencies

The run script auto-creates a venv and installs requests on first use. Manual install:

pip install -r requirements.txt

Output Format Detail

  • --format json (default) — Full JSON. retcode is at the top level. Agent checks retcode == 0 for success; non-zero means API error.
  • --format text — Human-readable sections: status block, timeline, delay analysis, geo route.
  • --format summary — Single-line: [] status: | last update: .

Response Schema

FieldContents
------
retcode0 = success; non-zero = API error (check response.message)
responseAPI-level status message and detail
shipmentCore info: tracking_number, status, receiver_name, edd_min, edd_max, first_event_time, last_event_time
timeline.grouped_eventsChronological events, deduplicated (use for display)
timeline.raw_eventsAll raw events (use for debugging)
geo_routeEvents with GPS: current_lng, current_lat, current_full_address
stay_analysisTime between consecutive events (duration_seconds)
bottleneckThe longest stay segment — where the package stalled

Intent → Action Mapping

Observed user intentRecommended format
------
User provides a SPX tracking number (CNMY..., SPXMY...)--format summary → one-liner reply
"快递到哪了" / "where is my package" / "parcel status"--format jsonstatus + last_event_time + last location
"预计什么时候到" / "when will it arrive" / "ETA"--format jsonedd_min ~ edd_max
"快递卡住了" / "is it stuck" / "delay"--format jsonbottleneck section
"完整物流" / "full details" / "tracking history"--format text → full human-readable report

Usage Constraints

  • SPX Express (spx.com.my) and CAINIAO (菜鸟 / 菜鸟集运): This skill covers both SPX Direct and CAINIAO Smart Logistics tracking numbers used in the Malaysia region. CAINIAO's last-mile carrier in Malaysia is SPX Express, so CAINIAO numbers are queryable via this same API.
  • Tracking number format: SPX numbers start with CNMY or SPXMY. CAINIAO numbers may have different prefixes but can be searched directly if the user identifies them as CAINIAO/菜鸟/菜鸟集运.
  • Do NOT use for: J&T, Pos Laju, DHL, FedEx, UPS, Ninja Van, or any other courier.
  • Privacy: Never output the raw API response body. Only use the structured fields described above.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-31 00:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Discord

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

Calendar

ndcccccc
日历管理与日程安排。创建事件、管理会议,并实现多日历平台同步。
★ 7 📥 23,112
business-ops

Trello

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