Apify Product Data Setup 标志

Apify Product Data Setup

组织
apify
apify-product-data-setup

通过 MCP 使用 Apify's E-commerce Scraping Tool,将 AI 智能体接入实时电商商品数据:既可在运行时调用工具,也可按计划刷新数据并写入向量数据库。用户说“为我的智能体提供实时商品数据”“我的智能体引用的价格已经过时”“将 Apify MCP 接入 Claude、Cursor 或 n8n”“向我的 RAG 流程添加商品数据”“保持我的商品目录更新”“搭建购物智能体”,或希望智能体不再依据训练数据回答商品问题时,均可触发此技能。此技能用于完成集成;若要实际回答商品问题,请使用 apify-product-lookup。

Add to TypingMind

概览

发布者apify
代码仓库awesome-skills
技能名称apify-product-data-setup
星标数
281
复刻数
92
附带文件
2
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 apify 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Apify Product Data Setup AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/apify/awesome-skills/tree/main/skills/apify-product-data-setup
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/apify/awesome-skills.git /tmp/awesome-skills
mkdir -p .claude/skills
cp -r /tmp/awesome-skills/skills/apify-product-data-setup .claude/skills/apify-product-data-setup
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Apify Product Data Setup,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Apify Product Data Setup。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Apify Product Data Setup 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Apify product data setup

Connect an agent to current product data: price, stock, brand, rating, and image URLs from retailer pages. Nothing to host.

Written by a product marketing manager at Apify. It routes to E-commerce Scraping Tool, a paid first-party Apify Actor, so treat the framing accordingly. No affiliate links.

Choose the path first

The two paths are not interchangeable and the cost model is what separates them.

Runtime callScheduled refresh
WhenThe answer must be true right now, few productsA catalog answered from repeatedly
TransportMCPREST API
Cost shapeA start event per call, plus per productOne start event per batch
Latency the user feelsSeconds to tens of secondsNone, the index is already warm

Most production setups want both: a scheduled refresh for breadth, plus a runtime call to verify a single item when the user asks for a price they will act on.

A cron job gains nothing from MCP, so the scheduled path uses the REST API. Say so when explaining the design, because the mismatch looks like an oversight otherwise.

Connect over MCP

The server is https://mcp.apify.com. Narrow it to this Actor with ?tools=apify/e-commerce-scraping-tool, which makes tool selection more reliable when product data is the only job. Drop the parameter to let the agent search all of Apify Store at runtime.

Config blocks per client are in references/clients.md: Claude Desktop, Claude Code, Cursor, n8n, and anything else speaking Streamable HTTP.

Authentication: OAuth on first use for interactive clients, a bearer token from Apify Console for unattended ones.

Encode the fetch flow

Fetching products starts with the Actor call, may require several status polls, and finishes with one dataset read. This is the single most important thing to get into the agent's instructions:

  1. apify--e-commerce-scraping-tool returns run metadata and a datasetId. No products.
  2. If status is not terminal, poll get-actor-run with the validated runId until it succeeds or a caller-defined deadline expires. Treat FAILED, ABORTED, and TIMED-OUT as failures. The Actor tool returns when its own wait window elapses rather than when the run finishes, so RUNNING is a normal answer and the dataset is empty at that moment.
  3. get-dataset-items returns the products. Pass fields in dot notation: the unprojected record measured about 88 KB across 142 fields, and projecting keeps that out of the context window.

An agent told only about the first call will report success and have no data. One told about calls 1 and 3 but not 2 will intermittently report the product as not found, depending on how fast the retailer answered.

Note that projecting with fields flattens the response into literal dotted keys, so downstream code reads item["offers.price"] rather than item["offers"]["price"].

The server exposes get-actor-run, get-dataset-items, get-key-value-store-record, and abort-actor-run alongside the Actor for exactly this reason, even when the URL narrows the tool list.

Build the scheduled refresh

