ShopBot
π€ποΈ AI-powered shopping assistant that helps you find products across thousands of Shopify merchants worldwide using natural language
An AI-powered shopping assistant that helps you find products across thousands of Shopify merchants worldwide using natural language. ShopBot is a conversational CLI agent that lets you search for products using plain English. It uses Google Gemini to understand your intent and queries the Shopify global product catalog to find relevant results β with prices, ratings, and direct checkout links. 2. Create a .env file in the project root:
Summary extracted from the README.
ShopBot
An AI-powered shopping assistant that helps you find products across thousands of Shopify merchants worldwide using natural language.
Demo

What it does
ShopBot is a conversational CLI agent that lets you search for products using plain English. It uses Google Gemini to understand your intent and queries the Shopify global product catalog to find relevant results β with prices, ratings, and direct checkout links.
Example queries:
- "Waterproof jacket under $150 shipping to Canada"
- "Gifts for a 5-year-old under $30"
- "Wireless headphones with good bass"
Tech stack
- Language: TypeScript
- AI: Google Gemini 2.5 Flash (
@google/genai) - Product data: Shopify Catalog MCP (Model Context Protocol)
- Interface: Interactive CLI (Node.js readline)
Prerequisites
- Node.js 18+
- A Google Gemini API key (free)
- Shopify Catalog API credentials (
client_idandclient_secret) (free)- API keys can be generated in the Dev Dashboard
Setup
-
Clone and install dependencies:
git clone https://github.com/nicolaslouge/ShopBot.git cd shopbot npm install -
Create a
.envfile in the project root:GEMINI_API_KEY=your_gemini_api_key SHOPIFY_CATALOG_CLIENT_ID=your_client_id SHOPIFY_CATALOG_CLIENT_SECRET=your_client_secret -
Run the assistant:
npm start
Usage
Once running, type your shopping request at the prompt:
You: I'm looking for a waterproof jacket under $150, shipping to Canada
ShopBot: Here are some options I found...
Type quit to exit.
Scripts
| Command | Description |
|---|---|
npm start |
Build and run the assistant |
npm run dev |
Alias for npm start |
npm run build |
Compile TypeScript only |
Project structure
shopbot/
βββ src/
β βββ agent.ts # Main agent loop with Gemini integration
β βββ catalog-client.ts # Shopify Catalog MCP client
βββ dist/ # Compiled JavaScript (generated)
βββ .env # Your credentials (not committed)
βββ package.json
βββ tsconfig.json
How it works
- You type a message in natural language
- Gemini decides whether to search for products or ask a clarifying question
- The agent calls the Shopify Catalog API with structured search parameters
- Results are passed back to Gemini, which formats a clean, readable response
- Each result includes price, shop name, rating, and a direct checkout link
The agent supports filtering by price range, shipping destination, and can retrieve detailed variant information (sizes, colors) for specific products.
Limitations
- Shopify merchants only β the catalog covers Shopify stores exclusively; no Amazon, eBay, or other platforms.
- No cart or session β each result links directly to a product page or checkout. There is no persistent cart across multiple items.
- No order tracking β ShopBot can find products and link to checkout, but cannot track orders after purchase.
- Currency β prices are displayed in the currency reported by each merchant (typically USD). There is no currency conversion or filtering by currency. To add this, expose a
currencyfilter in thesearch_productstool declaration insrc/agent.tsand pass it through inhandleToolCall, if the Shopify Catalog API supports it. - Max 20 results per search β the
limitparameter is capped at 20 (default 5). To raise the default, change the fallback value inhandleToolCallinsrc/agent.ts(limit: (args.limit as number) ?? 5). - Response truncation β catalog API responses are truncated at 4,000 characters. Very detailed product listings may be cut off. To increase this, raise the
.slice(0, 4000)limit informatSearchResultsinsrc/agent.ts.
License
MIT