# Shopify

> Sync your Shopify catalog into Orders, let agents look up orders, and trigger workflows from store events.

Source: https://docs.getlinkai.com/integrations/shopify

Shopify connects your store to Link AI so your catalog syncs into [Orders](https://docs.getlinkai.com/products/orders), agents can look up guest order status, and [Workflows](https://docs.getlinkai.com/agents/workflows) run when orders or products change. Use it when you sell on Shopify and want your agent to answer product and order questions.

## What you can do

- **Catalog sync**: import Shopify products into **Orders → Products**. Webhooks keep create, update, delete, and inventory changes in sync. Use **Sync products** for a full refresh.
- **Agent order lookup**: customers check a guest order with an order number and email, and your agent answers from the connected store.
- **Ally**: ask Ally to review store products and orders (`shopify_manage`).
- **Workflows**: trigger automations from Shopify orders and products, then sync products, look up an order, or add an order note.

## Before you start

- Permission to install apps on the store.
- Permissions requested: read and write products, read and write orders, read customers and fulfillments, and read inventory and locations.

**Note:**
Shopify does not replace Stripe checkout inside Link AI. To take payment in chat, also connect [Stripe](https://docs.getlinkai.com/integrations/stripe).

## Connect

Connect from Link AI, or install the Link AI app from the Shopify App Store.

### Open the integration
Open **Integrations** → **Shopify** and enter your store domain (`mystore.myshopify.com` or the store name).

### Approve the install
Click **Connect** and approve the Shopify install. You return to Link AI with the store connected.

### Sync products
Click **Sync products** to import the catalog into **Orders → Products**.

You should see your products in **Orders → Products**.

**Tip: From the Shopify App Store**
Install **Link AI** on the store. Shopify authorizes the app immediately. Sign in to Link AI, open **Integrations** to confirm the connection, and run **Sync products**.

## Use it in an agent

After the first sync, Shopify webhooks update products when they are created, changed, or deleted, or when inventory moves. Run **Sync products** from the Shopify tile anytime something looks out of date.

1. Enable **Orders** on the agent that should show the catalog.
2. Customers ask for products, or look up an order with the order number and email.
3. In Ally, ask about store products or recent orders.

## Use it in a workflow

These require Shopify to be connected.

| Trigger | When it fires |
|---------|--------------|
| **Shopify Order Created** | A new order is created in the store. |
| **Shopify Order Paid** | An order is marked as paid. |
| **Shopify Order Fulfilled** | An order is fulfilled. |
| **Shopify Product Created** | A product is created. |
| **Shopify Product Updated** | A product is updated. |
| **Shopify Product Deleted** | A product is deleted. |

Order triggers give you `{{orderId}}`, `{{orderName}}`, `{{email}}`, `{{financialStatus}}`, `{{fulfillmentStatus}}`, `{{totalPrice}}`, and `{{currency}}`.

| Action | What it does |
|--------|-------------|
| **Sync products** | Pull the latest catalog into Orders. |
| **Get order** | Look up a Shopify order by ID (use `{{orderId}}` from a Shopify trigger). |
| **Add order note** | Add a note to a Shopify order. |

See [Workflows](https://docs.getlinkai.com/agents/workflows) for the editor, variables, and examples.

## Troubleshooting

**Connect button does nothing**
Use the `.myshopify.com` domain, not a custom storefront URL.

**Products missing after connect**
Click **Sync products**. The first import is a full sync; webhooks keep later changes in sync.

**Agent can't find an order**
The customer needs the order number and the email on the order. Confirm the same store is connected to this workspace.

**Workflows don't fire**
Confirm Shopify is still connected and the workflow is **Active**. Test with a new order or product change in the store.

## Next steps

**[Orders](https://docs.getlinkai.com/products/orders)**:
Set up catalog, checkout, and order management.

**[Stripe](https://docs.getlinkai.com/integrations/stripe)**:
Take payment in the conversation.

**[Workflows](https://docs.getlinkai.com/agents/workflows)**:
Automate follow-ups from Shopify events.

**[Ally](https://docs.getlinkai.com/getting-started/ally)**:
Ask Ally about your store.
