---
title: "Shopify Admin integration for AI agents | Langdock"
description: "Connect Shopify Admin to Langdock. Agents and workflows can use 25 actions, such as “Add discount codes in bulk” and “Add product media from URL”."
url: "https://langdock.com/integrations/shopify-admin"
language: "en"
---

[Integrations](https://langdock.com/products/integrations)

# Shopify Admin integration for AI agents

Manage products, orders, collections, discounts, and inventory

Connect Shopify Admin to Langdock and use it in chat, in agents and in workflows.

25 actions

[Start free trial](https://app.langdock.com/signup) [Talk to sales](https://langdock.com/talk-to-sales)

## Shopify Admin actions

Each action is one step an agent or workflow can run in Shopify Admin.

- Add discount codes in bulk

  Adds many redeem codes to an existing discount, so each customer can get a unique code for the same offer. Create the discount first, then add up to 250 codes per call.
- Add product media from URL

  Adds an image, video, or 3D model to a product from a publicly reachable HTTPS URL. Shopify downloads the file itself, so the URL must not require a login.
- Add products to collection

  Adds products to a collection that keeps a manual list of products. Collections whose membership is defined by rules or that mix several product sources are refused, because their membership is not editable this way.
- Adjust inventory

  Adds or removes stock for one inventory item at one location by a relative amount, and records a reason for the store's inventory history. Use Check inventory levels first to read the IDs and current quantity.
- Check inventory levels

  Checks stock per location for the store's inventory items, including available, on-hand, committed, and incoming quantities. Returns inventory item and location IDs (location names are omitted so this works without the read_locations scope). Use the returned inventoryItemId with Adjust inventory.
- Create discount code

  Creates a percentage or fixed-amount discount code that customers enter at checkout, optionally limited to certain products or collections, a date range, or a usage cap. Shopify allows only one cart minimum: set either minimumSubtotal or minimumQuantity, never both — leave the other empty.
- Create product

  Creates a product with its options and variants in one step, including each variant's price, SKU, taxability, inventory tracking, and optional metafields (including Rich Text). Without options or variants the product gets a single default variant. The whole product is rejected if any option or variant is invalid, so nothing is created halfway.
- Delete product

  Permanently deletes a product. This cannot be undone. Use Find products first when you only have a title, handle, or SKU.
- Find collections

  Finds collections and reports which ones accept manual product changes. Use it to get the collection IDs needed to add or remove products.
- Find discount codes

  Finds code-based discounts with their codes, status, usage, and validity window. Automatic discounts are not included because they have no code to hand to a customer.
- Find orders

  Finds recent orders by keyword, payment status, or fulfillment status, and returns each order's Shopify Order ID, name (for example #1001), totals, and status. Customer email/phone/name are not returned (Protected customer data). Use the returned id with Get order or Fulfill order. Shopify only exposes an app's recent orders (roughly the last 60 days).
- Find products

  Finds products by keyword, vendor, product type, tag, or status, and returns their IDs, prices, and stock totals. Use it to locate the product IDs that the other product actions need.
- Find publications

  Finds sales channel publications such as Online Store, Point of Sale, and Shop, and returns their IDs. Use it to get the publication IDs that Publish product needs. Setting a product to Active does not publish it to these channels.
- Fulfill order

  Marks an order's remaining items as fulfilled and optionally records tracking details and notifies the customer. Requires a Shopify Order ID from Find orders (not the order name/number).
- Get order

  Gets one order by its Shopify Order ID (line items, totals, discounts, addresses at city/country level, fulfillments). Customer email, phone, name, and street address are omitted without Protected customer data approval. The Order ID is not the order name or number (#1001) — run Find orders first and pass the returned id.
- Get product

  Gets one product with its description, variants, prices, stock, media, collection memberships, and up to 50 metafields. Use it before updating a product so the current values, variant IDs, and returned metafields are known. When hasMoreMetafields is true, the metafield list is truncated.
- Get shop details

  Gets the store's name, contact details, domains, currency, timezone, and plan. Use it to confirm which store a connection points at, or to read the store's currency before writing prices.
- Publish product

  Publishes a product to one or more sales channel publications such as Online Store, Point of Sale, or Shop. Setting a product to Active does not publish it; use Find publications first to get the publication IDs. The product must be Active to be visible on a channel after publishing.
- Remove product media

  Removes media from a product while keeping the file in the store's file library, so the same file can be reused on other products.
- Remove products from collection

  Removes products from a collection that keeps a manual list of products. The products themselves are untouched, only their membership in the collection changes.
- Reorder product media

  Reorders a product's media, which decides the order shoppers see and which image is the featured one. Media that is not listed keeps its relative order after the listed media.
- Update product

  Updates a product's title, description, handle, status, type, vendor, tags, SEO fields, or metafields. Only the fields provided are changed, tags replace the product's whole tag list, and omitted metafields are left unchanged.
- Update product media

  Updates the alt text or file name of a piece of product media. Use Get product to read the media IDs first.
- Update product variants

  Updates price, compare-at price, SKU, barcode, taxability, or oversell policy on one or more variants of a single product. Use Get product first to read the variant IDs.
- Upload product media

  Uploads an image, video, or 3D model file from the conversation and attaches it to a product. Use Add product media from URL instead when the file is already hosted publicly.

## Setup and permissions

An action can ask for your confirmation before it runs. In an agent, each action is set to “Always allow” or “Needs approval”.

### Documentation

- [Setup guide for Shopify Admin](https://docs.langdock.com/en/admin/manage-integrations/integration-setup-guides/shopify)
- [Using integrations](https://docs.langdock.com/en/using-langdock/guides/integrations/using-integrations)
- [How connections work](https://docs.langdock.com/en/using-langdock/integrations/connections)
- [Manage access to actions](https://docs.langdock.com/en/admin/manage-integrations/manage-action-access)

[All integrations](https://langdock.com/products/integrations)