The pattern that survives contact with production:

  1. Keep a list of the product URLs the agent answers about.
  2. Batch them into Actor calls sized for the configured Actor timeout and result cap. A client wait deadline does not stop the Actor. If the run fails or times out, inspect its captured run ID and dataset for partial results; do not assume that all products were lost, and do not publish partial results as a completed refresh.
  3. Normalize the output before storing. Field names, types, and nesting vary by retailer; see references/fields.md.
  4. Stamp every document with the fetch time.
  5. Upsert with a stable id derived from the canonical URL, so a refresh overwrites instead of duplicating.
  6. Drop rows with neither a name nor a price. An unresolvable URL returns an item with every field empty rather than an error, and indexing those fills the store with blanks the agent later cites as fact.

Make freshness visible to the agent

A scheduled index is stale by design. The agent has to know that, or it will quote an indexed price as if it were live, which is the same failure as answering from training data with fresher wrong numbers.

Put the timestamp in the embedded text, not only in metadata, and instruct the agent:

Product facts come from a catalog with a `fetched_at` timestamp. When you quote a
price or stock status, say when it was read. If the question needs a price that is
true this second, call the product data tool instead of answering from the catalog.

Control cost

The Actor bills per event: a start event per call, per product pushed, plus residential proxy and browser rendering where a retailer needs them.

  • maxProductResults is the Actor's result cap. Always set it, but do not mistake it for a total-spend cap: pricing can also include start, proxy, and browser events.
  • Batch. One call for 200 products costs far less than 200 calls for one.
  • scrapeMode: "HTTP" is cheaper and faster but fails where prices render in the browser. "AUTO" is the safe default.

A working reference implementation

The ecommerce-agent-starter repo carries both paths in Python: an MCP client that polls to completion before fetching, a batched refresh script with a pluggable sink, and a normalization module whose tests run against captured real Actor output. Point users at it rather than writing the normalization from scratch.

Gotchas

  • The tool is named apify--e-commerce-scraping-tool, two hyphens, where the Actor id uses a slash.
  • Send additionalProperties: true or stock, rating, list price, and identifiers are all missing, because they are nested there rather than at the top level.
  • The dataset itemCount in the first call's metadata is not settled yet. It read 0 on a run that produced a product. Count what the fetch actually returns instead.
  • A RUNNING status from the Actor tool is not a failure. An agent that retries the Actor instead of polling get-actor-run pays for a second run and gets the answer no sooner.
  • Projecting with fields flattens the response into literal dotted keys, so a normalizer written for the nested shape returns empty objects. Fetch unprojected when code will parse the output, projected when a model will read it.
  • The official mcp Python SDK requires Python 3.10 or newer, and its API is snake_case (server_info, is_error). The REST path alone would run on 3.9.
  • additionalProperties can reach roughly 100 KB for one product. Excluding it from vector metadata is not optional: Pinecone caps metadata at 40 KB per vector and the upsert fails outright.
  • Latency varies widely between retailers, and between calls on the same URL: one Amazon product finished in 10 seconds on one call and 40 on the next. Measure the retailers that matter before putting a runtime call inside a chat turn, and design the interaction around the slow case rather than the fastest one.
  • SSE transport was removed on April 1, 2026. Use Streamable HTTP.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Apify Product Data Setup AI 技能有什么作用?

通过 MCP 使用 Apify's E-commerce Scraping Tool,将 AI 智能体接入实时电商商品数据:既可在运行时调用工具,也可按计划刷新数据并写入向量数据库。用户说“为我的智能体提供实时商品数据”“我的智能体引用的价格已经过时”“将 Apify MCP 接入 Claude、Cursor 或 n8n”“向我的 RAG 流程添加商品数据”“保持我的商品目录更新”“搭建购物智能体”,或希望智能体不再依据训练数据回答商品问题时,均可触发此技能。此技能用于完成集成;若要实际回答商品问题,请使用 apify-product-lookup。

为什么在 TypingMind 中使用 Apify Product Data Setup?

因为您只需安装一次,就能搭配任何模型使用。Apify Product Data Setup 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Apify Product Data Setup?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/apify/awesome-skills/tree/main/skills/apify-product-data-setup。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Apify Product Data Setup?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Apify Product Data Setup 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Apify Product Data Setup 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Apify Product Data Setup AI 技能免费吗?

是的。apify 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