AI Agent Hub
Back to skills
Weiduomei Cake Ordering Assistant icon

Weiduomei Cake Ordering Assistant

Business Operations Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_965199d2/weiduomei into your AI assistant.

About this skill

Problem Addressed

This skill turns the “order a Weiduomei cake” workflow into a stable API chain: the user provides a user_token, city, and keyword, while the skill handles address confirmation, cake search, order-link generation, and order-status lookup, reducing issues like inconsistent city names, mismatched address fields, spec_id mismatches, and later scene-based status checks.

How It Works

It calls a fixed endpoint using JSON-RPC 2.0, with arguments under params.arguments; success is indicated by code: 200, and the business JSON {code, data, msg} is parsed from result.content[0].text.

  • Token handling: the current user supplies user_token, stored in dgss_token.md; add that file to .gitignore before publishing.
  • Address handling: normalize the city to the “municipality” level, call getAddrList; if missing, collect province, city, area, addr, name, and phone number, call addAddrList, and use data[0].id as aid.
  • Product search: call brand_sweets_lst with fixed cat_id: 1, support pagination, and use “Weiduomei” as keyword for ambiguous requests.
  • Ordering and lookup: call getOrderaddr to generate the URL and extract scene; use getOrderStatus for status checks.

The cake table must keep No., Brand, Product Name, Specification, Price, Details, and interface fields should be shown as returned; verify spec_id against the displayed specification before ordering, and only one spec_id is supported.

Boundaries

  • Supports Weiduomei-related products only, not other brands, snacks, or flowers.
  • Easy-to-confuse fields: district is area, detailed address is addr, address ID is aid.
  • Do not expose endpoint names, domains, internal fields, or raw errors; use friendly error messages.
  • Windows recommends Python-script invocation; Linux and macOS can use direct commands to avoid Chinese encoding issues.

Use Cases

  • When booking a Weiduomei cake for a colleague, search by city, delivery address, and keyword, then generate a payment link.
  • When adding a first delivery address, collect province, city, district, name, and phone number, call `addAddrList`, and record `aid`.
  • When a user provides an 8- to 20-digit `scene`, call `getOrderStatus` to check the matching cake order.
  • When handling Chinese parameters on Windows, switch from `curl` to a Python script to avoid parameter encoding errors.

Best For

  • Business operations staff who need to connect a Weiduomei cake ordering workflow into a conversational assistant
  • Integration engineers maintaining internal `MCP` or `JSON-RPC` tools and focused on parameter mapping and error codes
  • Administrators responsible for corporate purchases or office tea breaks who require a brand-restricted ordering channel
  • Automation engineers who need to reuse the same API script across Windows, Linux, and macOS