apify-ecommerce

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

E-Commerce Cluster

电商集群

Answer natural language e-commerce questions by routing to the right Apify Actor and delivering a synthesized answer.
通过将请求路由至合适的Apify Actor并生成整合后的回答,来处理自然语言形式的电商相关问题。

Prerequisites

前置条件

(No need to check it upfront)
  • .env
    file with
    APIFY_TOKEN
  • Node.js 20.6+ (for native
    --env-file
    support)
  • mcpc
    CLI tool:
    npm install -g @apify/mcpc
(无需预先检查)
  • 包含
    APIFY_TOKEN
    .env
    文件
  • Node.js 20.6+(支持原生
    --env-file
    功能)
  • mcpc
    CLI工具:
    npm install -g @apify/mcpc

Workflow

工作流程

Copy this checklist and track progress:
Task Progress:
- [ ] Step 1: Detect intent and select Actor
- [ ] Step 2: Fetch Actor schema via mcpc
- [ ] Step 3: Ask user preferences (format, result count)
- [ ] Step 4: Run the Actor
- [ ] Step 5: Analyze results and deliver synthesized answer
复制以下清单并跟踪进度:
任务进度:
- [ ] 步骤1:检测意图并选择Actor
- [ ] 步骤2:通过mcpc获取Actor schema
- [ ] 步骤3:询问用户偏好(格式、结果数量)
- [ ] 步骤4:运行Actor
- [ ] 步骤5:分析结果并生成整合后的回答

Step 1: Detect Intent and Select Actor

步骤1:检测意图并选择Actor

