| name | customer-management |
| description | Customer listing and details with order history. Use when viewing customer information, searching customers, or checking a customer's order history. |
Customer Management
This skill covers customer operations — listing customers with search and sorting, and viewing detailed customer profiles with order history.
Available Tools
| Tool | Description |
|---|
list_customers | List customers with search and sorting |
get_customer | Get customer details with order history |
Listing Customers
Tool: list_customers
Input: {
"search": "John",
"sortBy": "createdAt",
"sortOrder": "DESC"
}
Parameters:
| Parameter | Type | Values | Description |
|---|
| search | string | any | Search by name, phone, email, Telegram username |
| sortBy | string | id, firstName, lastName, createdAt, updatedAt | Sort field |
| sortOrder | string | ASC, DESC | Sort direction |
Response: Paginated list of CustomerDto
Getting Customer Details
Tool: get_customer
Input: {"id": 789}
Returns: {
id, firstName, lastName, phoneNumber, email,
telegramUsername, telegramUserId,
createdAt, updatedAt,
orders[] // Full order history
}
CustomerDto Fields