lfy-customer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

客户查询技能

Customer Query Skill

lfy-cli
是陆份仪提供的命令行程序,所有操作通过执行
lfy-cli
命令完成。
通过
lfy-cli customer <接口名> '<json入参>'
与陆份仪平台的客户系统交互。
lfy-cli
is a command-line program provided by Lufenyi, all operations are completed by executing the
lfy-cli
command.
Interact with the customer system of the Lufenyi platform via
lfy-cli customer <interface name> '<json input parameters>'
.

注意事项

Notes

  • keywords
    为空时可能返回错误或不完整结果
  • errcode
    不为
    0
    或返回格式异常,需告知用户错误信息
  • 若搜索结果为空,告知用户未找到对应客户

  • An empty
    keywords
    may return errors or incomplete results
  • If
    errcode
    is not
    0
    or the return format is abnormal, please inform the user of the error message
  • If the search result is empty, inform the user that no corresponding customer is found

接口列表

Interface List

搜索客户 (search)

Search Customers (search)

bash
lfy-cli customer search '{"keywords": "<keywords>"}'
按关键字搜索客户,支持模糊匹配。
参见 API 详情
bash
lfy-cli customer search '{"keywords": "<keywords>"}'
Search for customers by keyword, supporting fuzzy matching.
See API Details.

获取 GTM 列表 (get_gtms)

Get GTM List (get_gtms)

bash
lfy-cli customer get_gtms '{}'
获取所有 GTM 业务线列表。
参见 API 详情

bash
lfy-cli customer get_gtms '{}'
Get the list of all GTM business lines.
See API Details.

典型工作流

Typical Workflow

搜索客户

Search Customers

经典 query 示例:
  • "帮我搜索一下'科技'相关的客户"
  • "找一下包含'未来'的客户"
  • "搜索关键字为'成都'的客户有哪些?"
  • "我在北京的客户有哪些?"
流程:
  1. 提取用户提供的关键字
  2. 调用
    search
    命令搜索客户
  3. 在结果中筛选
    customer_name
    包含关键字的客户
  4. 若找到唯一匹配,直接展示结果
  5. 若找到多个匹配,最多展示前10个,并告知用户如果需要精准匹配请提供更具体的客户名称
展示结果:
找到客户时:
👥 为您找到 2 个客户: <customer_name_1>, <customer_name_2>
找不到客户时:
没有匹配到包含"<keywords>"的客户,请尝试更具体的方式问我,比如: "帮我搜索一下'科技'相关的客户"。
Classic query examples:
  • "Help me search for customers related to 'technology'"
  • "Find customers containing 'future'"
  • "What customers have the keyword 'Chengdu'?"
  • "What are my customers in Beijing?"
Process:
  1. Extract the keywords provided by the user
  2. Call the
    search
    command to search for customers
  3. Filter customers whose
    customer_name
    contains the keyword from the results
  4. If a unique match is found, display the result directly
  5. If multiple matches are found, display up to the first 10 results, and inform the user to provide a more specific customer name if precise matching is required
Display Results:
When customers are found:
👥 2 customers found for you: <customer_name_1>, <customer_name_2>
When no customers are found:
No customers matching "<keywords>" were found, please try to ask me in a more specific way, for example: "Help me search for customers related to 'technology'".

获取 GTM 列表

Get GTM List

经典 query 示例:
  • "GTM 业务线有哪些?"
  • "帮我查一下 GTM 分类列表"
  • "都有哪些 GTM?""
流程:
  1. 调用
    get_gtms
    命令获取 GTM 列表
  2. 展示 GTM 列表供用户查看
Classic query examples:
  • "What are the GTM business lines?"
  • "Help me check the GTM classification list"
  • "What GTMs are there?"
Process:
  1. Call the
    get_gtms
    command to get the GTM list
  2. Display the GTM list for the user to view

注意事项

Notes

  • gtm_id
    ,
    customer_id
    等技术字段默认不展示
  • 当前版本不支持对用户进行任何修改操作
  • Technical fields such as
    gtm_id
    ,
    customer_id
    are not displayed by default
  • The current version does not support any modification operations for users