Connect Shopify to your Wiro AI agent
Products, inventory, orders and customers in your Shopify store.
What does Coralline Swim need to reorder this week? Anything under 10 units, and where that stock sits.
Coralline Swim has four active products under 10 units in total:
- Cove One-Piece: 3 in Portland, none at the Brooklyn store
- Lagoon Bikini Top: 6, all in Portland
- Shoreline Rash Guard: 4 in Portland, 2 in Brooklyn
- Sandbar Beach Shirt: 7 in Brooklyn
Portland also shows 12 Cove One-Pieces incoming, so that one may already be covered.
Overview
What Shopify does for your agent
Links one store through an app from Shopify's Dev Dashboard, whose granted scopes decide what the agent may do. The agent reads products, variants, stock per location, orders, customers and discounts, creates draft products, changes prices, SEO and stock counts, publishes products to sales channels, fulfills orders with tracking and creates discount codes. Customer names and contact details need Shopify's protected customer data access, and orders older than 60 days need access to all orders.
Use cases
What your Wiro agent can do with Shopify
- 01
Morning restock list from live stock levels
Every morning a Scheduled Task finds active products whose stock is under the level you set, checks each variant's count at every location, and posts a restock list in Chat with SKU, vendor and units left, so reorders go out before anything sells out.
- 02
Draft listings from a supplier's product sheet
Paste a supplier's product list in Chat and the agent creates each item as a draft with its options, variants, prices, SKUs, starting stock and images from public links. Drafts stay hidden from shoppers until you set them active and publish them to a sales channel, or approve the agent doing it.
- 03
Mark orders shipped with tracking numbers
Send the agent order numbers with the tracking numbers from your carrier. It finds what is still unshipped on each order, marks it fulfilled with the tracking attached and, if you choose, has Shopify email the customer. Each fulfillment waits for your approval in Chat by default.
- 04
A weekend discount code for one collection
Ask for a 20% code on one collection that starts Friday evening, ends Sunday night, works once per customer and stops after 500 uses. The agent confirms the code is not already taken, creates it, and can report afterwards how many times it was used.
- 05
Monday recap of last week's orders
Every Monday a Scheduled Task totals last week's orders, sales, refunds and returns, counts the orders that still wait to ship, and posts the recap in Chat next to the week before.
- 06
Bulk price and SEO changes for one vendor
Ask the agent to raise one vendor's prices by 5%, add compare-at prices for a sale, or rewrite product SEO titles and descriptions. It lists the planned changes first, then updates the variants and products one by one as you approve them.
How it works
How Shopify works with Wiro
- 01
Connect Shopify
Deploy an agent, open its Connectors tab, choose Shopify and sign in with your Shopify account, or paste your own app's keys instead.
- 02
Choose what each action may do
Set each Shopify action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.
- 03
Ask in Chat or schedule it
Ask your agent for Shopify work in Chat, or put it on a Scheduled Task that runs on its own.
- Where it runsInside your agent. Its requests go straight from the agent to Shopify.
- Where its data goesThe site you connect
- How it signs inSign in to Shopify with your own app, or connect with its keys alone, with no sign-in.
What it can do
Actions your Wiro agent can take in Shopify
By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.
Read-only 12 actions
Looks things up in Shopify and changes nothing.
Get the Shopify shop and the app's access scopes
The connected shop and the access scopes the app was granted.
Chat AllowScheduled Tasks Allow
List Shopify products
Lists products, most recently updated first: id, title, handle, status, vendor, type, tags, price range, variant count, stock and image.
Chat AllowScheduled Tasks Allow
Get a Shopify product
One product by id or handle: description HTML, SEO, options, media, collections, and its variants with price, compare-at price, SKU, barcode, stock, inventory policy and inventory item id.
Chat AllowScheduled Tasks Allow
List Shopify sales channels
Lists the shop's publications (sales channels such as the Online Store) with their ids.
Chat AllowScheduled Tasks Allow
List Shopify collections
Lists collections with their id, title, handle, product count, and for a smart collection its rules.
Chat AllowScheduled Tasks Allow
List Shopify locations
Lists the shop's locations (warehouses, stores) with their ids for stock: name, whether active and fulfilling online orders, and city and country.
Chat AllowScheduled Tasks Allow
Get Shopify stock levels
The stock of one variant (or inventory item) at each location.
Chat AllowScheduled Tasks Allow
List Shopify orders
Lists orders, newest first: id, name (#1001), date, payment and fulfillment status, total, refunds, item count, returns and tags.
Chat AllowScheduled Tasks Allow
Get a Shopify order
One order by id or name (#1001): totals, line items, fulfillment orders with what is left to ship, fulfillments with tracking, refunds, note and tags.
Chat AllowScheduled Tasks Allow
List Shopify customers
Lists customers, most recently updated first: id, name, state, number of orders, amount spent and tags.
Chat AllowScheduled Tasks Allow
List Shopify discounts
Lists discounts, code and automatic: kind, title, status, summary, codes, dates, usage limit and times used; or one by its exact code.
Chat AllowScheduled Tasks Allow
Run a Shopify GraphQL query
Runs one GraphQL query (not a mutation) on the shop's Admin API 2026-07 with the connected app's scopes.
Chat AllowScheduled Tasks Allow
Create and send 4 actions
Creates or sends something new in Shopify, such as a post, a message or an email.
Create a Shopify product
Creates a product with its options and variants (prices, SKUs, stock per location) and images from public URLs (Shopify fetches them), as a draft unless status says otherwise.
Chat AskScheduled Tasks Allow
Add images to a Shopify product
Adds images to a product from public URLs; Shopify downloads and processes them in the background.
Chat AskScheduled Tasks Allow
Fulfill a Shopify order
Marks items of one fulfillment order as shipped: all that is left, or the line items and quantities given, with optional tracking.
Chat AskScheduled Tasks Allow
Create a Shopify discount code
Creates a discount code for all customers.
Chat AskScheduled Tasks Allow
Change and delete 5 actions
Changes or deletes what is already in Shopify.
Update a Shopify product
Changes a product's title, description, vendor, type, tags (the list replaces the old one), handle (the old URL redirects), status, SEO and manual collections (join or leave).
Chat AskScheduled Tasks Allow
Update Shopify variants
Changes variants of one product: price, compare-at price, SKU, barcode, inventory policy, taxable, whether stock is tracked, cost and shipping.
Chat AskScheduled Tasks Allow
Publish a Shopify product to sales channels
Publishes a product on sales channels.
Chat AskScheduled Tasks Allow
Set a Shopify stock quantity
Sets the available (or on hand) quantity of one variant at one location.
Chat AskScheduled Tasks Allow
Run a Shopify GraphQL mutation
Runs one GraphQL mutation on the shop's Admin API 2026-07.
Chat AskScheduled Tasks Allow
How to connect
Connect Shopify to Wiro
Open the agent's Connectors tab, choose Shopify and sign in with your account. The consent screen shows what the agent can reach.
What the Connect dialog asks for
Pick one way in the Connect dialog: it asks only for what that way needs.
Your own app
Shop Domain, App Client ID and App Client Secret from your own Shopify app, then you sign in to Shopify in its own window.
Your app's keys, no sign-in
The same fields, exchanged for an access token instead of a sign-in.
| Field | About |
|---|---|
| Shop DomainRequired | Enter the canonical, lowercase
|
| App Client IDRequired | Copy the app's Client ID from Shopify's Dev Dashboard.
|
| App Client SecretRequired | Copy the matching Client Secret from Shopify's Dev Dashboard. It is used only for server-side token exchange or OAuth verification; it is never sent to the GraphQL Admin API. |
Troubleshooting
Troubleshooting Shopify
What to check when Shopify stops working for your agent.
- Your own app's sign-in fails Check your app's settings in Shopify: the redirect URL shown in the Connect dialog must be added there, and the client secret you pasted must be the app's current one. Then sign in again.
- Access revoked in Shopify If the access is removed in Shopify, or the sign-in can no longer renew, the connection reads Reconnect needed. Open the agent's Connectors tab, choose Shopify and Reconnect.
- Limits set by Shopify Shopify limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your Shopify plan.
For developers
Connect Shopify from your own product
Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.
- 01
Read the connector
Detail answers without a session: what the connector needs and the tools it gives an agent.
POST /AgentConnector/Detail { "slug": "shopify" }Response { "result": true, "errors": [], "agentconnectors": [ { "slug": "shopify", "title": "Shopify", "category": "commerce", "authtype": "provider-oauth", "credentialfields": [ { "name": "shopdomain", "label": "Shop Domain", "required": true, "secret": false, "format": "text" }, { "name": "clientid", "label": "App Client ID", "required": true, "secret": false, "format": "text" }, { "name": "clientsecret", "label": "App Client Secret", "required": true, "secret": true, "format": "password" } ], "tools": [ { "name": "get_shop", "readonly": true }, { "name": "list_products", "readonly": true } ] } ] } - 02
Start the sign-in
Connect answers with the vendor's sign-in page. Open it in the browser of the person who owns the account.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "shopify", "mode": "oauth", "values": { "shopdomain": "YOUR_SHOPDOMAIN", "clientid": "YOUR_CLIENTID", "clientsecret": "YOUR_SECRET" }, "redirecturl": "https://your-app.example.com/connectors/return" }Response { "result": true, "errors": [], "status": "pending", "authorizeUrl": "https://vendor.example.com/oauth/authorize?client_id=...&state=..." } - 03
Come back to your page
After the consent screen the browser returns to your redirect URL with the outcome in its query. Read the status next; the query is only a reason to look.
Your redirect URL https://your-app.example.com/connectors/return?connector_connected=true https://your-app.example.com/connectors/return?connector_error=authorization_denied - 04
Or connect with a key
The same call with mode "key" connects with a pasted key instead of a sign-in.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "shopify", "mode": "key", "values": { "shopdomain": "YOUR_SHOPDOMAIN", "clientid": "YOUR_CLIENTID", "clientsecret": "YOUR_SECRET" } }Response { "result": true, "errors": [], "status": "connected", "applied": 1, "restart": "scheduled" } - 05
Read the status
connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.
POST /UserAgent/ConnectorList { "useragentguid": "YOUR_AGENT_GUID" }Response { "result": true, "errors": [], "useragentconnectors": [ { "slug": "shopify", "title": "Shopify", "authtype": "provider-oauth", "status": "connected", "accounts": {}, "savedvariables": [ "clientid", "clientsecret", "shopdomain" ], "lasterror": null } ] } - 06
Disconnect
Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.
POST /UserAgent/ConnectorDisconnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "shopify" }Response { "result": true, "errors": [], "removed": true, "revoked": true, "restart": "scheduled" }
Questions
Shopify and Wiro FAQ
What can a Shopify AI agent do in my store?
With Shopify connected, the agent reads products, variants, collections, stock per location, orders, customers and discounts. It can create draft products, add images, change prices, SKUs, SEO and stock counts, publish products to sales channels, fulfill orders with tracking and create discount codes. For other Admin API jobs your app is allowed to do, such as cancelling an order, issuing a refund or adding tags, it can run a single GraphQL request.
How do I connect Shopify to an AI agent?
Create an app for the store in Shopify's Dev Dashboard. Then open the agent's Connectors tab and choose Shopify, or ask the agent in Chat to add it, and enter the store's own Shopify domain (not a custom storefront domain) with the app's Client ID and Client Secret. If the app and the store belong to the same Shopify organization, that is all it takes. For a merchant's store in another organization, sign in with your own app instead, after adding the redirect address shown in the Connect dialog to the app version and releasing it.
Which access scopes does my Shopify app need?
Grant the scopes for the work you want done: products, inventory and locations, orders and fulfillment, customers, discounts and sales channels. The agent can read back the shop details and the scopes the app holds, so you can see what it may do. Two areas need extra access set up for the app with Shopify: protected customer data for customer names and contact details, and access to all orders for anything older than 60 days.
Will the agent change my products or orders without asking?
By default, only after you approve it in Chat. Reading runs freely, while creating products, fulfilling orders, making discount codes, changing prices or stock and publishing all ask for approval first. In Scheduled Tasks these actions run unless you set them to Ask or Block, and you choose Allow, Ask or Block for each action, separately for Chat and Scheduled Tasks, on the agent's Connectors tab. A stock change is applied only if the count is still the one the agent read, so a sale in between is not overwritten.
Is there a Shopify MCP server I have to host?
No. The Shopify MCP connector runs inside your agent, and its requests go straight from the agent to your store. Besides the app you create in Shopify, there is nothing to install or keep running. Scheduled Tasks then let you automate Shopify routines such as a daily stock check or a weekly order recap.
Where are my Shopify credentials and tokens kept?
The Client Secret and the access tokens are stored encrypted, and the AI model never sees them. The secret is used only to sign in and to get tokens, never sent along with store requests, and the short-lived access token is renewed automatically. To cut access, remove the app's access in your Shopify settings, then disconnect Shopify on the agent's Connectors tab.
Does the Shopify connector cost extra, and what limits apply?
The connector adds no cost on any agent plan. Your Shopify plan and Shopify's API limits still apply: Shopify meters requests by query cost and allows up to 1,000 points for a single query, so long product and order lists come back in pages rather than all at once.
Access
Revoke Shopify access
Remove the app's access in your Shopify account's connected apps settings, then disconnect it here.
Related connectors
More commerce connectors for your Wiro agent
Put Shopify to work with Wiro
Deploy an agent and connect Shopify from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.