Daily use

Product catalogs

The 4 tools for product catalogs. Before an agent first makes one, it reads guide topic catalog.

create_catalog

Make a product catalog in a space: things bought or wanted from any store — a shopping history, a wish list, gift ideas, the kit for a new office. People see a store-style grid of cards (picture, title, store, rating, price, status) with search, filters and totals, and open a product to its own page: its pictures on the left; its price, store, button to its page, status, order, details, reviews (links to reviews elsewhere) and links (manual, warranty) on the right; its related products in a row under it. They comment on a product. Everything about a product comes from its page at the store (or the order, receipt or email the person gave you), and every review, related product and link from a page you read, never from memory. What you leave out, Artifacts fills from the url's page where the page offers it (its preview tags and schema.org product data: the title, pictures, store, brand, price, rating); filled_from_pages says what it filled. Some stores offer only a title, or nothing. Read guide topic "catalog" first; check it with render_catalog.

Parameters

space_idstringrequired
titlestringrequired
What the catalog is: "Shopping history", "Office kit".
subtitlestring
One line under the title: whose, and what it covers.
productsobject[]
Show child attributes
titlestring
Its name as the store lists it: "Anker 737 Power Bank (24,000mAh)". Needed unless url's page gives it.
urlstring
Its page at the store: the button on its page goes there.
imagesstring[]
Its pictures, the main one first: http(s) addresses of the images on its page (the full-size ones), or addresses add_asset gave.
brandstring
Who makes it: "Anker".
storestring
Where it is from: "Amazon", "IKEA", "Best Buy". Left out, the page's site name, then its address.
pricenumber
What one cost (or costs now), in currency: 79.99.
list_pricenumber
The price before a discount, shown struck through, with the saving.
currencystring
An ISO code, default USD.
quantityinteger
How many were bought; totals use price × quantity.
statusstring
Where it stands, in a few set words used the same way across the catalog: "Wishlist", "Ordered", "Delivered", "Returned". People filter by it.
categorystring
What kind of thing: "Electronics", "Kitchen".
datestring
The day it was bought, ordered or added, YYYY-MM-DD. The list sorts by it.
order_idstring
The order number at the store.
ratingnumber
Its rating at the store, out of 5: 4.6.
rating_countinteger
How many ratings that rating is from: 8412.
summarystring
A paragraph on what it is, from its page.
featuresstring[]
"About this item": up to fifteen short points from its page.
specsobject[]
Its details table: { label: "Capacity", value: "24,000 mAh" }.
Show child attributes
labelstringrequired
valuestringrequired
reviewsobject[]
Reviews of it elsewhere (magazines, testers, videos, forums), the most trusted first: up to 12. A whole list: it replaces the reviews there.
Show child attributes
titlestringrequired
The review's headline as published.
urlstringrequired
The review itself: the article, the video, the thread.
sourcestring
Who published it: "Wirecutter", "The Verge", "RTINGS", "YouTube · MKBHD". Left out, its address.
scorestring
The verdict as the review gives it, in a few characters: "8/10", "4.5/5", "Our pick", "Recommended".
excerptstring
One or two sentences quoted from it: the verdict, a strength or a problem.
authorstring
datestring
YYYY-MM-DD, when it was published.
relatedobject[]
Products that go with it or instead of it: accessories, alternatives, the model up or down — up to 12, shown as a row under its page. A whole list: it replaces the related products there.
Show child attributes
titlestringrequired
Its name as its store lists it.
urlstringrequired
Its page at its store. A product of this catalog with the same url opens in the catalog.
imagestring
Its main picture: an http(s) address of the image on its page.
pricenumber
currencystring
An ISO code, default USD.
storestring
Left out, its address.
ratingnumber
Out of 5.
rating_countinteger
relationstring
How it relates, in a word or two: "Accessory", "Cheaper alternative", "The model up", "Bought together", "Replacement part".
linksobject[]
Pages about it worth keeping: the manual, the warranty, the return policy, support — up to 12. A whole list: it replaces the links there.
Show child attributes
labelstringrequired
What the page is: "User manual", "Warranty", "Return policy", "Support", "Size guide".
urlstringrequired

