name:
claims-processing
version:
1.0.0
trigger:
type:
http
path:
/claims/submit
steps:
- id:
ingest
type:
parse
input:
$.claim_payload
schema:
schemas/claim.json
- id:
validate
type:
rules-engine
rules:
rules/happy-bank-claims.ttl
on_fail:
route_to_review
- id:
classify
type:
ml-inference
model:
models/claims-classifier-v2
threshold: 0.92
- id:
route
type:
conditional
conditions:
-
if:
$.classify.score > 0.92
then: auto_approve
-
if:
$.classify.score < 0.40
then: auto_reject
-
else:
queue_for_review
- id:
notify
type:
webhook
url:
${TEMENOS_WEBHOOK_URL}
payload:
$.route.decision