# Shopify

This page describes how to set up your Shopify connection. Click on the Shopify data source, and then "Create a New Connection".

<figure><img src="/files/eP1jnowmak9VDsUOjXaI" alt=""><figcaption></figcaption></figure>

To allow Phiona access to your Shopify data, you'll need to add a private app to your store. Here's how you do it:

* Navigate to your Shopify store page, and click on "Settings" then "Apps and sales channels".
* Click on the button that says "Develop apps".

<figure><img src="/files/SOv0siDQmRyurDsEV8e2" alt=""><figcaption></figcaption></figure>

* Click on the "Create app" button.
* You'll be prompted to enter a name for your app.
* Once the app has been created, click on "Configure Admin API scopes".

<figure><img src="/files/tCpkIaOxaXhaC80PTtLq" alt=""><figcaption></figcaption></figure>

* For Phiona to access the correct information, you'll want to select at least these read-only scopes:
  * `read_analytics`
  * `read_customers`
  * `read_discounts`
  * `read_inventory`
  * `read_locations`
  * `read_orders`
  * `read_products`
* If you'd like to see some of the additional streams from Shopify that Phiona supports, please select all of the read-only scopes to ensure that the software is able to pull the correct information.
* Once you've selected the correct permissions, click "Install app" to get your access token.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.phiona.com/data-sources/shopify.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
