96 / 100
Webhook failure recovery
Missing required customer_id
What should the workflow do next?
Repair payload83%
Retry unchanged12%
Wait5%
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"status": 422,
"response": "Missing required customer_id",
"retry_count": 2
};
const decision = await evaluateDecision({
state,
question: "What should the workflow do next?",
options: ["Repair payload","Retry unchanged","Wait"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Repair payload"
&& decision.probability >= 0.85) {
queuePayloadRepair(decision);
} else {
queueForReview(decision);
}Let the application repair payload.