AgentSkillsCN

webshop-query-interpreter

该技能会解读用户的购物查询,提取关键的产品需求,如商品类型、属性与约束条件。当收到新的购物指令时,该技能便会自动触发,将自然语言解析为结构化的查询条件(如产品类别、期望功能、价格上限)。输出是一组清晰的搜索参数,可用于后续的产品查找步骤。

SKILL.md
--- frontmatter
name: webshop-query-interpreter
description: This skill interprets a user's shopping query to extract key product requirements such as item type, attributes, and constraints. It should be triggered when a new shopping instruction is received, parsing natural language into structured criteria (e.g., product category, desired features, price limits). The output is a clear set of search parameters for use in subsequent product lookup steps.

Instructions

Trigger

Activate this skill when a new shopping instruction is received from the user. The instruction will be a natural language request for a product.

Core Process

  1. Parse the Instruction: Analyze the user's query to identify the following key components:

    • Primary Product Type: The main item being requested (e.g., "hair extension").
    • Key Attributes/Features: Descriptive requirements (e.g., "long", "clip-in", "natural looking").
    • Constraints: Hard limits, especially price (e.g., "price lower than 40.00 dollars").
  2. Structure the Output: Format the extracted information into a clear, structured set of search parameters. Use the following template: