# Shopify

{% hint style="danger" %}
You will need a paid Shopify account in order to add your chatbot to your site
{% endhint %}

{% embed url="<https://youtu.be/Q3JcYgRCtrs>" %}

### How to Add Your AI Agent to Your Shopify Store

{% embed url="<https://youtu.be/mKRNX45vXrE>" %}

1. Follow steps 1-3 from "[Add your AI agent to your website](/start-here/add-your-ai-agent-to-your-website.md)".
2. Navigate to your Shopify store editor page.

You then have 2 options for how to add your AI support agent to your site:

***Option A***

1. Add a section (to the Header).
2. Select *Custom Liquid.*
3. Paste the code snippet from My AskAI you obtained by following the instructions referred to in the previous Step 1 into the area for "Liquid code".
4. Reduce the padding (Top and Bottom) to zero for the section.
5. Click *Save.*
6. View your site and try out your AI agent.

**Option B**

1. Click on the ... menu in the top left of the Store editor page.
2. Select *\</> Edit code.*
3. In the *Search files...* search field, search "head".
4. Select the filtered field that says *\</> header.liquid*
5. In the code window on the right-hand side, in the line just above where it says \<style>, paste the code snippet from My AskAI you obtained by following the instructions referred to in the previous Step 1.
6. Click *Save.*
7. Preview your site and try out your agent.


---

# 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://support.myaskai.com/start-here/add-your-ai-agent-to-your-website/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.
