SHOPIFY PLUGIN - nself-org/nchat GitHub Wiki
Plugin Name: shopify
Version: 1.0.0
Category: E-commerce
Status: Production Ready
Priority: LOW (E-commerce)
The Shopify Plugin integrates Shopify stores with ɳChat, enabling order notifications, product embeds, and customer support chat.
- ✅ Store Integration - Connect Shopify stores
- ✅ Order Notifications - Real-time order updates
- ✅ Product Embeds - Display products in chat
- ✅ Customer Support - Chat-based support
- ✅ Webhook Events - Order, product, customer events
- ✅ OAuth Authentication - Shopify app installation
- Shopify Partner account
- Shopify app created
- OAuth credentials
- Go to Shopify Partners Dashboard
- Create new app
- Set OAuth redirect:
https://yourdomain.com/api/integrations/shopify/callback - Set scopes:
read_products,read_orders,read_customers - Get API key and secret
# backend/.env.plugins
SHOPIFY_ENABLED=true
SHOPIFY_API_KEY=abc123...
SHOPIFY_API_SECRET=abc123...
SHOPIFY_SCOPES=read_products,read_orders
SHOPIFY_WEBHOOK_SECRET=whsec_abc123...GET /api/integrations/shopify/install?shop=store.myshopify.comPOST /api/integrations/shopify/connect
{
"shop": "store.myshopify.com",
"channelId": "channel-123"
}GET /api/integrations/shopify/productsGET /api/integrations/shopify/ordersPOST /api/integrations/shopify/webhook
X-Shopify-Topic: orders/create
X-Shopify-Hmac-SHA256: ...- orders/create - New order placed
- orders/updated - Order status changed
- products/create - New product added
- products/update - Product updated
- customers/create - New customer registered
Shopify URLs are automatically unfurled:
https://store.myshopify.com/products/product-name
Displays:
- Product image
- Product title
- Price
- Buy button (optional)
Create support tickets from orders:
POST /api/integrations/shopify/support
{
"orderId": "123",
"issue": "Product damaged"
}- Shopify Partners: https://partners.shopify.com
- Shopify Docs: https://shopify.dev