Deine erste Entscheidung integrieren
Übernimm Modell und Konfiguration aus dem Playground. Erstelle einen Key, kopiere den Code und prüfe den ersten Aufruf.
1. Modell auswählen
typesafe/jev-1.132. API-Key erstellen
API-Key erstellen →10 Startguthabenpunkte · ein Guthaben für Web und API
3. Auf deinem Server ausführen
Setze DECISION_API_KEY in deiner Serverumgebung. Ersetze YOUR_API_KEY durch deinen Key. Nicht im Browsercode oder Repository speichern.
export DECISION_API_KEY="YOUR_API_KEY"
curl --fail-with-body 'https://decisionapi.org/v1/systemone' \
-H "Authorization: Bearer $DECISION_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{
"model": "typesafe/jev-1.13",
"state": "I was charged twice for order A-4471. Please refund the duplicate payment.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team should handle this ticket? Use other when no option fits.",
"criteria": {
"billing": "Payments, charges and refunds",
"technical": "Bugs and product errors",
"account": "Login and account access",
"other": "None of these teams"
}
}
}
}'