SHOPLINE: install Agent Planners from the SHOPLINE App Store
Agent Planners is publicly listed on the SHOPLINE App Store (free to install). SHOPLINE (the International platform at myshopline.com) connects over the registered OAuth app: install from the App Store or enter the store handle on Integrations, approve the scopes on SHOPLINE, done. Agents then read store info, products and orders, compute an exact server-side sales summary, watch daily orders/revenue for anomalies, and — when write scopes are granted — change products, prices and inventory through approval-gated writes, the irreversible ones always decided by a person. Access tokens live about 10 hours and refresh automatically.
Which SHOPLINE this is (and isn't)
Two different platforms share the SHOPLINE name. This integration covers the INTERNATIONAL platform — stores whose admin lives at your-store.myshopline.com (developer.shopline.com APIs).
Stores on *.shoplineapp.com (SHOPLINE Taiwan/Hong Kong) run a completely different API and cannot connect here.
Install from the SHOPLINE App Store
- 1Sign in to your International store's admin, then open Agent Planners on the SHOPLINE App Store and press Install.
- 2Approve the access SHOPLINE lists for the app (the consent screen names each scope).
- 3Agent Planners opens on a full page: sign in, or create a free account, and choose Connect store for the workspace the store should join.
- 4You land back on the app inside your SHOPLINE admin, which lists the workspaces that use the store. Open it again later from Apps → Agent Planners to connect the store to another workspace.

Connect a store
On /integrations, open the SHOPLINE card, enter the store handle (my-store or my-store.myshopline.com) and click Authorize via SHOPLINE. You'll approve the app's scopes on SHOPLINE and land back on the integrations page.
Or install Agent Planners from the SHOPLINE App Store: SHOPLINE asks you to approve the app's access on a full page, then you sign in to Agent Planners (or create a free account), choose Connect store for the workspace you are in, and land back on the app inside your SHOPLINE admin, which then shows the workspaces that use the store. Opening the app from the admin later (Apps → Agent Planners) can connect the store to another workspace too.
The sign-in always opens on a full page, never inside the SHOPLINE admin: Google's sign-in refuses to be shown in a frame and browsers block the cookies a sign-in needs there. The app's page in your admin also has Report a problem with AI output — and so does Agent Planners' Help menu (the ? button).
The consent screen lists exactly the scopes this deployment requests (by default read scopes for store information, products, orders, customers and inventory, plus write scopes for products, orders and inventory); the store's row shows what SHOPLINE actually granted, and Sync scopes re-reads it. Granting write scopes does NOT make the agent autonomous — every store change still goes through the approval step before it runs (only a task or schedule you put on auto-approve, or an API key minted for autonomous writes, skips it, and never for a change a person must decide), and each typed write checks the grant for its scope first.
Generate a private-app Admin token (no OAuth app needed)
The fastest path when you manage the store yourself: create a private app in the store admin and paste its token. You need store-admin access.
- 1In the SHOPLINE store admin, go to Apps → Develop Apps and click Create app (name it e.g. “Agent Planners”).
- 2Open the app's permission settings and grant the Admin API permissions you want the agent to have — read store information/products/orders/customers/inventory, plus locations and discounts for the inventory and discount-code tools, marketing events, returns and markets for the reporting tools, and write permissions (products, inventory, discounts, marketing events) if you want approval-gated store changes.
- 3Switch to API credentials and click Install App to bind the app to the store.
- 4Under Admin API access token, click to view the token — SHOPLINE emails a verification code to your login address; enter it, then copy the token.
- 5In Agent Planners, open Integrations → SHOPLINE → Connect store, choose “+ Admin token”, enter the store handle (my-store or my-store.myshopline.com) and paste the token, then click “Validate + connect”.
Store data: what is kept, and how it is deleted
- The connection. For each store a workspace connects we keep the store handle, name, currency and time zone, the permissions SHOPLINE granted, and the token, encrypted. A store that installed the app but is not linked to a workspace yet has its token held, encrypted, until you link it.
- Task results. What a task read is saved with that task in your workspace, until your task-history retention period deletes it (90 days by default) or someone deletes the task. Customer details appear there only when a person's own request asked for them.
- Memory. What the agent learns from a store run is saved with email addresses and phone numbers masked.
- AI output reports. A report sent with Report a problem with AI output is stored with its category, your description, the task and page it names, the store handle and the contact email you gave.
- app/uninstalled: the held token is deleted and the store's app connections stop at once. A connection made with a pasted private-app token is not affected.
- merchants/redact (SHOPLINE sends it 48 hours after an uninstall): every workspace's connection to the store — tokens and store details, private-app tokens included — is deleted, and so is the store's data in task history: the results of every step and tool call that read the store and the messages showing them, the connection's account memory, alert rules and dashboards, and the numbers projects read from it. A task that used only that store loses its report too; a task that also used other platforms keeps its report, with a note that the store's data was removed. A large history is finished by a daily sweep.
- customers/redact removes that customer's email, phone, customer id and the listed orders from the store's task history. We keep no records keyed to a store's customer.
What the agent can do
| Capability | Tool | Notes |
|---|---|---|
| Store health / report header | get_shop_info | Name, currency, timezone. |
| Products | get_products | Status, vendor, price range, inventory (limit 50 per page). |
| Orders | get_orders | Totals, financial/fulfillment status, line items (limit 100). |
| Sales numbers | sales_summary | Exact server-side aggregation: revenue, AOV, by-day series, top products. |
| Monitoring | detect_anomalies | Daily orders + revenue vs a weekday-aware baseline. |
| Anything else (read) | admin_get | Any documented Admin REST GET path — customers, fulfillment orders… |
| Store changes | admin_mutate | POST/PUT/DELETE + path + payload. Approval-gated, single-attempt, response verified; every DELETE, and a write to a money, inventory-level or storefront-code path, waits for a person. |
| Customers (masked) | get_customers | customers/v2/search.json — counts, state, tags and spend; names, email and phone only when a person's own request in an interactive task asks for identified customers (never over MCP, in an autonomous run, on a schedule or on a dashboard), and SHOPLINE masks email and phone even then. |
| Locations and inventory | list_locations / get_inventory_levels | The location ids and the available quantity per item and location an inventory change needs. |
| Discount codes | list_discount_codes | Title, status, dates, usage, codes and value (the 0–1 percentage shown as a percent too). |
| Landing URL | get_landing_url | A UTM-tagged storefront URL — existing parameters kept, values encoded once, nothing written. |
| Abandoned checkouts | abandoned_checkouts | Totals only (read_orders): how many, their value, SHOPLINE's own status and recovery status, how many became orders, by day, the products and discount codes left in them, and an abandonment rate with its definition. No shopper's email, phone, name, address or recovery link is ever returned. |
| Marketing events | marketing_events | The store's marketing events (read_marketing_event) with the orders tagged with each event's UTM campaign during its dates — orders and revenue per event. SHOPLINE records no budget or spend on an event. |
| Returns | returns_summary | Returns (read_returns) by status, SHOPLINE's reason codes and returned products. SHOPLINE answers returns one order at a time, so a date window checks the refunded orders in it; free-text return notes are never shown. |
| Markets | list_markets | Each market's countries, currencies, price adjustment and languages (read_markets). |
| Typed store changes | create / update / set status / delete discount codes, update_inventory, set_inventory, update_product, update_variant_prices, create_marketing_event | Each approval-gated. Inventory is read for every pair before anything is set; deleting a code, an absolute set, repricing, deactivating a code (or ending / postponing it by date), a discount of 50 % off or more and a product status flip wait for a person. |