get_lead_conversion_report
Generate lead conversion reports within a specified date range to track and analyze CRM performance, enabling data-driven insights for better pipeline management.
Instructions
Get lead conversion report for a date range
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_from | Yes | Start date (YYYY-MM-DD) | |
| date_to | Yes | End date (YYYY-MM-DD) |
Implementation Reference
- src/kommo-api.ts:432-441 (handler)This is the core handler function that implements the logic for retrieving the lead conversion report from the Kommo API by making a GET request to '/api/v4/leads/reports' with report_type 'conversion'. It takes dateFrom and dateTo as parameters and returns the report data.async getLeadConversionReport(dateFrom: string, dateTo: string): Promise<any> { const response = await this.client.get('/api/v4/leads/reports', { params: { date_from: dateFrom, date_to: dateTo, report_type: 'conversion' } }); return response.data; }