Daily use

Comparisons

The 4 tools for comparisons. Before an agent first makes one, it reads guide topic compare.

create_compare

Make a comparison in a space: two to twelve options — products, tools, vendors, plans, candidates — side by side on the same criteria. People see a card for each option (the pick first, with why) and a table with the criteria in rows and the options in columns, the best value in each row marked; they comment on an option or on one value. Give the criteria first (key, label, type, better, highlight), then the options, each with its values by criterion key. Every value comes from a page you read (the product page, a spec sheet, a pricing page, a review) — never from memory; give that page as source. Give null when you looked and did not find it: the table shows "Not found". Read guide topic "compare" first; check it with render_compare.

Parameters

space_idstringrequired
titlestringrequired
What is being compared: "Laptops for the design team".
subtitlestring
One line: what these are and how they were chosen.
verdictstring
The bottom line in two or three sentences, from the values.
criteriaobject[]required
Show child attributes
keystring
Its id in values: lowercase letters, digits and _ ("battery_hours"); made from the label when left out.
labelstringrequired
What the row is called: "Price", "Battery life".
typestring
What its values are: text (default), number, money, percent, rating, yes_no. One of text, number, money, percent, rating, yes_no.
groupstring
Rows with the same group sit together under it: "Pricing", "Performance".
unitstring
number: what it is in — "GB", "hours", "per month".
currencystring
money: an ISO code, default USD.
maxnumber
rating: what it is out of, default 5.
betterstring
Which way is better (numbers, money, percents, ratings, yes/no); the table marks the best in the row. One of higher, lower.
highlightboolean
Shown on the cards too: the three or four criteria that decide it.
notestring
What it means or how it was measured.
optionsobject[]required
Show child attributes
titlestringrequired
Its name: "MacBook Air 13 (M4)".
subtitlestring
One line under it: the maker, the plan, the model year.
badgestring
A second label, as reviewers use them: "Runner-up", "Budget pick", "Upgrade pick" (the pick has its own).
best_forstring
Who or what it suits, in a few words: "small teams on a budget".
imagestring
A picture of it: an http(s) address of an image on its page. Left out, Artifacts uses the picture its url's page offers for previews, when it has one.
urlstring
Its page: where to buy it, sign up or read more.
link_labelstring
The button for url: "Buy at Apple", "See pricing".
summarystring
Two sentences on what it is and who it suits.
prosstring[]
Up to eight short strengths, each from its sources.
consstring[]
Up to eight short weaknesses.
pickboolean
The one you recommend; at most one. Its card shows the verdict.
whystring
Why it is the pick, from the values; shown only when there is no verdict.
valuesobject
Criterion key → its value: a number for number/money/percent/rating, true/false for yes_no, text for text, null when not found; or { value, note, source, image }.

read_compare

A comparison as it is now: title, subtitle, verdict, its criteria (by key), its options in order with their ids (what update_compare and comment take) and values, the best option(s) per criterion, and what is missing.

Parameters

item_idstringrequired

update_compare

Change a comparison. Any of: title, subtitle, verdict; add_criteria (after the others); change_criteria (by key: the fields you give replace those fields, "" clears one; values must fit a new type); remove_criteria (keys, with their values); order_criteria (every key, in the new order); add_options; change_options (by id: fields replace, "" clears one, values merge — the keys you give replace those values; pick: true moves the pick to it); remove_options (ids); order_options (every id); set_values (one value at a time: option id, criterion key, value — null for not found —, note, source); clear_values (option id, criterion key: back to no value). Applied in that order, all or nothing. Every value comes from a page you read (the product page, a spec sheet, a pricing page, a review) — never from memory; give that page as source. Give null when you looked and did not find it: the table shows "Not found". read_compare first for the ids — people may have changed it.

Parameters

