Shopify 자동화은(는) 무엇을 하나요?
Shopify 전자상거래 자동화 - 재고 관리, 주문 처리, 고객 워크플로우 및 분석
개요
이 스킬은 Shopify 스토어 관리를 위한 AI 기반 자동화 기능을 제공합니다. 주요 작업 영역은 다음과 같습니다:
- 재고 관리: 제품 재고 수준 자동 업데이트, 재입고 알림, 변형 관리
- 주문 처리: 주문 생성, 상태 업데이트, 이행 상태 추적
- 고객 워크플로우: 고객 세분화, 이메일 캠페인, 로열티 프로그램 관리
- 분석: 판매 보고서, 재고 회전율, 고객 행동 인사이트
전제 조건
시작하기 전에 다음이 필요합니다:
- Shopify 스토어: 관리자 액세스 권한이 있는 활성 Shopify 스토어
- Shopify API 자격 증명:
SHOPIFY_STORE_URL: 스토어 URL (예:mystore.myshopify.com)SHOPIFY_ACCESS_TOKEN: Shopify Admin API 액세스 토큰SHOPIFY_API_KEY: Shopify 앱 API 키 (선택 사항)SHOPIFY_API_SECRET: Shopify 앱 API 시크릿 (선택 사항)
설정
환경 변수
.env 파일에 다음 환경 변수를 설정하세요:
SHOPIFY_STORE_URL=yourstore.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SHOPIFY_API_KEY=your_api_key
SHOPIFY_API_SECRET=your_api_secret
API 인증
이 스킬은 Shopify Admin API를 사용합니다. 인증 방법:
- 액세스 토큰: Shopify 관리자에서 설정 > 앱 및 판매 채널 > 앱 개발 > 관리자 API로 이동하여 생성합니다.
- 스코프: 필요한 권한(
read_products,write_products,read_orders,write_orders,read_customers,write_customers,read_inventory,write_inventory)을 부여합니다.
사용 예시
재고 관리
# 실시간 재고 수준 확인
shopify-inventory check --sku SKU123
# 재고 수준 업데이트
shopify-inventory update --sku SKU123 --quantity 50
# 재고 부족 경고
shopify-inventory low-stock --threshold 10
주문 처리
# 최근 주문 목록
shopify-orders list --status pending
# 주문 세부 정보 보기
shopify-orders view --order-id 1234567890
# 주문 이행
shopify-orders fulfill --order-id 1234567890
고객 워크플로우
# 고객 세그먼트 생성
shopify-customers segment --name "VIP" --condition "total_spent > 500"
# 고객 프로필 보기
shopify-customers view --email [email protected]
# 일괄 이메일 보내기
shopify-customers email --segment VIP --subject "특별 할인"
분석
# 판매 보고서
shopify-analytics sales-report --period last_30_days
# 제품 성과
shopify-analytics top-products --limit 10
# 고객 인사이트
shopify-analytics customer-insights --segment new
지원 명령
| 명령 | 설명 |
|---|---|
shopify-inventory | 재고 관리 작업 |
shopify-orders | 주문 처리 작업 |
shopify-customers | 고객 관계 작업 |
shopify-analytics | 보고 및 분석 |
shopify-products | 제품 관리 작업 |
shopify-discounts | 할인 및 프로모션 |
API 참조
모든 명령은 Shopify Admin API를 기반으로 하며 다음 엔드포인트를 사용합니다:
- 재고:
GET /admin/api/2024-01/inventory_items.json - 주문:
POST /admin/api/2024-01/orders.json - 고객:
GET /admin/api/2024-01/customers.json - 제품:
PUT /admin/api/2024-01/products/{id}.json
자세한 내용은 Shopify Admin API 문서를 참조하세요.
문제 해결
일반적인 문제
- 인증 오류:
SHOPIFY_ACCESS_TOKEN이 유효하고 만료되지 않았는지 확인하세요. - 속도 제한: Shopify API는 분당 40회 요청으로 제한됩니다. 일괄 작업에는 지연 시간을 추가하세요.
- 데이터 불일치: 모든 캐시된 데이터를 무효화하려면
shopify-sync --force를 사용하세요.
로그
자세한 로깅을 활성화하려면 DEBUG=true 환경 변수를 설정하세요:
DEBUG=true shopify-inventory check --sku SKU123
라이선스
이 스킬은 MIT 라이선스에 따라 제공됩니다.