Import
TypeScript
import { discoverWebhooks, isWebhookDefinition, isWebhookId, prepareWebhookInvocation, webhook,} from "veryfront/webhook";Examples
Run a workflow for urgent customer events
TypeScript
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" }, ], },});