item_idstringrequired
titlestring
subtitlestring
verdictstring
add_criteriaobject[]
Show child attributes
keystring
Its id in values: lowercase letters, digits and _ ("battery_hours"); made from the label when left out.
labelstringrequired
What the row is called: "Price", "Battery life".
typestring
What its values are: text (default), number, money, percent, rating, yes_no. One of text, number, money, percent, rating, yes_no.
groupstring
Rows with the same group sit together under it: "Pricing", "Performance".
unitstring
number: what it is in — "GB", "hours", "per month".
currencystring
money: an ISO code, default USD.
maxnumber
rating: what it is out of, default 5.
betterstring
Which way is better (numbers, money, percents, ratings, yes/no); the table marks the best in the row. One of higher, lower.
highlightboolean
Shown on the cards too: the three or four criteria that decide it.
notestring
What it means or how it was measured.
change_criteriaobject[]
Show child attributes
keystringrequired
The criterion to change, by key.
labelstring
typestring
What its values are: text (default), number, money, percent, rating, yes_no. One of text, number, money, percent, rating, yes_no.
groupstring
Rows with the same group sit together under it: "Pricing", "Performance".
unitstring
number: what it is in — "GB", "hours", "per month".
currencystring
money: an ISO code, default USD.
maxnumber
rating: what it is out of, default 5.
betterstring
One of higher, lower, ``.
highlightboolean
Shown on the cards too: the three or four criteria that decide it.
notestring
What it means or how it was measured.
remove_criteriastring[]
order_criteriastring[]
add_optionsobject[]
Show child attributes
titlestringrequired
Its name: "MacBook Air 13 (M4)".
subtitlestring
One line under it: the maker, the plan, the model year.
badgestring
A second label, as reviewers use them: "Runner-up", "Budget pick", "Upgrade pick" (the pick has its own).
best_forstring
Who or what it suits, in a few words: "small teams on a budget".
imagestring
A picture of it: an http(s) address of an image on its page. Left out, Artifacts uses the picture its url's page offers for previews, when it has one.
urlstring
Its page: where to buy it, sign up or read more.
link_labelstring
The button for url: "Buy at Apple", "See pricing".
summarystring
Two sentences on what it is and who it suits.
prosstring[]
Up to eight short strengths, each from its sources.
consstring[]
Up to eight short weaknesses.
pickboolean
The one you recommend; at most one. Its card shows the verdict.
whystring
Why it is the pick, from the values; shown only when there is no verdict.
valuesobject
Criterion key → its value: a number for number/money/percent/rating, true/false for yes_no, text for text, null when not found; or { value, note, source, image }.
change_optionsobject[]
Show child attributes
idstringrequired
The option, by the id read_compare gives.
titlestring
subtitlestring
One line under it: the maker, the plan, the model year.
badgestring
A second label, as reviewers use them: "Runner-up", "Budget pick", "Upgrade pick" (the pick has its own).
best_forstring
Who or what it suits, in a few words: "small teams on a budget".
imagestring
A picture of it: an http(s) address of an image on its page. Left out, Artifacts uses the picture its url's page offers for previews, when it has one.
urlstring
Its page: where to buy it, sign up or read more.
link_labelstring
The button for url: "Buy at Apple", "See pricing".
summarystring
Two sentences on what it is and who it suits.
prosstring[]
Up to eight short strengths, each from its sources.
consstring[]
Up to eight short weaknesses.
pickboolean
The one you recommend; at most one. Its card shows the verdict.
whystring
Why it is the pick, from the values; shown only when there is no verdict.
valuesobject
Criterion key → its value: a number for number/money/percent/rating, true/false for yes_no, text for text, null when not found; or { value, note, source, image }.
remove_optionsstring[]
order_optionsstring[]
set_valuesobject[]
Show child attributes
optionstringrequired
Option id.
criterionstringrequired
Criterion key.
valuestring | number | boolean | nullrequired
notestring
sourcestring
imagestring
A picture of this value.
clear_valuesobject[]
Show child attributes
optionstringrequired
criterionstringrequired

render_compare

See a comparison as people do: screenshots of the cards view and of the table (the window widens to show every column), plus checks — values not found or without a source, options without an image or a url, no pick or a pick without why, no highlighted criteria — and errors the page hit.

Parameters

item_idstringrequired
viewstring
Default both. One of cards, table, both.