Workflow step

Call Workflow

Use one workflow as a procedure that other workflows can call. Pass named fields, choose whether to wait, and follow the link between the two runs in History.

Look up a customer and use the result

  1. Create a parent workflow called New order with a trigger that supplies a string customer_id. Save it so you can select it as an allowed caller.
  2. Create another workflow called Find customer. Under Add Trigger, choose Callable Workflow. Select New order under Allowed calling Workflows. Add a required string input named customer_id and save.
  3. In Find customer, add the Action that looks up a customer in your CRM. Map trigger.customer_id to its lookup field. After that action, add Return to Caller. Add an output named email and select the email field from the action's output. Save and activate Find customer.
  4. In New order, add Call Workflow, select Find customer and choose Wait for result. Its declared input fields appear in the editor. For customer_id, select trigger.customer_id. Save.
  5. Connect the next action. Its input includes input.result.email. Activate New order and send an order for a test customer.
  6. In the parent run’s History, open the Child run link. Inspect its trigger input and the output of Return to Caller. The parent’s Call Workflow output includes the child’s workflow ID, run ID and pinned version.

Choose a mode

Wait for result pauses the parent and checks for completion. A child can pause at a Delay or Wait for Webhook. The parent allows up to 24 hours for a result. A timeout ends the wait and the child can still finish.

Run in background continues once the child is queued. Use its run ID to check progress in History. A later child failure is visible on the child run. The parent receives no result fields in this mode.

Returns, retries and permissions

The first executed Return to Caller finishes the child. Place it after the work you need completed. A child that finishes successfully without reaching Return gives a waiting parent a missing-return error. A mapped return field must contain a value. To return an empty object, leave the output list empty. A failed child gives the parent a child-failed error. Connect an error route to the call for recovery.

Only active callable workflows in the same team and automation-key scope can accept a new call. The target must explicitly allow the parent. Call inputs support strings, numbers, booleans, objects and arrays. Mapped inputs and returned data each have a 64 KiB limit. FastHook checks the call graph on activation and again during execution. A chain can contain up to eight calls. One root run can start up to 1,000 children across its entire tree. The usual credit limits apply to the call and to the steps in the child.

An exported callable workflow includes its input fields. An imported copy starts as a draft with an empty caller list. Choose allowed parents, activate the copy, and select it in each parent that should use it.

A retry of the same call in the same run uses its existing child and version. Repair a failed child first, then retry the parent step to read its result. Starting a new parent run creates a new call. Each Loop iteration owns its own child. Place Return outside the Loop and aggregate the data you want to send back.