read_catalog

A product catalog as it is now: title, subtitle, totals (the spend by currency, how many per status and per store), and every product in order with its id (what update_catalog and comment take) and all its fields, its reviews, related products and links included.

Parameters

item_idstringrequired

update_catalog

Change a product list. Any of: title, subtitle; add_products (after the others); change_products (by id: the fields you give replace those fields — images, features, specs, reviews, related and links as whole lists —; "" or [] clears one); remove_products (ids); order_products (every id, in the new order). Applied in that order, all or nothing. Everything about a product comes from its page at the store (or the order, receipt or email the person gave you), and every review, related product and link from a page you read, never from memory. What you leave out, Artifacts fills from the url's page where the page offers it (its preview tags and schema.org product data: the title, pictures, store, brand, price, rating); filled_from_pages says what it filled. Some stores offer only a title, or nothing. read_catalog first for the ids — people may have changed it.

Parameters

item_idstringrequired
titlestring
subtitlestring
add_productsobject[]
Show child attributes
titlestring
Its name as the store lists it: "Anker 737 Power Bank (24,000mAh)". Needed unless url's page gives it.
urlstring
Its page at the store: the button on its page goes there.
imagesstring[]
Its pictures, the main one first: http(s) addresses of the images on its page (the full-size ones), or addresses add_asset gave.
brandstring
Who makes it: "Anker".
storestring
Where it is from: "Amazon", "IKEA", "Best Buy". Left out, the page's site name, then its address.
pricenumber
What one cost (or costs now), in currency: 79.99.
list_pricenumber
The price before a discount, shown struck through, with the saving.
currencystring
An ISO code, default USD.
quantityinteger
How many were bought; totals use price × quantity.
statusstring
Where it stands, in a few set words used the same way across the catalog: "Wishlist", "Ordered", "Delivered", "Returned". People filter by it.
categorystring
What kind of thing: "Electronics", "Kitchen".
datestring
The day it was bought, ordered or added, YYYY-MM-DD. The list sorts by it.
order_idstring
The order number at the store.
ratingnumber
Its rating at the store, out of 5: 4.6.
rating_countinteger
How many ratings that rating is from: 8412.
summarystring
A paragraph on what it is, from its page.
featuresstring[]
"About this item": up to fifteen short points from its page.
specsobject[]
Its details table: { label: "Capacity", value: "24,000 mAh" }.
Show child attributes
labelstringrequired
valuestringrequired
reviewsobject[]
Reviews of it elsewhere (magazines, testers, videos, forums), the most trusted first: up to 12. A whole list: it replaces the reviews there.
Show child attributes
titlestringrequired
The review's headline as published.
urlstringrequired
The review itself: the article, the video, the thread.
sourcestring
Who published it: "Wirecutter", "The Verge", "RTINGS", "YouTube · MKBHD". Left out, its address.
scorestring
The verdict as the review gives it, in a few characters: "8/10", "4.5/5", "Our pick", "Recommended".
excerptstring
One or two sentences quoted from it: the verdict, a strength or a problem.
authorstring
datestring
YYYY-MM-DD, when it was published.
relatedobject[]
Products that go with it or instead of it: accessories, alternatives, the model up or down — up to 12, shown as a row under its page. A whole list: it replaces the related products there.
Show child attributes
titlestringrequired
Its name as its store lists it.
urlstringrequired
Its page at its store. A product of this catalog with the same url opens in the catalog.
imagestring
Its main picture: an http(s) address of the image on its page.
pricenumber
currencystring
An ISO code, default USD.
storestring
Left out, its address.
ratingnumber
Out of 5.
rating_countinteger
relationstring
How it relates, in a word or two: "Accessory", "Cheaper alternative", "The model up", "Bought together", "Replacement part".
linksobject[]
Pages about it worth keeping: the manual, the warranty, the return policy, support — up to 12. A whole list: it replaces the links there.
Show child attributes
labelstringrequired
What the page is: "User manual", "Warranty", "Return policy", "Support", "Size guide".
urlstringrequired
change_productsobject[]
Show child attributes
idstringrequired
The product, by the id read_catalog gives.
titlestring
Its name as the store lists it: "Anker 737 Power Bank (24,000mAh)". Needed unless url's page gives it.
urlstring
Its page at the store: the button on its page goes there.
imagesstring[]
Its pictures, the main one first: http(s) addresses of the images on its page (the full-size ones), or addresses add_asset gave.
brandstring
Who makes it: "Anker".
storestring
Where it is from: "Amazon", "IKEA", "Best Buy". Left out, the page's site name, then its address.
pricenumber
What one cost (or costs now), in currency: 79.99.
list_pricenumber
The price before a discount, shown struck through, with the saving.
currencystring
An ISO code, default USD.
quantityinteger
How many were bought; totals use price × quantity.
statusstring
Where it stands, in a few set words used the same way across the catalog: "Wishlist", "Ordered", "Delivered", "Returned". People filter by it.
categorystring
What kind of thing: "Electronics", "Kitchen".
datestring
The day it was bought, ordered or added, YYYY-MM-DD. The list sorts by it.
order_idstring
The order number at the store.
ratingnumber
Its rating at the store, out of 5: 4.6.
rating_countinteger
How many ratings that rating is from: 8412.
summarystring
A paragraph on what it is, from its page.
featuresstring[]
"About this item": up to fifteen short points from its page.
specsobject[]
Its details table: { label: "Capacity", value: "24,000 mAh" }.
Show child attributes
labelstringrequired
valuestringrequired
reviewsobject[]
Reviews of it elsewhere (magazines, testers, videos, forums), the most trusted first: up to 12. A whole list: it replaces the reviews there.
Show child attributes
titlestringrequired
The review's headline as published.
urlstringrequired
The review itself: the article, the video, the thread.
sourcestring
Who published it: "Wirecutter", "The Verge", "RTINGS", "YouTube · MKBHD". Left out, its address.
scorestring
The verdict as the review gives it, in a few characters: "8/10", "4.5/5", "Our pick", "Recommended".
excerptstring
One or two sentences quoted from it: the verdict, a strength or a problem.
authorstring
datestring
YYYY-MM-DD, when it was published.
relatedobject[]
Products that go with it or instead of it: accessories, alternatives, the model up or down — up to 12, shown as a row under its page. A whole list: it replaces the related products there.
Show child attributes
titlestringrequired
Its name as its store lists it.
urlstringrequired
Its page at its store. A product of this catalog with the same url opens in the catalog.
imagestring
Its main picture: an http(s) address of the image on its page.
pricenumber
currencystring
An ISO code, default USD.
storestring
Left out, its address.
ratingnumber
Out of 5.
rating_countinteger
relationstring
How it relates, in a word or two: "Accessory", "Cheaper alternative", "The model up", "Bought together", "Replacement part".
linksobject[]
Pages about it worth keeping: the manual, the warranty, the return policy, support — up to 12. A whole list: it replaces the links there.
Show child attributes
labelstringrequired
What the page is: "User manual", "Warranty", "Return policy", "Support", "Size guide".
urlstringrequired
remove_productsstring[]
order_productsstring[]

render_catalog

See a product catalog as people do: a screenshot of the grid of cards, and with product (an id) that product's own page as it opens — pictures, price, details, reviews, links and its row of related products. Plus checks — products without a picture, a url or a price, the same url twice, a status written two ways — and errors the page hit. Look at every picture: one that does not load shows as a broken or empty tile.

Parameters

item_idstringrequired
productstring
A product id: show its page instead of the grid.