Classify the user's message into an intent, then pick the right Actor.
Intent signals:
Signals in user messageIntent
price, cost, cheapest, compare prices, pricing
pricing
review, rating, sentiment, stars, feedback
reviews
bestseller, top selling, most popular, trending
bestsellers
seller, vendor, reseller, who sells
sellers
all products from, scrape store, full catalog
store-scrape
what platform, built on, tech stack, Shopify or WooCommerce
tech-stack
SEO, listing quality, product page audit
seo-audit
competitor funnel, competitor pricing, conversion elements
competitor
search intent, keyword intent, SERP intent
search-intent
match products, same product on different platforms
product-matching
restaurant, food delivery, DoorDash, UberEats, TheFork
food-delivery
enrich store, store metadata, store list
store-enrichment
event, concert, ticket, Eventbrite
events
property, real estate, house listing, Realtor
real-estate
Facebook ads, Meta ads, ad library, competitor ads
ads-intelligence
classified, Craigslist, used item for sale
classifieds
car, used car, vehicle, automotive, Webmotors
automotive
pins, inspiration, Pinterest boards, visual search, Pinterest trends
content-discovery
TikTok Shop, TikTok store, TikTok creator
tiktok-shop
website for sale, domain for sale, Flippa
website-marketplace
If multiple intents are detected, ask: "Do you want [intent A] or [intent B]?"
Actor routing table — always try Primary first, switch to Fallback only if it fails or returns 0 results:
IntentPlatformPrimary ActorFallback Actor
pricing
Amazon / Walmart / generic
apify/e-commerce-scraping-tool
pricing
eBay
apify/e-commerce-scraping-tool
ivanvs/ebay-scraper-pay-per-result
pricing
Etsy
apify/e-commerce-scraping-tool
epctex/etsy-scraper
pricing
Google Shopping
apify/e-commerce-scraping-tool
epctex/google-shopping-scraper
pricing
Facebook Marketplace
apify/e-commerce-scraping-tool
apify/facebook-marketplace-scraper
pricing
SHEIN
apify/e-commerce-scraping-tool
seamless_coffer/shein-product-scraper
pricing
Lazada
apify/e-commerce-scraping-tool
fatihtahta/lazada-scraper
pricing
Canadian Tire
apify/e-commerce-scraping-tool
azzouzana/canadiantire-ca-scraper
pricing
Tesco
apify/e-commerce-scraping-tool
radeance/tesco-scraper
pricing
Shopify
apify/e-commerce-scraping-tool
trovevault/shopify-products-scraper
pricing
WooCommerce
apify/e-commerce-scraping-tool
trovevault/woocommerce-products-scraper
reviews
Amazon / Walmart / generic
apify/e-commerce-scraping-tool
junglee/amazon-reviews-scraper
reviews
Trustpilot
apify/e-commerce-scraping-tool
casper11515/trustpilot-reviews-scraper
reviews
TheFork
apify/e-commerce-scraping-tool
jdtpnjtp/thefork-restaurant-scraper-advanced
bestsellers
Amazon
apify/e-commerce-scraping-tool
junglee/amazon-bestsellers
sellers
Amazon
apify/e-commerce-scraping-tool
junglee/amazon-seller-scraper
sellers
eBay
apify/e-commerce-scraping-tool
ivanvs/ebay-scraper-pay-per-result
store-scrape
Shopify
apify/e-commerce-scraping-tool
trovevault/shopify-products-scraper
store-scrape
WooCommerce
apify/e-commerce-scraping-tool
trovevault/woocommerce-products-scraper
store-scrape
Amazon
apify/e-commerce-scraping-tool
junglee/Amazon-crawler
store-scrape
Flippa
apify/e-commerce-scraping-tool
scraped/flippa-scraper
tech-stack
any
apify/e-commerce-scraping-tool
trovevault/e-commerce-tech-stack-detector
seo-audit
any
apify/e-commerce-scraping-tool
trovevault/product-listing-seo-auditor
competitor
any
apify/e-commerce-scraping-tool
trovevault/competitor-intelligence-scraper---funnel-pricing-conversion
search-intent
any
apify/e-commerce-scraping-tool
trovevault/ai-serp-intent-extractor---search-intent-classifier
product-matching
any
apify/e-commerce-scraping-tool
tri_angle/product-matching-vectorizer
store-enrichment
any
apify/e-commerce-scraping-tool
trovevault/e-commerce-store-data-enricher
food-delivery
DoorDash
apify/e-commerce-scraping-tool
tri_angle/doordash-store-details-scraper
food-delivery
UberEats
apify/e-commerce-scraping-tool
e-commerce/ubereats-reviews-scraper
food-delivery
TheFork
apify/e-commerce-scraping-tool
jdtpnjtp/thefork-restaurant-scraper-advanced
ads-intelligence
Facebook / Meta
apify/e-commerce-scraping-tool
apify/facebook-ads-scraper
classifieds
Craigslist
apify/e-commerce-scraping-tool
ivanvs/craigslist-scraper-pay-per-result
automotive
Webmotors
apify/e-commerce-scraping-tool
stealth_mode/webmotors-auto-search-scraper
events
Eventbrite
apify/e-commerce-scraping-tool
aitorsm/eventbrite
real-estate
Realtor.com
apify/e-commerce-scraping-tool
powerai/realtor-properties-search-scraper
content-discovery
Pinterest
apify/e-commerce-scraping-tool
fatihtahta/pinterest-scraper-search
tiktok-shop
TikTok Shop
apify/e-commerce-scraping-tool
lemur/tiktok-shop-creators
website-marketplace
Flippa
apify/e-commerce-scraping-tool
scraped/flippa-scraper
将用户消息分类为特定意图,然后选择对应的Actor。
意图信号:
用户消息中的信号意图
price, cost, cheapest, compare prices, pricing
pricing
review, rating, sentiment, stars, feedback
reviews
bestseller, top selling, most popular, trending
bestsellers
seller, vendor, reseller, who sells
sellers
all products from, scrape store, full catalog
store-scrape
what platform, built on, tech stack, Shopify or WooCommerce
tech-stack
SEO, listing quality, product page audit
seo-audit
competitor funnel, competitor pricing, conversion elements
competitor
search intent, keyword intent, SERP intent
search-intent
match products, same product on different platforms
product-matching
restaurant, food delivery, DoorDash, UberEats, TheFork
food-delivery
enrich store, store metadata, store list
store-enrichment
event, concert, ticket, Eventbrite
events
property, real estate, house listing, Realtor
real-estate
Facebook ads, Meta ads, ad library, competitor ads
ads-intelligence
classified, Craigslist, used item for sale
classifieds
car, used car, vehicle, automotive, Webmotors
automotive
pins, inspiration, Pinterest boards, visual search, Pinterest trends
content-discovery
TikTok Shop, TikTok store, TikTok creator
tiktok-shop
website for sale, domain for sale, Flippa
website-marketplace
如果检测到多个意图,请询问:"您需要[intent A]还是[intent B]?"
Actor路由表 — 优先使用Primary,仅在失败或返回0结果时切换到Fallback:
意图平台Primary ActorFallback Actor
pricing
Amazon / Walmart / generic
apify/e-commerce-scraping-tool
pricing
eBay
apify/e-commerce-scraping-tool
ivanvs/ebay-scraper-pay-per-result
pricing
Etsy
apify/e-commerce-scraping-tool
epctex/etsy-scraper
pricing
Google Shopping
apify/e-commerce-scraping-tool
epctex/google-shopping-scraper
pricing
Facebook Marketplace
apify/e-commerce-scraping-tool
apify/facebook-marketplace-scraper
pricing
SHEIN
apify/e-commerce-scraping-tool
seamless_coffer/shein-product-scraper
pricing
Lazada
apify/e-commerce-scraping-tool
fatihtahta/lazada-scraper
pricing
Canadian Tire
apify/e-commerce-scraping-tool
azzouzana/canadiantire-ca-scraper
pricing
Tesco
apify/e-commerce-scraping-tool
radeance/tesco-scraper
pricing
Shopify
apify/e-commerce-scraping-tool
trovevault/shopify-products-scraper
pricing
WooCommerce
apify/e-commerce-scraping-tool
trovevault/woocommerce-products-scraper
reviews
Amazon / Walmart / generic
apify/e-commerce-scraping-tool
junglee/amazon-reviews-scraper
reviews
Trustpilot
apify/e-commerce-scraping-tool
casper11515/trustpilot-reviews-scraper
reviews
TheFork
apify/e-commerce-scraping-tool
jdtpnjtp/thefork-restaurant-scraper-advanced
bestsellers
Amazon
apify/e-commerce-scraping-tool
junglee/amazon-bestsellers
sellers
Amazon
apify/e-commerce-scraping-tool
junglee/amazon-seller-scraper
sellers
eBay
apify/e-commerce-scraping-tool
ivanvs/ebay-scraper-pay-per-result
store-scrape
Shopify
apify/e-commerce-scraping-tool
trovevault/shopify-products-scraper
store-scrape
WooCommerce
apify/e-commerce-scraping-tool
trovevault/woocommerce-products-scraper
store-scrape
Amazon
apify/e-commerce-scraping-tool
junglee/Amazon-crawler
store-scrape
Flippa
apify/e-commerce-scraping-tool
scraped/flippa-scraper
tech-stack
any
apify/e-commerce-scraping-tool
trovevault/e-commerce-tech-stack-detector
seo-audit
any
apify/e-commerce-scraping-tool
trovevault/product-listing-seo-auditor
competitor
any
apify/e-commerce-scraping-tool
trovevault/competitor-intelligence-scraper---funnel-pricing-conversion
search-intent
any
apify/e-commerce-scraping-tool
trovevault/ai-serp-intent-extractor---search-intent-classifier
product-matching
any
apify/e-commerce-scraping-tool
tri_angle/product-matching-vectorizer
store-enrichment
any
apify/e-commerce-scraping-tool
trovevault/e-commerce-store-data-enricher
food-delivery
DoorDash
apify/e-commerce-scraping-tool
tri_angle/doordash-store-details-scraper
food-delivery
UberEats
apify/e-commerce-scraping-tool
e-commerce/ubereats-reviews-scraper
food-delivery
TheFork
apify/e-commerce-scraping-tool
jdtpnjtp/thefork-restaurant-scraper-advanced
ads-intelligence
Facebook / Meta
apify/e-commerce-scraping-tool
apify/facebook-ads-scraper
classifieds
Craigslist
apify/e-commerce-scraping-tool
ivanvs/craigslist-scraper-pay-per-result
automotive
Webmotors
apify/e-commerce-scraping-tool
stealth_mode/webmotors-auto-search-scraper
events
Eventbrite
apify/e-commerce-scraping-tool
aitorsm/eventbrite
real-estate
Realtor.com
apify/e-commerce-scraping-tool
powerai/realtor-properties-search-scraper
content-discovery
Pinterest
apify/e-commerce-scraping-tool
fatihtahta/pinterest-scraper-search
tiktok-shop
TikTok Shop
apify/e-commerce-scraping-tool
lemur/tiktok-shop-creators
website-marketplace
Flippa
apify/e-commerce-scraping-tool
scraped/flippa-scraper

