# Connect Shopify and handle orders from the chat

See a customer's Shopify orders beside the chat, send products and checkout links, and handle simple order changes without leaving Prospect.

Source: https://support.rework.com/article/prospect-shopify

Connect your Shopify store and your team sees a customer's orders, draft orders and abandoned carts right beside the chat. From there they can send products, create a checkout link and handle simple order changes, without switching tabs. Your AI agent can use the store too, for example to answer "where is my order?".

## Before you start

- Only admins can connect a store.
  
- You need access to the Shopify Dev Dashboard with the account that owns your store's organization: Prospect connects through an app you create there.
  

## Create an app in Shopify

Prospect connects to your store through a small app that you create in the Shopify Dev Dashboard. You do this once per store.

1. Sign in to the Shopify Dev Dashboard with the account that owns your store's organization. Open **Apps** **(1)** and click **Create app** **(2)**. Choose to start from the Dev Dashboard and give the app a name, for example _Prospect_.
   

![Apps page of the Shopify Dev Dashboard with the Apps menu item (1) and the Create app button (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/WhdiPQP6PKMtRIimR23Q76f24cYbyHMWYfH8Ib7srFnShSZ1gK023srRfpoeuwV6/img.DZOxdIjsYk53gYNaQDK76pxxKQhsM98QuIrsGbqmKBcJDwNoZBd4hJuCgkOrfqIg.png)

1. Open **Versions** **(1)** and create a version. In the **Scopes** box **(2)**, paste the scopes that Prospect shows when you connect (the **Add Shopify** dialog in Prospect also has a **Copy** button for them): _read\_customers, read\_orders, write\_orders, read\_products, read\_inventory, write\_draft\_orders_
   
2. Release the version.
   
3. Install the app on your store: open the app's home page and pick your store.
   

![Create version page of the Shopify Dev Dashboard with the Versions menu item (1) and the Scopes box filled in (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/PR2uOno4dWZISDXBHF2wpKFEJEaIwXOg8QVbANpPnRY2DtGgTDKrL90Fhi6ly1Up/img.ynWrsza8ES7LVuvlQXrtrRfQ6kGxefbOD2x28rPUnsrw4fKDNWUnhQMtfYANoEYC.png)

1. Open **Settings** **(1)** and copy the **Client ID** **(2)** and the **Client secret** **(3)**. Keep the secret private: anyone who has it can read your store's data.
   

![App Settings page of the Shopify Dev Dashboard with the Settings menu item (1), the Client ID (2) and the Client secret (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/cnYE5DKA0WtoCWRZJToSmeYRXsjeFykd6DLrYVSy1Dl1ygH7UoAkR5KcxxW4VG0A/img.FrxuWmJIEqYyuJ2H9aQhSQPSuyhR9USZbZAWl1vWb4NBX6fX4Qt4lvseC9V0nneR.png)

You also need your shop address, the one that ends in _.myshopify.com_. In your Shopify admin, go to **Settings** › **Domains** and open it: the address is the title **(1)**.

![Domains settings in the Shopify admin with the myshopify.com shop address (1) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/jVYLt63ptvp5RO6lA1h0IX5lQs2oXpBuzZhSEOZ4B7rmttgXrYmv90PzGU2D101V/img.lm2gLh7Jto07AFu6QqcCtd5RIJsNvtgvpNPvn2dVcrIedGRJQDiTIzxTeoXnBJhp.png)

## Connect your store in Prospect

1. Go to **AI Agents** › **Connectors** and click **Add connector**.
   
2. Open the **Connectors** tab **(1)** and click **Connect** on **Shopify** **(2)**.
   

![Connect page with the Connectors tab (1) and the Connect button on the Shopify card (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/kyaCGXdtoL1ehqmBqV0MUKqhCxz0uALLXRg5DymotFGzdHym4whAq5vOQZIvTcCX/img.4pE7U9y1s9Ode8Jg4nEgrJUDzxN4N4v3x4LoIVj5Sb6JGyyOvlhseX4blY5tyXwB.png)

1. The **Add Shopify** dialog recaps the Shopify steps above **(1)**.
   
2. Use **Copy** **(2)** to copy the scopes into the version's **Scopes** box in Shopify.
   
3. When you have the keys, click **I have my keys** **(3)**.
   

![Add Shopify dialog with the How to connect steps (1), the Copy button for the scopes (2) and the I have my keys button (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/cd5eUbQQWHghLaO70GMeZQ5LO6w6Mp5ECOaHbbLOOnZ0l21OoSswSBlG9smI9i8y/img.VhZnzblHeRkGhZPtAW4c4lQGpm32xBB1oy3vKuLEWmi39YioLVDiNqymlNPHsuwd.png)

1. Fill in the **Shop address** **(1)** (the _.myshopify.com_ address you found above), the **Client ID** **(2)** and the **Client secret** **(3)**, then click **Next** **(4)**.
   

![Paste them here step of the Add Shopify dialog with the Shop address (1), Client ID (2) and Client secret (3) fields and the Next button (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/rZ5MZ5QpkuMnzra9sdapcDoTmVyRnUqLzAQFY3yyJKqyR7ERah0FnGv11sO93JV0/img.Ac7cnP3wriRAbGaRNVe0Km2q0gbmHJ9ecGZFLUtatSvydqMQFLq4VnNEi9mzKxRl.png)

1. Under **Which inboxes can use it?** **(1)**, pick the inboxes whose staff and AI agents may use the store. Leave it empty and every inbox can, new ones too.
   
2. In **What should staff see it called?** **(2)**, give the store a name your team will recognise.
   
3. Tick what staff may do **(3)**. When you pick several inboxes, each one gets its own list.
   
4. Click **Connect** **(4)**.
   

![Who can use it step with Which inboxes can use it? (1), What should staff see it called? (2), the list of what staff may do (3) and the Connect button (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/BqXnwk0z8VtUifAbFHW3kT1IGyXGQq5CQMK2C6V2JXQfoZoPWr5iao3Ppa2N8zjJ/img.EhGfvAjkbyfpMwmP4jVPZOiJlLu8HhgsEs3XgANPFbqerbgNMe2QALUEyEx1J92m.png)

| Permission | What staff can do |
| --- | --- |
| **Look up this customer's orders** | See the customer's orders, draft orders and abandoned carts. |
| **Search products** | Find products with their picture, price and stock, and send them into the chat. |
| **Create a checkout link** | Build a checkout link for the customer. Needs **Search products**. |
| **Cancel an unpaid order** | Cancel an order that is unpaid and hasn't shipped. |
| **Change the shipping address** | Edit the delivery address of an order. |
| **Tag or note an order** | Add a tag or a note that your team sees in Shopify. |

If Shopify didn't grant every scope, Prospect tells you which features are off. Add the missing scopes to a new version of the app, release it, then paste the keys again.

## See a customer's orders in a conversation

1. Open the conversation and click the Shopify icon **(1)** in the right-hand rail. The number on it counts the customer's orders.
   
2. If the inbox can use several connectors, pick the store **(2)**.
   
3. Switch between **Customers**, **Orders** and **Products** **(3)**.
   
4. On **Customers**, check the matched Shopify customer **(4)**: their orders, total spent, and how they were matched.
   

![Connectors panel of a conversation with the Shopify icon in the rail (1), the store picker (2), the Customers, Orders and Products tabs (3) and the matched customer card (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/5nq0CNh86kKRzSvdGTyaO2G5HUkfwYOpqDuPoMzXyoDSsG8t4KGbLOHz5uksLzQf/img.Jjw6Dli8bTucffDoeMOKVZXPHdizPHP1zstq3k5u9lpu7Vik2J7C6xvRwngYgwKZ.png)

Prospect matches the customer by phone or email. When the phone or email came from the chat itself, the match shows **Not verified** and orders stay hidden until someone checks it: click **Verify** if it's the right person, or **Pick another customer** to search Shopify and link the right one. **Unlink** removes a link.

## Handle an order

Each order shows its payment and shipping status, its items and a link to **Open in Shopify**.

1. Click **⋯** **(1)** on the order.
   
2. Pick an action **(2)**: **View details**, **Add tag**, **Add note** or **Edit address**. Depending on the order and your permissions you'll also see **Send to chat**, **Copy link**, **Open checkout** and **Cancel order**.
   

![Order card in the Shopify panel with its more button (1) and the menu of order actions (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/lm94iecNURXxFlWflAHOmu8NE2vO3lwJzi21hiAKBE7BgH7dQaxatD7A2GlTOKTH/img.7da2uDkoWgw08rOtZFjmgztO2v2EJvQCSyd3VZY6fKcLZ76IxYMHNM3QBD6JsNrr.png)

- **Cancel order** asks for a reason, and lets you put the items back in stock and email the customer about it. Only an unpaid order that hasn't shipped can be cancelled here.
  
- **Edit address** takes the whole delivery address. Optional fields you leave empty keep what the order has.
  
- **Add note** replaces the order's note in Shopify.
  

## Send products and checkout links

1. Open the **Products** tab **(1)**.
   
2. Search by product name **(2)**. Each result shows its picture, price and how many are left.
   
3. Click the send icon **(3)** to send the product's picture, name, price and page into the chat.
   
4. To sell several items in one go, click the cart icon **(4)** on each product you want. They gather in the **Checkout link** box, and the number on **Products** counts them.
   
5. Set each **Quantity** **(5)** and check the **Estimated total**.
   
6. Click **Create checkout link** **(6)**.
   

![Products tab of the Shopify panel with the Products tab (1), the product search (2), the send icons (3), the cart icons (4), a Quantity stepper (5) and the Create checkout link button (6) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/00gHkiFePdrwfiuKCpM3DIpdmtzP05uvHAUK8ad7bY3PbbtZRn1TSZSM6OSDkvHi/img.3qQwUKgk94O6PJZWsMztiDVmvXDbRVVeJfLsxc3ZjNeutaGu6VcF3cbgjHo2hjH9.png)

Prospect makes the link as an unpaid draft order in Shopify for this customer. Then **Send to chat** puts the total and the link in the reply box, or use **Copy link** or **Open checkout**. **New link** starts over. The customer pays on Shopify's own checkout page.

If Shopify doesn't accept the customer's email, Prospect offers **Create without the customer**: the customer then types their email and address at checkout.

## Let your AI agent use the store

1. Go to **AI Agents**, open the agent and click **Tools** **(1)**.
   
2. Under **Connectors**, click **+** on **Shopify** **(2)**.
   
3. Pick the Shopify connector, turn on what the AI may do, and say **When should the AI use this store?**. Click **Add a store** to add another, up to 3.
   
4. Click **Save**.
   

![Tools section of an AI agent with the Tools menu item (1) and the Shopify connector tool (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/WMUPSmpEB3wPFXMEOKUsOFaoE8eXYa2B2HamRQK2Xg9BVq9BAIAFG1sQuRNuELZk/img.AnV66h4kKF4hKROdAlF5XX95WEHFGRMedcQqaNsyupiaaGRCN6DIqJgpXNJCyCjG.png)

The AI only ever looks up orders for the customer in the current chat.

## Good to know

- Staff also need the inbox's manage right to cancel, change or tag an order, or to build a checkout link. Ticking a permission only allows it in that inbox.
  
- Orders older than 60 days aren't shown unless your app also has the _read\_all\_orders_ scope, which Shopify grants only to apps made in a Partner organization.
  
- Only the store's 10 most recent open carts are checked for abandoned checkouts.
  
- Refunds, discounts and editing an order's items stay in Shopify.
  
- To see every order of a customer across your stores, open the **Orders** tab of their profile. See [See all of a customer's orders in one place](https://support.rework.com/article/prospect-customer-orders).
