Guides2026-07-29·5 min read

How to Embed an AI Chatbot on Your Ecommerce Site in 2 Minutes

No-code steps to add a streaming AI chatbot that answers live inventory questions on Shopify, WooCommerce, or any custom site.

You do not need a developer sprint to put an AI chatbot on your store. With Rivet, the public-facing widget is two lines of code — and it answers from real product data, not a frozen FAQ dump.

What you'll need

  • A Rivet account (sign up free)
  • Your product catalog (CSV/Excel: name, category, price; optional stock and description)
  • Access to your theme or site HTML (Shopify theme editor, WooCommerce theme, or `<head>` on a custom site)

Step 1 — Upload products

In Dashboard → Products, upload your catalog or add items manually. Rivet indexes what shoppers will ask about: stock, price, and product details.

Step 2 — Copy the embed snippet

Open Dashboard → Embed code. You'll get a short snippet that loads Rivet's chat CSS/JS and initializes with your tenant ID.

Keep the snippet as provided. Don't strip `tenantId` — that's how Rivet loads your catalog and appearance settings.

Step 3 — Paste into your site

### Shopify

Online Store → Themes → Edit code → `theme.liquid` → paste before `</head>` → Save.

Details: Shopify integration.

### WooCommerce / WordPress

Paste into your theme header template or a "header scripts" plugin. Guide: WooCommerce integration.

### React / Next.js / Vue

Use the npm package or script tag shown in developer integrations.

### Custom HTML

Paste the same two lines before `</head>` on every page where the bubble should appear.

Step 4 — Brand the widget

In Dashboard → Appearance, set title, theme color, greeting, FAQ, and quick replies. Changes apply to the live widget after save — no redeploy of your storefront.

Step 5 — Test inventory questions

Open your storefront, click the bubble, and ask:

  • "What products do you have?"
  • "Is [SKU] in stock?"
  • "How much is [product]?"

If answers look wrong, refresh the catalog upload — Rivet reads your current product rows, not a training dump from last month.

Why this beats "train your bot" tools

Training-based bots go stale the moment stock changes. Rivet is built for the opposite: query live data on every message. That's why embed-and-go works without a weeks-long content project.

Related reading

Want this on your store?

Start your free trial — no credit card, 2-minute setup.