KI-Lead-Qualifizierung und Scoring aus Ihrem CRM

Ein Agent liest einen Lead und sein Unternehmen aus einem schreibgeschützten CRM, bewertet ihn anhand Ihres idealen Kundenprofils und schlägt die nächste Aktion vor.

  • Dateien
  • Schreibgeschützte Verbindung
  • Callback
  • Budgetlimit

Eine echte Ausführung ansehen

Eine echte Ausführung vom 7. Okt. 2026, erneut abgespielt. Modell: openai/gpt-6-luna.

Eingabe
{
  "lead_id": "lead_501"
}
Erfolgreichrun_6635489edcf97c044f218cc28b041a6d$0.0036 von $0.03
  1. In WarteschlangeBudget $0.03 reserviert
  2. MicroVMmicroVM ready
  3. MicroVMworker started · shell off · web off
  4. Verbindungcrm GET /leads/lead_501
  5. Dateiread icp.md
  6. Ergebniscrm GET → 200
  7. Verbindungcrm GET /accounts/acct_91
  8. Ergebniscrm GET → 200
  9. MicroVMmicroVM destroyed
  10. Erfolgreich3 Modellaufrufe, 4,687 TokensAufgezeichnete Ausgabe (Englisch)
    json
    {
      "score": 95,
      "tier": "A",
      "reasons": [
        "Company has 1,200 employees, within the 100–5,000 employee ICP range.",
        "VP of Engineering wants to run agents over carrier APIs and requested a demo for 8 engineers.",
        "Lead mentioned a security review and a Q4 budget."
      ],
      "risks": [],
      "next_action": "Contact within a day to follow up on the demo request and discuss the security review."
    }
  11. Worker zerstört$0.0036 berechnet, $0.0264 freigegeben
Modell $0.0004 · Web $0.00 · Rechenleistung $0.0032

Selbst ausführen

Öffnen Sie das Beispiel im Playground, mit der vollständig ausgefüllten Anfrage. Es läuft in Ihrem eigenen Konto, innerhalb des angezeigten Budgets, gegen dieselben schreibgeschützten Beispielsysteme.

Budget für dieses Beispiel: $0.03

So funktioniert es

Das ideale Kundenprofil ist eine Datei, die Ihr Vertriebsteam bearbeiten kann. Der Agent liest Lead und Konto über eine CRM-Verbindung, die nur GET erlaubt, liefert einen Score mit Gründen und Risiken und schreibt nie ins CRM zurück.

Was der Agent tun kann und was nicht

Die Berechtigungen sind Teil der Anfrage. Alles, was hier nicht aufgeführt ist, steht der Ausführung nicht zur Verfügung.

EinstellungErlaubt
Verbindungen
crm: nur GET, unter ephemer.al/api/samples/crm-api
WebAus
ShellAus
Dateienicp.md (schreibgeschützt)
Null-DatenspeicherungAus: Das Protokoll wird 30 Tage lang gespeichert
Budget$0.03, ein festes Limit
Timeout60 Sekunden

Zugangsdaten gelangen nie in die Maschine: Ein Broker ergänzt sie bei jedem Aufruf und erzwingt die oben genannten Methoden.

Der Code

Das ist die genaue Anfrage, die das Beispiel sendet. Setzen Sie EPHEMERAL_API_KEY auf einen Mitgliedsschlüssel Ihrer Organisation.

curl -X POST $EPHEMERAL_URL/v1/runs \
  -H "Authorization: Bearer $EPHEMERAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d @request.json

Dateien in der Anfrage

Inline übergeben, es wird also nichts vorher hochgeladen. Der Agent sieht jede einzelne als schreibgeschützte Datei.

icp.md
icp.md
# Ideal customer profile

Good fit (score up):
- Engineering or operations teams at companies with 100 to 5,000 employees.
- Wants to automate work over its own APIs (support, finance operations, monitoring).
- Mentions a security review, data retention needs, a budget or a timeline.
- Role: VP or head of engineering, operations, support or finance; or a founder with budget.

Poor fit (score down):
- Students, hobby projects, no budget or timeline.
- Individuals evaluating for someone else.
- Procurement cycles longer than 6 months for a first purchase.

Score 0 to 100. Tier A (70+): contact within a day. Tier B (40 to 69): nurture. Tier C (below 40): no sales time.
Vollständiger Anfragetext request.json

Derselbe Text, mit den Dateien inline.

request.json
{
  "prompt": "Qualify the CRM lead in input.lead_id. Read the lead with GET /leads/{id} and its company with GET /accounts/{account_id}, then score it against icp.md. Reply with one JSON object and nothing else: {\"score\": number, \"tier\": \"A\"|\"B\"|\"C\", \"reasons\": string[] (max 3), \"risks\": string[] (max 2), \"next_action\": string}. Use only what the data returns and never guess; if a call fails or a field is missing, say so.",
  "input": {
    "lead_id": "lead_501"
  },
  "files": [
    {
      "path": "icp.md",
      "content": "# Ideal customer profile\n\nGood fit (score up):\n- Engineering or operations teams at companies with 100 to 5,000 employees.\n- Wants to automate work over its own APIs (support, finance operations, monitoring).\n- Mentions a security review, data retention needs, a budget or a timeline.\n- Role: VP or head of engineering, operations, support or finance; or a founder with budget.\n\nPoor fit (score down):\n- Students, hobby projects, no budget or timeline.\n- Individuals evaluating for someone else.\n- Procurement cycles longer than 6 months for a first purchase.\n\nScore 0 to 100. Tier A (70+): contact within a day. Tier B (40 to 69): nurture. Tier C (below 40): no sales time.\n"
    }
  ],
  "connections": {
    "crm": {
      "type": "http",
      "url": "https://ephemer.al/api/samples/crm-api",
      "auth": {
        "type": "bearer",
        "token": "sample_read_key"
      },
      "allowed_methods": [
        "GET"
      ],
      "instructions": "A CRM. GET /leads lists leads. GET /leads/{id} returns a lead with notes and activity. GET /accounts/{id} returns the company (industry, employees, country, revenue, tech, customer, open_deals)."
    }
  },
  "shell": false,
  "timeout_seconds": 60,
  "max_cost_micros": 30000
}

Mehr erfahren

Ähnliche Beispiele

esc

Keine Treffer für „“.