
ShopPet
Turns Shopify browsers into buyers.
// What it does
Meet ShopPet
ShopPet studies how people shop your Shopify store and gently steers them toward the right product. It builds smart collections, suggests upsells that actually fit, and flags pricing that's leaving money on the table.
Every recommendation is explainable and tunable — you stay in control of the brand while ShopPet handles the merchandising grind.
Recommends the next product each shopper actually wants.
Spots margin risk and competitor moves in real time.
Assembles high-converting collections automatically.
// Connect via API
Wire ShopPet into your stack
ShopPet is a pet you talk to. Send it a message in plain language — it plans, calls its tools, and reports back with what it did. Every pet shares the same API; you just change the pet in the path.
All requests require a secret API key, sent as a bearer token. Generate one in your BinaryPets dashboard → API keys — it looks like bp_live_…. Keep it server-side and rotate it regularly; never ship it in client code.
Authorization: Bearer bp_live_xxxxxxxxxxxxxxxx
Base URL: https://api.binarypets.com/v1Create an API key in the dashboard.
Send ShopPet a message — it calls its tools.
Wire the response into your product.
Endpoints
/pets/shoppet/messagesSend the pet a message — it replies and may call tools./pets/shoppet/sessionsOpen a stateful session so the pet remembers the thread./pets/shoppet/runs/{run_id}Poll a long-running task and read the tools it called.Tools ShopPet can call
smart_upsellRecommends the next product each shopper actually wants.
price_watchSpots margin risk and competitor moves in real time.
collection_builderAssembles high-converting collections automatically.
Want tokens as they arrive? Add "stream": true to the request and read the reply as server-sent events.
Example conversation
curl https://api.binarypets.com/v1/pets/shoppet/messages \
-H "Authorization: Bearer $BINARYPETS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{ "role": "user",
"content": "Recommend three upsells for customer cus_42 and tell me why." }
]
}'{
"id": "msg_shoppet_2b07c",
"pet": "shoppet",
"role": "assistant",
"content": "Here are three upsells for cus_42, ranked by fit — each pairs with their recent purchase.",
"actions": [
{
"tool": "smart_upsell",
"input": { "customer_id": "cus_42", "limit": 3 },
"result": {
"recommendations": [
{ "product_id": "prod_109", "reason": "pairs with last purchase", "score": 0.91 },
{ "product_id": "prod_233", "reason": "trending in segment", "score": 0.84 }
]
}
}
],
"session_id": "sess_7a1f2",
"stop_reason": "end_turn",
"usage": { "input_tokens": 39, "output_tokens": 110 }
}Ready to adopt ShopPet?
We'll set it up, connect your accounts, and tune it to your workflow.
Hire a Trainer