webshop-query-parser
This skill extracts key constraints and product requirements from a user's shopping query. It should be triggered when the agent receives a new shop…
它会碰到什么
扫了多少2 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Instructions
When to Use
Activate this skill immediately when a new shopping instruction is received from the user, before any search or click actions are performed.
Core Task
Parse the user's natural language instruction to extract structured search criteria. Your goal is to identify:
- Product Type/Name: The primary item the user wants (e.g., "popcorn").
- Key Attributes: Descriptive features like "gluten free", "organic", "vegan", etc.
- Price Constraints: Any upper or lower price limits (e.g., "lower than 140.00 dollars").
- Other Specifications: Brand, size, quantity, or other qualifying terms.
Procedure
- Run the Parser: Execute the bundled script
parse_query.pyon the user's instruction. - Review & Refine: Examine the script's output. If the instruction is complex or ambiguous, use your judgment to refine the criteria. For example, ensure price limits are correctly interpreted as numeric ranges.
- Formulate Search Strategy: Use the extracted criteria to plan the initial web search. Combine the Product Type with the most critical Key Attributes to form effective initial search keywords.
- Example: For "i need gluten free popcorn, and price lower than 140.00 dollars", the script will output
{'product': 'popcorn', 'attributes': ['gluten free'], 'price_max': 140.0}. Your initial search should besearch[gluten free popcorn].
Output
After parsing, hold the structured criteria in memory. Use it to:
- Guide the formulation of
search[keywords]actions. - Evaluate product listings and details during
clickactions to check for constraint compliance (especially price). - Inform your reasoning in the
Thought:part of your response.
Notes
- Keep the initial search query concise but precise. Prioritize must-have attributes from the user's instruction.
- The price filter is often not available as a direct web action; you must manually check prices in the search results and product details.
- If the initial search yields no results, consider broadening the search by removing less critical attributes one at a time, but always respect hard constraints like "gluten free" if specified.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 1,263
本站分层T1
该仓技能数122
原文件路径
experiments/src/skills/webshop/webshop-query-parser/SKILL.md同一个仓库里的其他技能
- alfworld-appliance-navigator
- alfworld-appliance-preparer
- alfworld-clean-object
- alfworld-device-operator
- alfworld-environment-scanner
- alfworld-goal-interpreter
- alfworld-heat-object-with-appliance
- alfworld-inventory-management
- alfworld-locate-target-object
- alfworld-location-navigator
- alfworld-navigation-planner
- alfworld-object-cooler