360 Secure SkillHub
360 安全技能中心

Haresh Product Search

该 Skill 解析用户的自然语言商品查询,提取分类、价格区间与排序偏好,转换为 JSON 参数后通过 exec 工具 POST 到本地 n8n webhook,再解析响应并以友好格式返回搜索结果;包含同义词映射、价格区间解析以及无结果、请求失败、超时等错误处理提示。

haresh-sai06
haresh-sai06
热度 71.56
最近更新 2026-05-17 13:15:32
分类:搜索依赖:代码执行 / 第三方 API应用场景:购物

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add haresh-product-search
Metadata
name
haresh-product-search
description
Search e-commerce products via n8n webhook integration
user-invocable
true

Product Search Skill

Purpose

Enables users to search for products in the e-commerce catalog using natural language queries.

When to Use

  • User asks to find products, search inventory, or browse catalog
  • User mentions specific product types, categories, or brands
  • User provides price constraints or filtering requirements

Workflow

  1. Parse user intent to extract search parameters:

    • Product category (e.g., "running shoes", "laptops")
    • Price constraints (e.g., "under $100", "between $50-$200")
    • Sort preferences (e.g., "cheapest first", "highest rated")
  2. Transform parameters into JSON payload with category, price_min, price_max, sort_by

  3. Use exec tool to POST to n8n webhook at http://localhost:5678/webhook/product-search

  4. Parse n8n response and present results to user in friendly format

Parameter Mapping

  • Category synonyms: "gym shoes" becomes "fitness", "sneakers" becomes "footwear"
  • Price parsing: "under X" sets price_max to X
  • Sort options: "cheapest" sorts price ascending, "best" sorts by rating

Error Handling

  • If no results: Suggest broader search terms
  • If webhook fails: Inform user search service is unavailable
  • If timeout: Ask if user wants to wait or retry