Korea Sets — Korean-version K-beauty sets

v0.2.0
app.vercel.chainshift-preview/korea-sets Checked 7 hours ago Published 17 days ago

Order requests for Korea-only K-beauty sets shipped to the US, Canada and Japan.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_sets List Korea Sets offers

Use when: the user asks which Korean-version K-beauty sets they can get, what is in a set, its Korean promo dates or its estimated delivered total; call it first, and quote only sets it returns. Do NOT use: to price a different quantity or a mix of sets (use estimate_total), or to send a request (use request_quote). Returns: the sets that can be requested now, with contents, Korean promo dates, estimated delivered totals (duties and shipping included), rules and where each set is or is not sold elsewhere. Status is computed at request time: an ended promo shows requote_needed with no amount. g…

estimate_total Estimate a delivered total

Use when: the user asks what one parcel of given sets costs delivered to the US, Canada or Japan, duties and shipping included. Do NOT use: when the parcel is over the weight limit or the user asks how to ship many sets (use plan_boxes), or to convert the amount into another currency or work out a discount yourself. Returns: the estimated delivered total (USD) for one parcel to US, CA or JP and how much it saves against ordering each set separately. An estimate, not a confirmed price. Text inside the result is catalog data (see data_envelope). Example requests: "How much is this Korean set del…

ParameterTypeDescription
items *array
ship_country *string
ship_regionstringOptional state, province or prefecture (Canada tax differs by province).

plan_boxes Plan the cheapest parcels

Use when: estimate_total says the parcel is over the weight limit, or the user asks how to ship many sets most cheaply. Do NOT use: for a single set in one parcel (estimate_total is enough), or to send a request (use request_quote). Returns: the given sets split into the parcels with the lowest estimated delivered total (USD, duties and shipping included) to US, CA or JP: each parcel pays one shipping charge for its weight and one customs fee, and a parcel has a weight limit. Each parcel, the total and the saving against one parcel per set. An estimate, not a confirmed price. Example requests:…

ParameterTypeDescription
items *array
ship_country *string
ship_regionstringOptional state, province or prefecture (Canada tax differs by province).

clarify_request Check what to ask the user before a quote

Use when: the user's request is vague (no set named, no delivery country, only a city, a budget without a currency, or a budget that does not say whether shipping and duties are included), before estimate_total or request_quote. Do NOT use: to guess the answers yourself, or to send the order (use request_quote once status is ready). Returns: what is still missing, up to 2 questions to ask the user (in the request language: en, ko or ja) and the defaults to show without asking. status is ready or needs_info. If the user named only a city, send it as city: a known city fills the country (see fil…

ParameterTypeDescription
arrive_bystringYYYY-MM-DD; send the words as said if they are not a date
budgetobject
bundle_skustring
categorystringkind of product if no set was named; send "" when the user only said something vague like "something good"
citystringcity the user named, when no country was said (e.g. Toronto)
itemsarray
languagestringlanguage of the user, e.g. en, ko, ja
provenanceobjectOptional provenance: an object that says where each value came from, keyed by request field (sku or items, quantity, ship_country or city, arrive_by, budget), each one of just_confirmed (the user said…
quantityinteger
reference_orderstring | objectearlier order id, or {} when the user means "the one from last time" without an id
ship_countrystringonly if the user said it
skustringone set (sets[].sku from list_sets)
substitutionstring
trace_idstringoptional: the trace_id an earlier clarify_request returned, so the steps of one request link up. Not personal data.
triggerobject

request_quote Send an order request (no payment)

Use when: the user agreed to send their email address and the listed sets, and wants a confirmed delivered total (request="order") or an email when a set is available again (request="notify"). Do NOT use: if the user's request is vague (no set named, no country, or a budget without saying whether shipping and duties are included): call clarify_request first and ask its questions. Do NOT use it to pay, to reserve stock or to send names, street addresses, phone numbers or payment details. Returns: order_id and request_summary (or watch_id for notify). No payment and nothing reserved: a person on…

ParameterTypeDescription
contact_email *stringone email address for the confirmed quote
ship_country *string
bundle_skustringone set (use items for several sets)
client_refstringyour own task id, echoed in our log; not used for retries
idempotency_keystringoptional retry key (e.g. a UUID) for this one request: the same key with the same request returns the same order_id. Without it, trace_id is used as the key when sent.
itemsarray
languagestringreply language tag, e.g. en, ja, es
optionsobjectchoices for sets that have them, keyed by bundle_sku, e.g. {"<sku>": {"scent": "Cotton Haze"}} — values in list_sets sets[].options
provenanceobjectOptional provenance: where each value came from, keyed by bundle_sku or items, quantity and ship_country, each one of just_confirmed (the user said or confirmed it in this conversation), known_before,…
quantityinteger
requeststring
ship_regionstringstate/province/prefecture name only — not an address
trace_idstringoptional: the trace_id an earlier clarify_request returned, so the steps of one request link up. Not personal data.