> ## Documentation Index
> Fetch the complete documentation index at: https://help.treble.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use Shopify in your conversations

> Follow these steps to use Shopify in your conversations.

<Warning>
  This feature is in **beta**. Please ask your CSM to enable it for your account
  before following these steps.
</Warning>

## Prerequisites

* You need to connect your Shopify account to Treble using the steps in the [Setting up Shopify Integration](/en/docs/main-platform/ai-center/agents/reasoning-agent/shopify-install) guide

## How to use Shopify in your conversations

1. Go to the "AI Center" page or [this URL](https://app.treble.ai/en/dashboard/ai-center)
2. Click on the "Create AI Agent" button
   <img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-24.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=929aa7dd1da35210ce4556beec819ad2" alt="Shopify store ID" width="1326" height="994" data-path="images/shopify-setup-en-24.png" />
3. Look for the "Automate complex tasks" option and click on it
   <img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-25.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=e3e9da08ae3afd7c834dab3ea1a0cb5f" alt="Shopify store ID" width="2096" height="1670" data-path="images/shopify-setup-en-25.png" />
4. Give the agent a name and click on "Create" button
5. In this screen you'll be able to write the instructions for your AI Agent
6. Look for the "Advanced" section and click on "Connected Apps" button at the bottom of the screen
   <img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-26.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=c8e6e4671a67da2c4bd33f1d026b6905" alt="Shopify store ID" width="1746" height="964" data-path="images/shopify-setup-en-26.png" />
7. Look for the "Shopify" app on the list of installed apps and click on it
   <img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-27.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=f2ebd48faa24ba3387e51b71971c9582" alt="Shopify store ID" width="2026" height="1528" data-path="images/shopify-setup-en-27.png" />

#### The available tools are:

* List Accounting Invoices
* Get Accounting Invoice
* Create Accounting Invoice
* Update Accounting Invoice
* List Accounting Contacts
* Get Accounting Contact
* Get Accounting Salesorder
* Create Accounting Salesorder
* List Accounting Salesorders

Select any of the tools, and when you click it you'll see the 3rd dropdown "Parameters" change.

<img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-28.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=c30980890ab6adf287447cf542eaaeba" alt="Shopify store ID" width="1710" height="1390" data-path="images/shopify-setup-en-28.png" />

The "Parameters" dropdown will show the parameters for the tool, you'll need to fill them out before the tool can be used.

*Some tools will ask you to edit parameters. If you're not sure what to change, just let the AI handle all of them.*

Changing parameters is only useful if you need to manually send a fixed value to the AI, such as a fixed description, a fixed timezone, currency, or any other specific value.

<img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-29.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=3ab9e95830eba9b9a459f8406a49ffa2" alt="Shopify store ID" width="1712" height="1226" data-path="images/shopify-setup-en-29.png" />

This will override the value the AI tries to generate, so it's advised to let the AI handle it unless you know the exact value you're looking for. You can always update this if you see any issues or change your mind.

If you let AI handle all parameters you can skip step 3, otherwise, enter the fixed values you want to use in step 3.

<img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-30.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=4405f3b04b033e685b6afae3542331ab" alt="Shopify store ID" width="1710" height="1118" data-path="images/shopify-setup-en-30.png" />

When you click "Save" you'll see the configured action in your AI Agent editor, you can now use it in your conversations.

<img src="https://mintcdn.com/trebleai/xe7HJ38y3aI16Euq/images/shopify-setup-en-31.png?fit=max&auto=format&n=xe7HJ38y3aI16Euq&q=85&s=582cdfb76bd2e9ea1e431a7480dd6e2d" alt="Shopify store ID" width="1250" height="1060" data-path="images/shopify-setup-en-31.png" />

## Available Shopify tools

For your reference, the available Shopify tools you can use in the Automate Complex Tasks agent are:

| Action                       | Description                                           | Useful For                                                                             |
| ---------------------------- | ----------------------------------------------------- | -------------------------------------------------------------------------------------- |
| List Accounting Invoices     | Fetches a list of invoices from the accounting system | Showing invoice history, syncing data, dashboards, filtering by status (paid, unpaid)  |
| Get Accounting Invoice       | Retrieves a single invoice by ID                      | Displaying full invoice details, validating payment status, attaching to interactions  |
| Create Accounting Invoice    | Creates a new invoice in the accounting system        | Generating invoices after purchase, automating billing, syncing orders into accounting |
| Update Accounting Invoice    | Modifies an existing invoice                          | Marking as paid, updating line items, correcting amounts, syncing status changes       |
| List Accounting Contacts     | Returns a list of contacts (customers/vendors)        | Syncing customer databases, matching users to accounting records                       |
| Get Accounting Contact       | Fetches a single contact by ID                        | Retrieving billing details, validating customer info, linking to invoices/orders       |
| Get Accounting Salesorder    | Retrieves a specific sales order                      | Checking order details, validating fulfillment status                                  |
| Create Accounting Salesorder | Creates a new sales order                             | Pushing orders into accounting before invoicing, handling B2B workflows                |
| List Accounting Salesorders  | Fetches a list of sales orders                        | Reporting, syncing order pipelines, reconciling orders vs invoices                     |
