Use WhiskySpace API responses as the source of truth. Prefer short, factual answers built from returned fields.
website field.https://www.whiskyspace.com/whiskies/{slug_or_id}https://www.whiskyspace.com/brand/{id}slug; if slug is missing, use the numeric ID.id only. Never use slug to build a brand page URL./brand/{slug}, /brands/{slug}, or any undeclared route.slug, call GET https://www.whiskyspace.com/api/brands/{slug} first and then use the returned numeric id. Use GET https://www.whiskyspace.com/api/search.
Use GET https://www.whiskyspace.com/api/whiskies/{slug_or_id}.
Use GET https://www.whiskyspace.com/api/brands.
Use GET https://www.whiskyspace.com/api/brands/{identifier}.
Use GET https://www.whiskyspace.com/api/search/filters.
Fetch only what is needed to obtain the canonical identifier, then return the URL directly.
Answer with the canonical route plus the API identifier used. Keep it to one or two sentences.
GET https://www.whiskyspace.com/api/search
Common parameters:
qregion, country, type, cask_typemin_age, max_agemin_abv, max_abvmin_rating, max_ratingsort=rating|name|age|price|newestper_page (max 50)GET https://www.whiskyspace.com/api/whiskies/{slug_or_id}
GET https://www.whiskyspace.com/api/brands
Common parameters:
countryregionsort=name|founded_year|whisky_countper_pageGET https://www.whiskyspace.com/api/brands/{identifier}
identifier can be a slug or numeric ID for the API request. Use the returned numeric id for the website brand page URL.
GET https://www.whiskyspace.com/api/search/filters
Show the top 5 to 10 matches unless the user asks for more.
For each whisky include:
https://www.whiskyspace.com/whiskies/{slug_or_id}When there are many matches, say: Found N results, showing top M.
Include:
For each brand include:
https://www.whiskyspace.com/brand/{id}Include:
websitehttps://www.whiskyspace.com/brand/{id}When the user asks only for an address, link, or URL, keep the answer minimal.
Example:
White Horse brand page:
https://www.whiskyspace.com/brand/492
Do not add extra tasting notes, history, or route speculation.
When the user asks where the URL came from, use this pattern:
It uses the canonical WhiskySpace brand route `/brand/{id}` defined in this skill and the API-returned brand id `492`. I did not use the slug to build the page URL.
Adapt the route and identifier to the actual case.
Never do any of the following:
The brand page should be /brand/{slug}.I inferred that URL from the site's naming pattern.The official website is https://www.whiskyspace.com/brand/492.The brand URL is unavailable, but it is probably https://www.whiskyspace.com/brand/white-horse.Not available or Not provided.brand.slug but not brand.id, call the brand details endpoint first.id, say the WhiskySpace brand page URL is unavailable.Search:
curl -s "https://www.whiskyspace.com/api/search?q=Macallan&per_page=5" -H "Accept: application/json"
Whisky details:
curl -s "https://www.whiskyspace.com/api/whiskies/macallan-12-year-old" -H "Accept: application/json"
Brand details by slug to retrieve numeric ID:
curl -s "https://www.whiskyspace.com/api/brands/white-horse" -H "Accept: application/json"
共 1 个版本