Fejlesztőknek
Kezdj bele
AI/Tool reference/Catalog/Product content and recommendations

Product content and recommendations

Ez az oldal még csak angolul érhető el.

The 9 tools of the Product content and recommendations toolset in the Catalog area, with their permissions, approval rules and inputs.

Ezen az oldalon

Toolset product_content, 9 tools.

Records

product_relations

The related products and add-ons one product shows: the ones picked by hand, the ones picked automatically and the automatic ones hidden. Pass the product id.

  • Permission: products.read
  • Tools: product_relations_get

recommendation_excluded

The products the store never recommends, with their title and thumbnail.

  • Permission: products.read
  • Tools: recommendation_excluded_list

recommendation_settings

How the store recommends products: whether it is on, where it shows (product page related and add-ons, cart, abandoned-cart email), the categories it leaves out, the price band of a similar product and the signals it uses. There is one record; pass any id, e.g. "current".

  • Permission: products.read
  • Tools: recommendation_settings_get

variants_without_weight

How many variants have no weight, which weight-based shipping prices cannot use. There is one record; pass any id, e.g. "current".

  • Permission: products.read
  • Tools: variants_without_weight_get

Actions

product_relations_hide_auto

Hide or show one automatically chosen related product or add-on on a product.

  • Action key: product_relations.hide_auto
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
product_idstringyes
kindstringyesone of "related", "addon"
other_product_idstringyesThe recommended product to hide or show
hiddenbooleanyes

Example input:

{
  "product_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b",
  "kind": "related",
  "other_product_id": "019bb596-4f49-7df2-8e43-087dbab6350c",
  "hidden": true
}

product_relations_set

Add related products or add-ons to a product, or unlink them.

kind is related or addon. product_ids are added to the hand-picked list, or taken off it with unlink. mutual links both products to each other.

  • Action key: product_relations.set
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
product_idstringyes
kindstringyesone of "related", "addon"
product_idslist of stringyesat least 1 characters
mutualboolean
unlinkboolean

Example input:

{
  "product_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b",
  "kind": "related",
  "product_ids": [
    "019bb596-4f49-7df2-8e43-087dbab6350c"
  ]
}

product_seo_set

Set the search title and description of a product, its share card, and how search engines index it.

Read the current settings with product_get include seo. A field left out stays as it is; null resets it to automatic. robots_index false hides the page from search engines and the sitemap; canonical_url names the address search engines should index instead (a storefront path /… or an https address). The sitemap priority and change frequency are hints search engines mostly ignore; leave them automatic unless asked.

  • Action key: product_seo.set
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
product_idstringyes
seo_titlestring or nullSearch result title; null resets it. at most 70 characters
seo_descriptionstring or nullSearch result description; null resets it. at most 320 characters
og_titlestring or nullTitle of the share card on social networks; null uses the search title. at most 200 characters
og_descriptionstring or nullText of the share card; null uses the search description. at most 500 characters
og_media_idstring or nullMedia library file id of the share picture (media_list finds them); null removes it
robots_indexbooleanfalse hides the page from search engines
robots_followbooleanfalse asks search engines not to follow the links on the page
canonical_urlstring or nullThe address search engines index instead; null clears it. at most 2048 characters
sitemap_includebooleanfalse leaves the page out of the sitemap
sitemap_prioritynumber or null0 to 1 in steps of 0.1; null is automatic. 0 to 1
sitemap_changefreqstring or nullnull is automatic. one of "always", "hourly", "daily", "weekly", "monthly", "yearly", "never"
search_expires_atstring or nullISO 8601 date and time after which search engines drop the page; null clears it

Example inputs:

{
  "product_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b",
  "seo_title": "Handmade soap",
  "seo_description": "Cold-process soap."
}
{
  "product_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b",
  "og_title": "Our handmade soap",
  "robots_index": false
}

recommendation_rule_set

Turn automatic recommendations off for a product, or leave it out of everyone else's.

  • Action key: recommendation_rule.set
  • Permission: products.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
product_idstringyes
auto_offbooleanNo automatic recommendations on this product page
excludedbooleanNever recommend this product

Example input:

{
  "product_id": "019bb58e-0ec1-79c1-9f40-d39d8d07674b",
  "excluded": true
}

recommendation_settings_update

Change how products are recommended.

Only the fields passed change.

  • Action key: recommendation_settings.update
  • Permission: settings.write
  • Approval: Waits for approval when the store requires it for this action.
  • Effect: Changes the live store.
  • Retries: safe to repeat with the same input.
FieldTypeRequiredDescription
enabledboolean
placementsobject
placements.pdp_relatedboolean
placements.pdp_addonsboolean
placements.cartboolean
placements.abandoned_cart_emailboolean
excluded_category_idslist of stringat most 200 items
similar_price_bandnumber0.5 keeps prices within half to one and a half times. 0.1 to 5
signalsobject
signals.boughtboolean
signals.viewedboolean
signals.similarboolean

Example input:

{
  "enabled": true,
  "placements": {
    "cart": false
  }
}
Utoljára frissítve