Step 1 of 5
The agent proposes a refund.
A claims agent finds Northwind Ltd were charged twice for invoice INV-2291 and wants to refund €1,240. Before it acts, it says what it is about to do: one call, naming the action and the figures.
const flow = await deliverd.flows.resume({ title: "Northwind refund", externalId: "refund:INV-2291" });
const decision = await deliverd.gate({
action: "finance.refund",
externalId: "refund:INV-2291",
input: { customer: "Northwind Ltd", invoice: "INV-2291", amount: 1240, currency: "EUR" },
flowId: flow.id,
});


