lfy-user

Original🇨🇳 Chinese
Translated

User query skill. It is applicable to requirements such as obtaining current logged-in user information, salesperson list and sales team information. Use this skill when users need to: (1) Get their own user information, (2) Obtain the list of salespersons and their affiliated teams.

11installs
Added on

NPX Install

npx skill4agent add 6fy/lfy-cli lfy-user

Tags

Translated version includes tags in frontmatter

SKILL.md Content (Chinese)

View Translation Comparison →

User Query Skill

lfy-cli
is a command line program provided by Lufyi, all operations are completed by executing the
lfy-cli
command.
Interact with the user system via
lfy-cli user <interface name> '{}'
.

Notes

  • If
    errcode
    is not
    0
    or the return format is abnormal, you need to inform the user of the error message
  • The salespersons returned by
    get_sales
    may be numerous, you can filter by team
  • Technical fields such as
    user_id
    ,
    sales_id
    ,
    team_id
    are not displayed by default
  • The current version does not support any modification operations on users

Interface List

Get Own User Information (get_self)

bash
lfy-cli user get_self '{}'
Get the basic information of the current logged-in user, including user ID, name and affiliated organization.
See API Details.

Get Salesperson List (get_sales)

bash
lfy-cli user get_sales '{}'
Get information of all salespersons and their sales teams.
See API Details.

Typical Workflow

Get Own Information

Typical query examples:
  • "What is my user information"
  • "Check the current logged-in user"
  • "Get my information in the Lufyi system"
Process:
  1. Call the
    get_self
    command to get current user information
  2. Display basic user information
Display result:
👤 Your identity information in Lufyi: Qingzhou Company - Zhang San

Get Salesperson List

Typical query examples:
  • "What salespersons are there?"
  • "Who are in the sales team?"
  • "Get the salesperson list"
Process:
  1. Call the
    get_sales
    command to get salesperson and team information
  2. Display the correspondence between team list and salespersons
Display result:
👥 Salesperson List:

**Sales Team 1**: Zhang San, Li Si, Wang Wu
**Sales Team 2**: Zhao Liu, Sun Qi, Zhou Ba

Notes

  • Technical fields such as
    user_id
    ,
    team_id
    ,
    parent_id
    ,
    sales_id
    ,
    teams
    are not displayed by default
  • The current version does not support any modification operations on users