Connect a Shopify store
connect_shopify_storeConnect the owner's Shopify store to this site so its products become the site's catalog and the site chat and WhatsApp assistant can answer product questions with each product's buy link. Usually needs ONLY the store address (shop_domain: the address shoppers visit, or the myshopify.com address): the store's public catalogue is read with no key and no Shopify app, giving products, descriptions, prices, variants, images, in stock or sold out (no stock counts) and buy links. That connection does NOT offer order status, order events or live webhooks; say so if the owner asks for them. It fails with a clear message when the store has a storefront password or has turned its public product list off. admin_token is optional, only for stores that already have an Admin API token (Shopify no longer lets owners create new admin apps): it adds stock counts, order status for verified customers and webhooks; it is tested before anything is saved, stored encrypted and never shown again; never repeat it back in your reply. webhook_secret applies only with admin_token. Reconnecting replaces the earlier connection. Then call sync_shopify_products.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"shop_domain": "<shop_domain>"
},
"name": "connect_shopify_store"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| admin_token | No | Optional. Only if the owner already has a Shopify Admin API access token; leave out to connect with the store address alone | |
| shop_domain | Yes | The store's address, e.g. mystore.com or my-store.myshopify.com (with admin_token: the myshopify.com address) | |
| webhook_secret | No | Optional, with admin_token only. The store's webhook signing secret, for live updates | |
| publish_on_sync | No | Publish synced products so the assistant and site can use them (default true). False imports them as drafts to review first. |