shop-chat-agent

This app is a template for embedding an AI chat widget on Shopify storefronts. Customers can search for products, inquire about policies or shipping, and complete purchases without leaving the conversation. It utilizes the Model Context Protocol (MCP) to interact with Shopify's APIs.

GitHub Stars

0

User Rating

Not Rated

Forks

0

Issues

0

Views

0

Favorites

0

README
Build an AI Agent for Your Storefront

A Shopify template app that lets you embed an AI-powered chat widget on your storefront. Shoppers can search for products, ask about policies or shipping, and complete purchases - all without leaving the conversation. Under the hood it speaks the Model Context Protocol (MCP) to tap into Shopify’s APIs.

Overview
  • What it is: A chat widget + backend that turns any storefront into an AI shopping assistant.
  • Key features:
    • Natural-language product discovery
    • Store policy & FAQ lookup
    • Create carts, add or remove items, and initiate checkout
    • Track orders and initiate returns
Developer Docs
Examples
  • hi > will return a LLM based response. Note that you can customize the LLM call with your own prompt.
  • can you search for snowboards > will use the search_shop_catalog MCP tool.
  • add The Videographer Snowboard to my cart > will use the update_cart MCP tool and offer a checkout URL.
  • update my cart to make that 2 items please > will use the update_cart MCP tool.
  • can you tell me what is in my cart > will use the get_cart MCP tool.
  • what languages is your store available in? > will use the search_shop_policies_and_faqs MCP tool.
  • I'd like to checkout > will call checkout from one of the above MCP cart tools.
  • Show me my recent orders > will use the get_most_recent_order_status MCP tool.
  • Can you give me more details about order Id 1 > will use the get_order_status MCP tool.
Architecture
Components

This app consists of two main components:

  1. Backend: A Remix app server that handles communication with Claude, processes chat messages, and acts as an MCP Client.
  2. Chat UI: A Shopify theme extension that provides the customer-facing chat interface.

When you start the app, it will:

  • Start Remix in development mode.
  • Tunnel your local server so Shopify can reach it.
  • Provide a preview URL to install the app on your development store.

For direct testing, point your test suite at the /chat endpoint (GET or POST for streaming).

MCP Tools Integration
  • The backend already initializes all Shopify MCP tools—see app/mcp-client.js.
  • These tools let your LLM invoke product search, cart actions, order lookups, etc.
  • More in our dev docs.
Tech Stack
Customizations

This repo can be customized. You can:

  • Edit the prompt
  • Change the chat widget UI
  • Swap out the LLM

You can learn how from our dev docs.

Deployment

Follow standard Shopify app deployment procedures as outlined in the Shopify documentation.

Contributing

We appreciate your interest in contributing to this project. As this is an example repository intended for educational and reference purposes, we are not accepting contributions.

Author Information
Sweta Jha

👋 Hi, I'm Sweta Jha — a full-stack developer specializing in the MERN stack. 🚀 I build scalable web applications, integrate APIs, and love solving real-world

Ahmedabad

0

Followers

1

Repositories

0

Gists

108

Total Contributions

Threads