TypeDoc API
    Preparing search index...

    Function defineWorkflow

    • Takes a workflow configuration in the n8n-compose format (see WorkflowJson) and converts it into an n8n workflow definition. This is the format that n8n expects when importing workflows. It generates unique IDs for nodes and sets default values for optional properties. Also ensures that the type version of each node is set to the latest version (unless one is explicitly given).

      Type Parameters

      Parameters

      Returns Promise<IWorkflowBase>

      A promise that resolves to an IWorkflowBase object - basically an n8n workflow definition.