NAME
recommend-price-change — Suggest a price move with reasoning + comps. Addresses pain #14, #19, #23. Matrix mod 2026-06-01: + Engram (multi-device pricing context); premium variant moves to light-purple when Monte Carlo enabled.
SYNOPSIS
DESCRIPTION
Suggest a price move with reasoning + comps. Addresses pain #14, #19, #23. Matrix mod 2026-06-01: + Engram (multi-device pricing context); premium variant moves to light-purple when Monte Carlo enabled.
MECHANISM
;;~ title "Recommend a price change" ;;~ author "lacuna" ;;~ version 1 ;;~ mode automation ;;~ flavor light-purple ;;~ id recommend-price-change ;;~ touches () ;;~ summary "Suggest a price move with reasoning + comps." ;; Suggest a price move with reasoning + comps. ;; ;; Multi-step reasoning cart. precondition_fetch pulls the ;; needed shop facts, then escalates the reasoning step to ;; Sonnet via sakura/cloud-reason. Cloud is gated; we ask ;; consent before the relay if the operator hasn't pre-approved. (cart 'recommend-price-change '((author . "lacuna") (version . 1) (read-only . #t))) (define (start ctx) (let ((id (ctx-get 'listing-id ctx))) (if (null? id) (escalate 'missing-listing-id null) (next 'fetch ctx)))) (define (fetch ctx) (act 'etsy/listing (let ((id (ctx-get 'listing-id ctx))) (list id)) 'check-fetch)) (define (check-fetch ctx) (let ((r (ctx-result ctx))) (cond ((null? r) (escalate 'no-data null)) ((eq? r 'rate-limited) (after 30 'fetch ctx)) (else (next 'reason (ctx-set 'facts r ctx)))))) (define (reason ctx) (let ((facts (ctx-get 'facts ctx))) (act 'sakura/cloud-reason (list 'task 'recommend-price-change facts) 'check-reason))) (define (check-reason ctx) (let ((r (ctx-result ctx))) (cond ((null? r) (escalate 'cloud-empty null)) ((not (string? r)) (escalate 'cloud-garbled null)) ((eq? r 'cloud-quota-exhausted) (escalate 'cloud-quota null)) ((eq? r 'cloud-consent-required) (escalate 'cloud-consent null)) (else (next 'announce (ctx-set 'narrative r ctx)))))) (define (announce ctx) (done))
EXAMPLES
docs/automations/examples.json entry editable in place.TIER
FITNESS
Works on smaller shops too; the answer sharpens as you collect more sales.
SEE ALSO
- photo-classify
- photo-dim-detect
- photo-blur-detect
- photo-watermark-detect
- photo-composition-score
- photo-background-check
- photo-product-presence
- detect-near-duplicate-image
- suggest-photo-to-listing-match
- competitor-tag-overlap
- competitor-price-comp
- competitor-photo-style
- niche-trend-watch
- policy-preflight-listing
- category-ai-policy-check
- shipping-country-policy-check
- trending-keyword-pull
- holiday-trends
HISTORY
canonical source: curator/docs/AUTOMATIONS-CANONICAL.md · §8-green-cloud-assist-web-search-vision-46-baseline-152-post-matrix
last regenerated: 2026-06-05 20:31 UTC (mechanical — edits land in the MD or sidecars, not here)
KNOWN BUGS
(none recorded — flag in AUTOMATIONS-CANONICAL.md or open an issue against the cart file)