Step 2: Fetch Actor Schema

步骤2:获取Actor Schema

Fetch the Actor's input schema dynamically using mcpc:
bash
export $(grep APIFY_TOKEN .env | xargs) && mcpc --json mcp.apify.com --header "Authorization: Bearer $APIFY_TOKEN" tools-call fetch-actor-details actor:="ACTOR_ID" | jq -r ".content"
Replace
ACTOR_ID
with the selected Actor (e.g.,
apify/e-commerce-scraping-tool
).
This returns:
  • Actor description and README
  • Required and optional input parameters
  • Output fields (if available)
通过mcpc动态获取Actor的输入schema:
bash
export $(grep APIFY_TOKEN .env | xargs) && mcpc --json mcp.apify.com --header "Authorization: Bearer $APIFY_TOKEN" tools-call fetch-actor-details actor:="ACTOR_ID" | jq -r ".content"
ACTOR_ID
替换为所选的Actor(例如:
apify/e-commerce-scraping-tool
)。
此命令将返回:
  • Actor描述和README
  • 必填和可选输入参数
  • 输出字段(如果可用)

Step 3: Ask User Preferences

步骤3:询问用户偏好

Before running, ask:
  1. Output format:
    • Quick answer (default) — synthesized answer in chat, no file saved
    • CSV — full export saved to disk
    • JSON — full export saved to disk
  2. Result count — suggest defaults by intent:
