ms-customer-stories
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMicrosoft Customer Stories
Microsoft Customer Stories
Overview
概述
Search and retrieve customer stories from Microsoft's official Customer Stories site via its internal API.
通过微软官方客户案例网站的内部API搜索并获取客户案例。
Important: Script Location
重要提示:脚本位置
The directory and directory are located in the same directory as this SKILL.md file. Before running any commands, locate the directory where this SKILL.md resides and use it as the base path for all script references below.
scripts/references/For example, if this SKILL.md is at , then:
<skill_dir>/SKILL.md- Search script:
<skill_dir>/scripts/search_stories.py - Fetch script:
<skill_dir>/scripts/fetch_story.py - Filter reference:
<skill_dir>/references/filters.md
scripts/references/例如,如果本SKILL.md位于,则:
<skill_dir>/SKILL.md- 搜索脚本:
<skill_dir>/scripts/search_stories.py - 获取脚本:
<skill_dir>/scripts/fetch_story.py - 过滤参考文档:
<skill_dir>/references/filters.md
Important: Python Execution
重要提示:Python执行方式
Before running scripts, determine the correct way to invoke Python in the current project. Check in this order:
- is available and
uvexists: Use.venv/uv run python <script> - Virtual environment () exists without
.venv/: Activate it or useuv(Windows) /.venv/Scripts/python <script>(macOS/Linux).venv/bin/python <script> - System Python: Use or
python <script>python3 <script>
Use the detected Python command (referred to as below) for all script executions.
{python}在运行脚本前,请确定当前项目中调用Python的正确方式。请按以下顺序检查:
- 可用且存在
uv目录:使用.venv/uv run python <script> - 存在虚拟环境()但无
.venv/:激活虚拟环境,或使用uv(Windows系统)/.venv/Scripts/python <script>(macOS/Linux系统).venv/bin/python <script> - 系统Python:使用或
python <script>python3 <script>
请使用检测到的Python命令(以下简称)执行所有脚本。
{python}Prerequisites
前置条件
Install the package in the Python environment. Choose the method that matches your setup:
requests- uv:
uv pip install requests - pip (venv): (after activating the virtual environment)
pip install requests - pip (system): or
pip install requestspip3 install requests
在Python环境中安装包,请选择与你的环境匹配的安装方式:
requests- uv:
uv pip install requests - pip(虚拟环境):激活虚拟环境后执行
pip install requests - pip(系统Python):执行或
pip install requestspip3 install requests
Workflow
工作流程
- Locate the directory containing this SKILL.md to determine script paths ()
<skill_dir> - Determine the Python execution command () as described above
{python} - Analyze the user's request to determine appropriate filters
- Run with selected filters to find matching stories
{python} <skill_dir>/scripts/search_stories.py - Review results and optionally run on specific stories for full details
{python} <skill_dir>/scripts/fetch_story.py - Summarize findings for the user
- 找到本SKILL.md所在的目录以确定脚本路径()
<skill_dir> - 按照上述方法确定Python执行命令()
{python} - 分析用户请求以确定合适的过滤条件
- 运行并传入选定的过滤条件,查找匹配的案例
{python} <skill_dir>/scripts/search_stories.py - 查看结果,可选地对特定案例运行以获取完整详情
{python} <skill_dir>/scripts/fetch_story.py - 为用户总结查找结果
Step 1: Map User Request to Filters
步骤1:将用户请求映射为过滤条件
Translate the user's natural language request into API filter parameters. Consult for the complete list of available filter values.
<skill_dir>/references/filters.mdMapping guidelines:
| User mentions | Filter to use |
|---|---|
| Country/region names (Japan, US, etc.) | |
| Product names (Azure, Teams, etc.) | |
| Industry terms (healthcare, finance, etc.) | |
| Business concepts (AI, automation, etc.) | |
| Company size (SMB, enterprise, etc.) | |
| Specific technology terms (RAG, etc.) | |
Common mappings:
- "中小企業" / "SMB" → or
--org-size 50-999-employees--org-size 1-49-employees - "大企業" / "Enterprise" →
--org-size 10000-employees - "RAG" / "検索拡張生成" → +
--query RAG--products azure/azure-openai - "日本" →
--region asia/japan
将用户的自然语言请求转换为API过滤参数。请查阅获取所有可用过滤值的完整列表。
<skill_dir>/references/filters.md映射指南:
| 用户提及内容 | 使用的过滤参数 |
|---|---|
| 国家/地区名称(日本、美国等) | |
| 产品名称(Azure、Teams等) | |
| 行业术语(医疗、金融等) | |
| 业务概念(AI、自动化等) | |
| 企业规模(中小企业、大型企业等) | |
| 特定技术术语(RAG等) | |
常见映射:
- "中小企業" / "SMB" → 或
--org-size 50-999-employees--org-size 1-49-employees - "大企業" / "Enterprise" →
--org-size 10000-employees - "RAG" / "検索拡張生成" → +
--query RAG--products azure/azure-openai - "日本" →
--region asia/japan
Step 2: Search Stories
步骤2:搜索案例
Run the search script:
bash
{python} <skill_dir>/scripts/search_stories.py --products azure/azure-openai --region asia/japan --query "RAG" --top 10Arguments:
- /
--query: Free text search-q - /
--products: Product filter (e.g.,-p,azure/azure-openai)azure/azure-ai-search - /
--region: Region filter (e.g.,-r,asia/japan)europe/germany - /
--industry: Industry filter (e.g.,-i,healthcare)manufacturing - /
--business-need: Business need (e.g.,-b)artificial-intelligence - /
--org-size: Organization size (e.g.,-o)50-999-employees - /
--service: Service filter (e.g.,-s)fasttrack - : Stories that include (e.g.,
--includes)videos,partners - /
--top: Number of results (default: 12)-t - : Pagination offset
--skip
Output is JSON with , , and array.
totalCounthasMorePagesstories运行搜索脚本:
bash
{python} <skill_dir>/scripts/search_stories.py --products azure/azure-openai --region asia/japan --query "RAG" --top 10参数说明:
- /
--query:自由文本搜索-q - /
--products:产品过滤(例如:-p、azure/azure-openai)azure/azure-ai-search - /
--region:地区过滤(例如:-r、asia/japan)europe/germany - /
--industry:行业过滤(例如:-i、healthcare)manufacturing - /
--business-need:业务需求过滤(例如:-b)artificial-intelligence - /
--org-size:企业规模过滤(例如:-o)50-999-employees - /
--service:服务过滤(例如:-s)fasttrack - :包含特定内容的案例(例如:
--includes)videos,partners - /
--top:返回结果数量(默认:12)-t - :分页偏移量
--skip
输出为JSON格式,包含、和数组。
totalCounthasMorePagesstoriesStep 3: Fetch Story Details
步骤3:获取案例详情
For interesting stories, fetch the full content:
bash
{python} <skill_dir>/scripts/fetch_story.py 25666-softbank-corp-azure-ai-foundryAccepts a story slug or full URL. Returns JSON with , , .
titledescriptioncontent对于感兴趣的案例,获取完整内容:
bash
{python} <skill_dir>/scripts/fetch_story.py 25666-softbank-corp-azure-ai-foundry接受案例slug或完整URL。返回JSON格式,包含、和。
titledescriptioncontentOutput Format
输出格式
Always respond in the same language the user used. If the user asks in Japanese, reply in Japanese. If in English, reply in English.
Present results to the user in this format:
undefined始终使用用户提问的语言进行回复。如果用户用日语提问,就用日语回复;如果用英语提问,就用英语回复。
请按照以下格式向用户展示结果:
undefinedSearch Results: {totalCount} stories
搜索结果:{totalCount} 个案例
1. {title}
1. {title}
- Industry: {industry}
- URL: {url}
- Summary: {summary from content}
- 行业:{industry}
- 链接:{url}
- 摘要:{content中的摘要}
2. {title}
2. {title}
...
When the user asks for details on a specific story, provide a more detailed summary of the story content including key challenges, solutions, and outcomes....
当用户要求获取特定案例的详情时,请提供更详细的案例内容摘要,包括关键挑战、解决方案和成果。