☁️

Win Rate Analysis

@elastic/sfdc_win_rate_analysis

Analyze win/loss rates by owner, lead source, or industry

Usage

RUN SKILL sfdc_win_rate_analysis()

With parameters:

RUN SKILL sfdc_win_rate_analysis WITH group_by = 'value', time_period = 'value'

Parameters

NameTypeDefaultDescription
group_bySTRINGGroup results by: owner, lead_source, industry, type
time_periodSTRINGTime period: this_month, this_quarter, this_year, last_90_days

Returns

DOCUMENT— A single document object

Example

-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
  -H "Content-Type: application/json" \
  -d '{"query": "RUN SKILL sfdc_win_rate_analysis()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}