Skip to content

add_monitor

添加一个新的商品到监控列表

Action

描述

添加一个新的商品到监控列表。用户需要提供一个 Shopee 商品 URL。

用户可能的问法:

  • "帮我监控这个商品 https://shopee.sg/..."
  • "把这个加到监控列表"
  • "我想盯一下这个竞品的价格"

需要提供 product_url(必填)。可选指定 alert_threshold(降价阈值百分比,默认 5)。

参数

参数类型必填默认值说明
product_urlstringShopee 商品 URL
alert_thresholdinteger5降价阈值(%)

返回值

返回添加成功的确认消息,包含监控 ID、站点和阈值信息。

已添加监控(ID: 42)。
- URL: https://shopee.sg/product/12345678
- 站点: SG
- 降价阈值: 5%

系统已开始自动采集价格。当竞品降价超过 5% 时,会通过飞书推送预警。

重复添加

如果该商品已在监控列表中,返回提示:

该商品已在监控列表中(monitor_id=XX),无需重复添加。

对话示例

  • "帮我监控这个商品 https://shopee.sg/..."
  • "把这个加到监控列表"
  • "我想盯一下这个竞品的价格"

API 端点

POST /monitors

Released under the MIT License.