All docs
Connect

SHOPLINE: install Agent Planners from the SHOPLINE App Store

TL;DR

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

  1. 1Sign in to your International store's admin, then open Agent Planners on the SHOPLINE App Store and press Install.
  2. 2Approve the access SHOPLINE lists for the app (the consent screen names each scope).
  3. 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.
  4. 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.
The Agent Planners listing on the SHOPLINE App Store, marked Free, with the Install button
The SHOPLINE App Store listing (screenshot taken 28 October 2026).
If SHOPLINE says the logged-in store does not match the store installing the app, log out of the other store in the SHOPLINE admin and open the listing again.

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.

OAuth tokens are encrypted at rest, scoped to your organization, re-issued server-side (~10h lifetime), and never returned to the browser.

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.

  1. 1In the SHOPLINE store admin, go to Apps → Develop Apps and click Create app (name it e.g. “Agent Planners”).
  2. 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.
  3. 3Switch to API credentials and click Install App to bind the app to the store.
  4. 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.
  5. 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”.
Private-app tokens run about 3 years and stop working when that app is deleted from the store. The connection is validated live against the store before it's saved, and the token is stored encrypted, per-organization.

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.
Every webhook is checked against SHOPLINE's signature; a bad signature is answered with HTTP 401.

What the agent can do

CapabilityToolNotes
Store health / report headerget_shop_infoName, currency, timezone.
Productsget_productsStatus, vendor, price range, inventory (limit 50 per page).
Ordersget_ordersTotals, financial/fulfillment status, line items (limit 100).
Sales numberssales_summaryExact server-side aggregation: revenue, AOV, by-day series, top products.
Monitoringdetect_anomaliesDaily orders + revenue vs a weekday-aware baseline.
Anything else (read)admin_getAny documented Admin REST GET path — customers, fulfillment orders…
Store changesadmin_mutatePOST/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_customerscustomers/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 inventorylist_locations / get_inventory_levelsThe location ids and the available quantity per item and location an inventory change needs.
Discount codeslist_discount_codesTitle, status, dates, usage, codes and value (the 0–1 percentage shown as a percent too).
Landing URLget_landing_urlA UTM-tagged storefront URL — existing parameters kept, values encoded once, nothing written.
Abandoned checkoutsabandoned_checkoutsTotals 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 eventsmarketing_eventsThe 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.
Returnsreturns_summaryReturns (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.
Marketslist_marketsEach market's countries, currencies, price adjustment and languages (read_markets).
Typed store changescreate / update / set status / delete discount codes, update_inventory, set_inventory, update_product, update_variant_prices, create_marketing_eventEach 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.

About this platform

Related