Docs/E-Commerce/Shopify Integration

Shopify Integration

The Shopify integration connects your store with a single OAuth click. AIChatVault registers webhooks to keep data fresh and syncs your product catalogue to the knowledge base automatically. The storefront chat widget is a separate, manual step — see Enabling the storefront widget below.

Connecting via OAuth (recommended)

1

Open your agent and go to Integrations → Shopify

In your agent's sidebar, click Deploy or Integrations, then select the Shopify card.
2

Enter your store URL

Type your Shopify store's myshopify.com domain, for example mystore.myshopify.com. You can enter just the store name (e.g. mystore) and the domain suffix will be added automatically.
3

Click Connect with Shopify

You are redirected to Shopify's OAuth consent screen. Review the permissions and click Install App.
4

Connection complete

You are redirected back to AIChatVault. The integration page shows your store name, currency, plan, and product count. A background product sync starts automatically.
5

Test it

Open the chat widget on your store and ask "Do you have any [product]?" or "What's the status of order #1234?"

Connecting with a Custom App token (advanced)

If you prefer not to use OAuth — for example in a headless or agency setup — you can connect using a Shopify Custom App access token:

  • •In Shopify Admin, go to Settings → Apps and sales channels → Develop apps.
  • •Create a custom app, grant it the required API scopes (read_products, read_orders, write_orders, read_customers, write_customers, read_inventory, read_discounts, and write_script_tags). write_orders is required for order cancellation and read_discounts for discount code checks — the connection will work without them but those two actions will fail.
  • •Generate an Admin API access token and copy it.
  • •On the Shopify integration page, use the Manual / Custom App option and enter your store domain and the access token.

What happens on connect

  • •Webhooks registered — Shopify webhooks are created automatically to notify AIChatVault when products or orders change.
  • •Product sync — a background job pulls your full product catalogue into the knowledge base.
  • •Widget NOT installed yet — the storefront chat widget is off by default on every new connection. You enable it as a separate step, described next.
⚠️
Connecting Shopify does not put the chat widget on your storefront. The widget only appears after you explicitly enable it on the integration page, using one of the two methods below.

Enabling the storefront widget

On the Shopify integration page, pick an installation method and click Enable. Nothing is installed automatically — you always choose one of these two methods first:

1

Theme App Extension (recommended)

Shopify's modern app-embed method. Select it on the integration page, then click "Open Shopify Theme Editor and activate AIChatVault" — this is a deep-link straight into your store's Theme Editor with the AIChatVault app embed block pre-selected under App embeds. Toggle it on there and save. No Liquid or theme file editing required.
2

Legacy ScriptTag

Select this method and click Enable. AIChatVault registers a Shopify ScriptTag that injects the widget on every storefront page automatically — no Theme Editor step needed. Use this if you'd rather not touch the Theme Editor, or your theme doesn't support app embeds.

Only one method can be active at a time — disable the widget before switching methods. Disabling the widget removes it from your storefront immediately (the ScriptTag is deleted, or the app embed is turned back off).

Available actions

ActionDescription
Product Search & RecommendationsSearches the Shopify catalogue and returns product cards with images, prices, and Add to Cart links.
Order Status LookupRetrieves order status, tracking info, and purchase history using order number and email.
View CartDisplays the customer's current Shopify cart contents, quantities, and totals.
Browse CollectionsBrowses Shopify collections to improve product discovery when keyword search returns no results.
Update Customer ProfileLets signed-in customers update their name, email, or phone through chat.
Update Billing AddressLets signed-in customers add or modify billing addresses through natural conversation.
Order CancellationLooks up an order and, once the customer confirms via a confirmation card, cancels it. Always requires explicit confirmation before cancelling — never cancels silently.
Compare ProductsShows a side-by-side comparison of up to 4 products the customer is considering.
Check Return EligibilityChecks whether an order is still within your configured return window. Governed by the Return Policy panel on the integration page (return window in days, and any product tags excluded from returns).
Check Discount CodeValidates whether a discount or coupon code the customer mentions is currently active.
Get Cross-Sell / Related ProductsSuggests related or complementary products after the customer shows interest in an item.
ℹ️
AIChatVault's Shopify app automatically registers the mandatory GDPR compliance webhooks (customers/data_request, customers/redact, shop/redact) required by the Shopify App Store — no setup needed on your end.

Integration details shown on the connected page

  • •Store name and Shopify domain.
  • •Currency and Shopify plan.
  • •Product count from Shopify.
  • •Synced product count — products currently indexed in AIChatVault.
  • •Last synced at — timestamp of the most recent product sync.
  • •Widget status — whether the widget is currently enabled, and which installation method (Theme App Extension or Legacy ScriptTag) is active.
  • •Last error — shown if a sync or action call fails, with the error message.

Disconnecting Shopify

Clicking Disconnect removes the integration, deletes the ScriptTag from your store, and deregisters the webhooks. Your synced products are removed from the knowledge base. The agent can no longer answer product or order questions from Shopify data.

💡
Keep your Shopify product descriptions detailed and accurate. The agent uses this text when answering questions like "Tell me about the [product]" or "What's the difference between X and Y?" Sparse descriptions produce vague answers.

Was this page helpful?