☁️

Similar Accounts

@elastic/sfdc_similar_accounts

Find accounts similar to a reference account using vector similarity

Usage

RUN SKILL sfdc_similar_accounts()

With parameters:

RUN SKILL sfdc_similar_accounts WITH account_id = 'value', limit = 0, exclude_customers = 0

Parameters

NameTypeDefaultDescription
account_idSTRINGReference Salesforce Account ID to find similar accounts
limitINT
exclude_customersBOOLEANExclude existing customers (Type = Customer)

Returns

ARRAY— An array of matching documents

Example

-- 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
  }
}