购物助手创建工具

使用watsonx Orchestrate和MCP创建Kith.com购物助手的快速设置指南。

  • by SaturdaysinthePark
  • 本地部署
  • 4 星标
  • 更新于
在 GitHub 查看 SaturdaysinthePark/ws26-mcp-guide

使用说明

Kith Shopify MCP代理设置指南

使用watsonx Orchestrate和MCP创建Kith.com购物代理的快速设置指南。


先决条件

  • 互联网浏览器
  • IBM帐户的电子邮件地址

步骤1:创建IBM帐户

  1. 首选 cloud.ibm.com
  2. 点击“创建IBM Cloud帐户”
  3. 填写您的电子邮件并创建密码
  4. 验证您的邮箱
  5. 完成帐户设置

步骤2:创建Watson Orchestrate实例

  1. 首选 IBM Cloud Catalog中的Watson Orchestrate
  2. 选择 试用计划 (免费30天)
  3. 选择一个地区(例如达拉斯)
  4. 点击 创建
  1. 等待配置(1-2分钟)
  2. 点击 启动Watson Orchestrate

步骤3:创建AI代理

  1. 在Watson Orchestrate中,单击 人工智能代理和助手
  2. 点击 创建 > AI 代理
  3. 输入代理名称: Kith Shopping Assistant
  4. 添加说明: Shopping assistant for Kith.com streetwear
  5. 点击 创建

步骤4:添加MCP服务器

  1. 在你的代理,去 工具集 部分
  2. 点击 添加工具 > MCP服务器
  1. 输入服务器详细信息:
    • 名字: KithMCP
    • 统一资源定位符: https://kith.com/api/mcp
    • 运输: HTTPS
    • 认证:无(留空)
  2. 点击 连接
  3. 等待连接确认

注意:此示例基于Shopify的店面MCP服务器。你可以阅读更多关于 Shopify的MCP服务器在这里。此URL可以替换为其他存储,例如:

  • https://flybyjing.com/api/mcp
  • https://www.rhodeskin.com/api/mcp

步骤5:添加5个MCP工具

连接后,您将看到5个可用工具。启用所有这些功能:

  1. get_product_details
  2. search_shop_catalog
  3. search_shop_polics_and_faqs
  4. get_cart
  5. update_cart

点击 添加到代理.


步骤6:更新说明

  1. 首选 说明 在您的代理中添加标签
  2. 将默认说明替换为:
You are a knowledgeable shopping assistant for Kith.com, a premium streetwear brand.

CRITICAL: Only Use Information from API Responses
- ONLY provide information explicitly present in API responses
- NEVER invent measurements, sizing details, or specifications
- If information is missing, say: "I don't have those specific measurements. Check the product page for details."

Response Guidelines:
- ALWAYS include product images when showing products
- NEVER expose technical details (variant IDs, API calls, system processes)
- Work seamlessly - don't say "fetching data" or "pulling information"
- Be enthusiastic but professional about products
- Confirm selections before adding to cart

What NOT to Say:
- "I need to fetch the variant ID"
- "Let me pull that data"
- "The system needs..."
- "One moment while I query..."

Instead Say:
- "Let me check that for you"
- "Here's what we have available"
- "Added to your cart!"
  1. 点击 保存

步骤7:测试您的代理

  1. 在代理生成器UI中,使用 预览 方便地测试您的代理

  2. 尝试以下测试查询:

    • “给我看看连帽衫”
    • “你们的退货政策是什么?”
    • “将[产品名称]以M码添加到购物车”
  3. 验证:

    • 产品图片展示
    • 回复中没有技术术语
    • 推车操作顺畅
    • 特工不会产生幻觉信息
  4. 您可以通过单击旁边的3点溢出菜单进行更广泛的评估 部署,然后选择“评估”


步骤8:部署代理

  1. 在代理生成器中,您可以在右上角单击 部署
  • 部署代理会创建一个版本,该版本可以在您的应用程序中使用,也可以在watsonx编排的主聊天页面中显示
  • 在再次部署之前,您所做的任何更改都不会影响已部署的代理
  1. 打开监控以捕获使用情况并了解有关代理性能的更多信息(也需要watsonx.gov产品)

后续步骤

  • 进一步调整代理
  • 对于开发人员:开始使用我们的 代理开发工具包
  • 构建新代理并尝试其他MCP服务器:
    • 纽约地铁: https://subwayinfo.nyc/mcp
      • 无需身份验证,附带许多工具
    • 雅虎财经:
      • 设置MCP服务器时使用“本地”(与远程相反)
      • 安装命令: uvx yahoo-finance-server
      • 来源:https://github.com/AgentX-ai/yahoo-finance-server