AI Agent Hub
Back to skills
Birthday Cake Ordering Assistant icon

Birthday Cake Ordering Assistant

Life Service Updated 2026.08.30

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

Install @user_9142b921/shengridangao according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

When a user asks to order a birthday cake through chat or automation, the task is not only product search. It also involves handling a login credential, delivery city, saved addresses, product specs, payment link generation, and order status checks. Direct API use can get messy with Chinese parameters, leaked token values, inconsistent field names, and spec mismatches.

How It Works

The skill wraps a JSON-RPC 2.0 endpoint and turns cake ordering into a repeatable workflow:

  • Credential handling: the current user provides the user_token, and the skill stores it in dgss_token.md to keep sensitive data out of version control.
  • Address setup: cities are normalized to the city level, then saved addresses are listed or added using the area and addr fields.
  • Product search: only the cake category cat_id=1 is accepted. The result should show brand, product name, spec, price, and details.
  • Order validation: before submission, the skill checks spec_id against the selected spec name, generates the payment link, and extracts the scene parameter from the returned URL.
  • Order lookup: it can query the latest order status using scene, which is useful for follow-up checks or repeat purchases.

Boundaries

  • It only supports cake ordering, not snacks, flowers, refunds, logistics, invoices, or similar tasks.
  • One order uses a single spec and should not batch or duplicate submissions.
  • On Windows, use a Python invocation path to avoid Chinese parameter encoding issues.
  • User-facing output should stay concise, without exposing API domains, internal fields, or raw error traces.

Use Cases

  • A user provides a city and recipient details in chat, and the skill selects or adds a delivery address via the address API.
  • A user says “15cm chocolate cake,” and the skill searches the cake category to show brand, spec, and price.
  • After the user picks a cake and quantity, the skill validates the spec ID and generates a scannable payment link.
  • A user provides a numeric scene code, and the skill uses it to query the product name and current order status.

Best For

  • Office administrators preparing birthday surprises who need fast cake selection and payment-link generation
  • Engineers building personal assistants who want city-based cake lookup and payment link creation
  • Product developers integrating chat bots who need address and spec validation in the workflow
  • Automation engineers testing external MCP endpoints and validating JSON-RPC responses with order-status lookup