Import
import { discoverWebhooks, isWebhookDefinition, webhook } from "veryfront/webhook";
Examples
Run a workflow for urgent customer events
import { webhook } from "veryfront/webhook";
export default webhook({
id: "customer-escalation",
target: { kind: "workflow", id: "escalate-ticket" },
eventFilter: {
mode: "any",
conditions: [
{ path: "severity", operator: "equals", value: "high" },
{ path: "priority", operator: "equals", value: "urgent" },
],
},
});