Install
openclaw skills install @linkfox-ai/linkfox-1688-procurement1688采购全流程技能。用于1688授权链接、授权店铺检查、收货地址、商品SKU、下单预览、创建订单、支付链接、订单状态、物流、物流轨迹、取消订单、确认收货、开发票等已授权采购履约场景。用户提到1688采购、1688下单、1688授权、1688订单、1688支付、1688物流、1688开发票、1688开票、1688发票、1688 sourcing procurement或1688 order processing时触发。以图搜图使用linkfox-1688-search-by-image。
openclaw skills install @linkfox-ai/linkfox-1688-procurementThis skill helps LinkFox users run authorized 1688 procurement: OAuth status checks, SKU and address lookup, order preview, guarded order creation, payment URL retrieval, order tracking, logistics, cancellation, receipt confirmation, and post-completion invoicing.
Use linkfox-1688-search-by-image for image-based product discovery. This skill does not include image search.
LINKFOX_AGENT_API_KEY or LINKFOXAGENT_API_KEY.authorize_url.py starts 1688 OAuth; authorized_stores.py checks the current LinkFox user's 1688 OAuth state.authorizedStores precheck before calling the target endpoint.status=ACTIVE and expired=false, the target endpoint is not called.linkfox-1688-search-by-image.references/api.md when calling scripts. Do not show these field names in normal user-facing text.references/api.md; do not mention procurement type or ask users to choose one.cancel_order.py only attempts to cancel a 1688 order. It is not a refund or after-sales request. For paid orders, including paid-but-unshipped orders, do not call cancellation as a workaround; tell the user this Skill has no refund-application tool and refunds/after-sales must be handled on 1688 unless the backend adds that ability.Read references/api.md for endpoint details and references/workflow.md before multi-step procurement.
| Script | Risk | OAuth precheck | Purpose |
|---|---|---|---|
authorize_url.py | Low | No | Generate a 1688 authorization link |
authorized_stores.py | Low | No | Check current user's authorized 1688 accounts |
receive_address_list.py | Low | Yes | Query receive addresses |
sku.py | Low | Yes | Query product SKU/specification data |
order_preview.py | Medium | Yes | Preview order price, freight, SKU, and address |
create_order.py | High | Yes | Create a 1688 order |
payment_url.py | High | Yes | Get payment URL |
order_status.py | Low | Yes | Query order status |
logistics.py | Low | Yes | Query logistics summary |
logistics_trace.py | Low | Yes | Query logistics trace |
confirm_receive.py | High | Yes | Confirm receipt |
cancel_order.py | High | Yes | Cancel order |
invoice_amount.py | Low | Yes | Query invoiceable amount before applying for an invoice |
invoice_apply.py | High | Yes | Apply for an invoice after order completion |
POST /alibaba1688/{authorizeUrl|authorizedStores|receiveAddressList|sku|orderPreview|createOrder|paymentUrl|orderStatus|logistics|logisticsTrace|confirmReceive|cancelOrder|invoiceAmount|invoiceApply}(完整参数、响应和错误处理见 references/api.md)python scripts/<script_name>.py '<JSON 参数>' [--inline] [--save] [--no-save]$env:PAYLOAD = '<JSON 参数>' 后运行 python scripts/<script_name>.py --payload-env PAYLOAD [--inline] [--save]authorize_url.py 和 authorized_stores.py 外,脚本会在调用目标接口前自动检查当前用户的 ACTIVE 1688 授权;没有 ACTIVE 且未过期授权时不会调用目标 endpoint。authorizedStores 或采购接口时都会触发,Skill 与用户无需介入。只有 refreshToken 为空、失效或刷新失败(authorizedStores 返回 expired=true)时才需要重新走 authorize_url.py 授权;不要向用户展示或播报 token 有效期、过期时间、刷新窗口等内部授权细节。create_order.py、payment_url.py、confirm_receive.py、cancel_order.py、invoice_apply.py 必须在用户用中文自然语言单独明确确认后调用。内部确认字段和请求细节只供 Agent 调脚本使用,不要展示给用户。$env:PAYLOAD = "{}"
python scripts/authorized_stores.py --payload-env PAYLOAD --inline
脚本入参方式:
python scripts/sku.py '{"offerId":"..."}'python scripts/sku.py --payload-env PAYLOADpython scripts/sku.py --payload-file payload.json--inline 强制全量打印到 stdout--save 强制保存对 token 类敏感字段脱敏--no-save 禁止保存响应文件输出策略(脚本默认行为):
<writable-root>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-1688-procurement-<operation>-<timestamp>.json,stdout 只输出摘要。<writable-root> 优先取 ACPX_WORKSPACES 的第一个工作区,其次为脚本执行时的当前目录,最后回退到用户目录;<session> 取自环境变量 SESSION_ID,未提供时自动生成;禁止写入 /tmp。--save 或设置 LINKFOX_SKILL_SAVE_RESPONSE=1 强制保存;加 --no-save 或设置 LINKFOX_SKILL_NO_SAVE=1 禁止保存;--inline 不隐含保存。读数据建议:先看 stdout 摘要判断是否足够;需要保存完整响应再加 --save,之后优先用 jq 或 ConvertFrom-Json 从保存的 JSON 文件按需抽取,避免整份 JSON 进入上下文。
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。Ask the user for a separate Chinese natural-language confirmation immediately before each high-risk call, restating the exact order/action summary in business terms only. If the immediately preceding assistant message clearly asks for confirmation of one specific high-risk action, a reply of "确认" is valid. Earlier phrases such as "继续", "可以", or "按上面来" are not valid for later high-risk actions. Do not ask the user to type English parameter names.
After the user confirms in Chinese, the Agent must add the internal safety field required by references/api.md when calling the script. Never mention internal fields, request field names, or backend defaults in user-facing confirmation text unless debugging a tool error.
authorized_stores.py; continue only when the current user has an ACTIVE, unexpired 1688 authorization.authorize_url.py, let the user complete OAuth, then re-check authorized_stores.py.linkfox-1688-search-by-image to get an offerId.sku.py, then receive_address_list.py, then order_preview.py.create_order.py; add required safety fields internally without showing them to the user.payment_url.py; pass the created order ID internally without showing request field names to the user.order_status.py, logistics.py, and logistics_trace.py for tracking.cancel_order.py and confirm_receive.py only after separate confirmations for the exact order and action; pass the selected 1688 order ID internally. Do not describe cancellation as refund handling for paid orders.invoice_amount.py to query the invoiceable amount and whether each order can be invoiced; pass the returned amount as-is (do not recompute). Only after separate Chinese confirmation of the invoice type, title, and amount, run invoice_apply.py; pass confirmApplyInvoice=true and the amount internally. Walk successList/failedList per order; treat INVOICE_ALREADY_APPLIED as already-invoiced, not an error.authorizedStores output is the current LinkFox user's 1688 authorization state. Do not describe it as all stores in the database.tokenExpiresAt.costToken or equivalent cost fields only when returned.linkfox-1688-search-by-image./alibaba1688/proxy/callback, /alibaba1688/authorizeCallback, or browser OAuth callback URLs as Skill capabilities.authorizedStores._dataQuery_executeDynamicQuery for live procurement responses.Applicable -- 1688 procurement scenarios:
| User Says | Scenario |
|---|---|
| "查询我的1688授权店铺" / "show my authorized 1688 stores" | Authorization check |
| "生成1688授权链接" / "authorize my 1688 account" | New OAuth authorization |
| "查这个 offerId 的 SKU" | SKU lookup |
| "查1688收货地址" | Receive address lookup |
| "帮我预览1688订单" | Order preview |
| "确认下单" | High-risk create order gate |
| "获取支付链接" | High-risk payment URL gate |
| "查1688订单状态/物流" | Order tracking |
| "取消这个1688订单" | High-risk cancel gate |
| "确认收货" | High-risk confirm receive gate |
| "查1688可开票金额" / "这个订单能开发票吗" | Invoiceable amount query |
| "给这个1688订单开发票" / "确认开票" | High-risk invoice apply gate |
Not applicable -- use another skill or backend system:
linkfox-1688-search-by-imageAuto-detect and report feedback via the Feedback API when actual behavior differs from this skill, results do not match user intent, the user expresses satisfaction/dissatisfaction, or anything could be improved. Call the Feedback API as specified in references/api.md without interrupting the user's flow. Do not include API keys, tokens, full addresses, phone numbers, or payment URLs in feedback content.
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.