All workflows

Rule-Based Lead Score

Rank caller-supplied startup, venture, sales or partnership leads with transparent weighted rules and matched-rule evidence.

1 credit per call · $0.005 USDC with x402

Sample input

{
  "records": [
    {
      "id": "a",
      "stage": "seed",
      "country": "GR"
    },
    {
      "id": "b",
      "stage": "series-a",
      "country": "US"
    }
  ],
  "rules": [
    {
      "field": "stage",
      "operator": "eq",
      "value": "seed",
      "weight": 10
    }
  ]
}

Worked sample output

{
  "ok": true,
  "mode": "lead_score",
  "record_count": 2,
  "rule_count": 1,
  "ranked": [
    {
      "id": "a",
      "index": 0,
      "score": 10,
      "matched_rules": [
        "r1"
      ],
      "record": {
        "id": "a",
        "stage": "seed",
        "country": "GR"
      }
    },
    {
      "id": "b",
      "index": 1,
      "score": 0,
      "matched_rules": [],
      "record": {
        "id": "b",
        "stage": "series-a",
        "country": "US"
      }
    }
  ],
  "limitations": [
    "Scores caller-supplied records using caller-supplied rules; it does not discover leads or verify company facts."
  ]
}

Worked example using published sample data only. Own-data execution is paid.

Connect in curl

Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.

curl 'https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/lead-score' \
  -H "Authorization: Bearer $BOUNTY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: workflow-request-001' \
  -H 'X-Max-Credits: 1' \
  --data '{"records":[{"id":"a","stage":"seed","country":"GR"},{"id":"b","stage":"series-a","country":"US"}],"rules":[{"field":"stage","operator":"eq","value":"seed","weight":10}]}'

Connect in n8n

Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.

Use an HTTP POST to https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/lead-score. Send JSON and these headers; store the Bearer token as a private credential.

{
  "method": "POST",
  "headers": {
    "Authorization": "Bearer YOUR_PRIVATE_API_KEY",
    "Content-Type": "application/json",
    "Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
    "X-Max-Credits": "1"
  },
  "body": {
    "records": [
      {
        "id": "a",
        "stage": "seed",
        "country": "GR"
      },
      {
        "id": "b",
        "stage": "series-a",
        "country": "US"
      }
    ],
    "rules": [
      {
        "field": "stage",
        "operator": "eq",
        "value": "seed",
        "weight": 10
      }
    ]
  }
}

Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe