@elastic/sfdc_win_rate_analysis
Analyze win/loss rates by owner, lead source, or industry
RUN SKILL sfdc_win_rate_analysis()With parameters:
RUN SKILL sfdc_win_rate_analysis WITH group_by = 'value', time_period = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| group_by | STRING | — | Group results by: owner, lead_source, industry, type |
| time_period | STRING | — | Time period: this_month, this_quarter, this_year, last_90_days |
-- 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
}
}