Skip to main content

Workflows

KindWhere definedWho runs it
Business Flows (app.flow)SDK metadataQefro Runtime
Solution workflows (workflows/*.yaml)Managed packageRuntime — must call app tools
Organization workflowsPlatform builderOrganization Runtime — events → tasks → actions

Business Flows (SDK)

app.flow({
id: 'reservation',
trigger: { type: 'conversation' }, // event | schedule | webhook
});

Advertised on capabilities.list.flows. Your process does not run FlowRunner — and registered app.event / app.webhook / app.schedule handlers are not invoked by the SDK HTTP dispatcher either (metadata + runtime delivery).

Solution YAML workflows (managed)

Orchestrate UX / channel steps. Steps invoke tools like restaurant-pro/restaurant.createReservation — never storage/insert.

Organization workflows

Restaurant Pro event: purchase_requested

Organization Workflow

Finance / manager Task

action: approve_purchase → /qefro tool on owning app

Finance Pro may expose approve_purchase-style actions; Restaurant Pro exposes events. No direct app-to-app HTTP.

ABM external pattern

Opaque actions (approve_purchase, continue_purchase) invoked from Internal Portal / org inbox, not from customer WhatsApp (chat: false / channel guards).

Rule

Applications must never call each other directly.

Wire cross-domain processes through Organization events, tasks, and actions.