Skip to main content
invokeAutomation sends a payload to another automation’s active onInvocation entrypoint in the current project.

Example

automations/forward-order.automation.ts

Inputs

String and signal targets resolve by exact automation ID first, then by description in the caller’s project. Passing the value returned by automation() uses its description. Descriptions must be unique within the project. Every other input accepts a compatible signal. runAt and runIn are mutually exclusive. Omit both to invoke immediately. The target must have an active onInvocation trigger with the selected entrypoint.

Output

invokeAutomation returns a signal containing { id: string; runAt: Date }. id identifies the accepted invocation, and runAt is its normalized delivery time.