search_idle_leads
Identify inactive leads in Kylas CRM by searching for records with no activity beyond a specified timeframe, using both last update and latest activity timestamps to ensure accurate results.
Instructions
Search for idle/stagnant leads: no activity for at least the given number of days. Uses both updatedAt and latestActivityCreatedAt; a lead is returned only when BOTH dates are on or before (today − days), so the effective last activity is before the threshold.
days: Minimum days with no activity (e.g. 10 for "no activity since 10 days"). time_zone: IANA timezone for threshold (e.g. America/New_York). Default: Asia/Calcutta. page: 0-based page (default 0). size: Page size, max 100 (default 20). sort: Sort e.g. "createdAt,desc" (default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| time_zone | No | ||
| page | No | ||
| size | No | ||
| sort | No | createdAt,desc |