IntentDefault
pricing
50 products
reviews
200 reviews
bestsellers
100 items
sellers
50 sellers
store-scrape
all (unlimited)
food-delivery
50 restaurants
all others20–50
运行前,请询问:
  1. 输出格式:
    • 快速回答(默认)—— 在聊天中展示整合后的回答,不保存文件
    • CSV—— 完整导出并保存到本地
    • JSON—— 完整导出并保存到本地
  2. 结果数量—— 根据意图建议默认值:
意图默认值
pricing
50个产品
reviews
200条评论
bestsellers
100个商品
sellers
50个卖家
store-scrape
全部(无限制)
food-delivery
50家餐厅
其他所有20–50

Step 4: Run the Actor

步骤4:运行Actor

Quick answer (display in chat, no file):
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT'
CSV:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_filename.csv \
  --format csv
JSON:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_filename.json \
  --format json
快速回答(在聊天中展示,不生成文件):
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT'
CSV格式:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_filename.csv \
  --format csv
JSON格式:
bash
node --env-file=.env ${CLAUDE_PLUGIN_ROOT}/reference/scripts/run_actor.js \
  --actor "ACTOR_ID" \
  --input 'JSON_INPUT' \
  --output YYYY-MM-DD_filename.json \
  --format json

Step 5: Analyze Results and Deliver Answer

步骤5:分析结果并生成回答

After the run completes, deliver a direct synthesized answer — not a data dump:
  • Pricing: price range, average, top 5 cheapest with URLs
  • Reviews: average rating, top 3 positive and negative themes, recent snippets
  • Bestsellers: top 10 by rank with name, price, rating, URL
  • Sellers: total sellers, price range per seller, unauthorized seller flags
  • Store-scrape: total products, category breakdown, price range, stock summary
  • Tech-stack: platform detected, confidence level, notable plugins
  • Food delivery: restaurant count, average rating, price tier breakdown
  • Ads intelligence: total ads, active/inactive split, top creative formats
运行完成后,直接提供整合后的回答 — 而非原始数据:
  • 定价:价格区间、平均值、5个最低价商品及链接
  • 评论:平均评分、3个主要正面/负面主题、最新评论片段
  • 畅销品:排名前10的商品,包含名称、价格、评分、链接
  • 卖家:卖家总数、各卖家价格区间、非授权卖家标记
  • 店铺抓取:商品总数、分类分布、价格区间、库存汇总
  • 技术栈:检测到的平台、置信度、重要插件
  • 外卖:餐厅数量、平均评分、价格层级分布
  • 广告情报:广告总数、活跃/非活跃占比、热门创意格式

Error Handling

错误处理

APIFY_TOKEN not found
— Ask user to create
.env
with
APIFY_TOKEN=your_token
mcpc not found
— Ask user to install:
npm install -g @apify/mcpc
Actor not found
— Check Actor ID spelling in routing table
Run FAILED
— Ask user to check the Apify console link in error output
Timeout
— Reduce result count or increase
--timeout
No results
— Broaden keyword or switch to Fallback Actor from routing table
proxy is required
— Add
"proxy": {"useApifyProxy": true}
to input
Platform not detected
— Default to
apify/e-commerce-scraping-tool
with
generic
intent
APIFY_TOKEN not found
— 请用户创建包含
APIFY_TOKEN=your_token
.env
文件
mcpc not found
— 请用户安装:
npm install -g @apify/mcpc
Actor not found
— 检查路由表中的Actor ID拼写
Run FAILED
— 请用户查看错误输出中的Apify控制台链接
Timeout
— 减少结果数量或增加
--timeout
参数
No results
— 放宽关键词或切换到路由表中的Fallback Actor
proxy is required
— 在输入中添加
"proxy": {"useApifyProxy": true}
Platform not detected
— 默认使用
apify/e-commerce-scraping-tool
并设置
generic
意图