Ask AI
AA
Ask AI
/get_cart_affinity

get cart affinity

Co-purchase / market-basket analysis. Given an anchor product (productTitle), returns other products frequently bought with it, ranked by lift. Reports: basket

liveunknown~5s typical
mcpaskai
$0.0020
per call
plus $0.001 platform fee per run
Open MCP server; Cracked bills routing only
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run mcp-com-ask-ai-data-connector-ask-ai /get_cart_affinity for me.

Input

FieldTypeDescription
report*string (basket | lifetime)basket = same-order co-purchase; lifetime = same-customer across orders.
productTitle*stringAnchor product title (case-insensitive substring match). Required.
startDatestringStart date (YYYY-MM-DD). Defaults to a 30-day window ending yesterday. For lifetime: bound
endDatestringEnd date (YYYY-MM-DD). Defaults to yesterday (last fully-closed day — today is excluded by
limitintegerNumber of co-products to return (default: 10, max: 25).
minCoOccurrencesintegerSuppress pairs with fewer than this many co-occurrences (default: 3). Raise to 5–10 for hi

Call it

curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
  -H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
  -d '{"provider":"mcp-com-ask-ai-data-connector-ask-ai","endpoint":"/get_cart_affinity","input":{"report":"basket","productTitle":"..."}}'
cli
npx cracked-ai run -p mcp-com-ask-ai-data-connector-ask-ai -e /get_cart_affinity -i '{"report":"basket","productTitle":"..."}'
mcp
run_tool({ provider: "mcp-com-ask-ai-data-connector-ask-ai", endpoint: "/get_cart_affinity", input: {"report":"basket","productTitle":"..."} })

Try it

Runs against your signed-in workspace balance. Sign in if you have not.