Manual Trigger

Starts a workflow on demand — from the canvas editor, the CLI, or when called as a subworkflow by another workflow.

When to Use

Use Manual Trigger when:

  • You are building a workflow that you want to call as a subworkflow from another workflow
  • You want to run a workflow manually from the canvas during development
  • You want to trigger execution on demand via tensorify run without needing an HTTP request

If you need a workflow that responds to external HTTP events, use Webhook or API Endpoint instead.

Output

HandleTypeDescription
payloadobjectThe invocation envelope

The payload object shape:

FieldTypeDescription
bodyanyThe data passed to this trigger (from a subworkflow invocation or test payload)
headersobjectHeaders from the invocation
invocationobjectMetadata about how the workflow was invoked
sourcestring"manual" or "subworkflow"

Settings

SettingTypeDefaultDescription
allowWorkflowInvocationbooleantrueAllow other workflows to call this as a subworkflow. Disable to restrict to manual runs only.
mockPayloadJSONTest data injected when running this workflow from the canvas or via tensorify watch.

Example

A basic subworkflow that receives data from its parent and transforms it:

Manual Trigger → Transform → Return

The parent workflow passes data to Manual Trigger via the Subworkflow node. The body field on payload contains that data.

In a downstream node, reference the trigger payload as:

{{ manual.body }}
{{ manual.body.someField }}

Common Gotchas

  • If allowWorkflowInvocation is disabled, calling this workflow from a Subworkflow node will fail at runtime.
  • The mockPayload is only used during canvas testing (tensorify watch). In production, the real invocation payload is used.

See Also

  • Subworkflow — call this workflow from another
  • Return — return a value back to the caller
On this page