@elastic/sfdc_similar_accounts
Find accounts similar to a reference account using vector similarity
RUN SKILL sfdc_similar_accounts()With parameters:
RUN SKILL sfdc_similar_accounts WITH account_id = 'value', limit = 0, exclude_customers = 0| Name | Type | Default | Description |
|---|---|---|---|
| account_id | STRING | — | Reference Salesforce Account ID to find similar accounts |
| limit | INT | — | |
| exclude_customers | BOOLEAN | — | Exclude existing customers (Type = Customer) |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL sfdc_similar_accounts()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}