Skip to content

PersistentAI API Documentation / @persistentai/fireflow-vfs / server / createFlowHook

Function: createFlowHook()

createFlowHook(flowStore): PreCreateHookExecutor

Defined in: packages/fireflow-vfs/src/workflows/hooks/flow-hook.ts:34

Pre-create hook for .fflow files

Creates a Flow resource in the database before the .fflow file is created. The returned flowId is embedded in the file content.

Parameters

flowStore

FlowStoreForHook

Returns

PreCreateHookExecutor

Licensed under BUSL-1.1