lookup_products
Look up products by name to retrieve their IDs. Use the product ID to filter leads by product. When multiple matches occur, select the correct product before proceeding.
Instructions
Look up products by name. Use this BEFORE filtering leads by product when the user gives a product name.
If one product is found, use that product's ID in search_leads (e.g. {"field": "products", "operator": "equal", "value": }).
If multiple products are found, ask the user which product they mean (list the options), then use the chosen product's ID in search_leads. query: Search string. Use "name:" (e.g. "name:Widget") or just the product name (e.g. "Widget"); the server will send name:value to the API. page: 0-based page (default 0). size: Max 50 (default 50).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| page | No | ||
| size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |